HDD passthrough

furfix

Member
Oct 8, 2022
36
3
13
Hi! I’m adding to my home lab a HDD (gpt) that I had it running in another system running Ubuntu Server.
In proxmox, when I list the disk…. I see:

by-id/ata-WDC_XXXXXXXXXX-XXXXXXX_XXXXXX -> ../../sda
by-id/ata-WDC_XXXXXXXXXX-XXXXXXX_XXXXXX-part1 -> ../../sda1


Should I passthrough both? or just passing the main one to the VM is enough? I would like to avoid loosing the data on it.

Thanks!!!
 
Never do both (as one is part of the other). If it came from an existing/booting system, you probably want to passthrough the whole drive and use the first one (without -part1).

EDIT: Note that I'm a random stranger on the internet and give no guarantees about your data.
 
Thanks leesteken! I passed the whole disk (sda) and now on my VM Ubuntu server I can see the sda and sda1!

May I ask you as a random stranger on internet...on the VM, should I mount into a directory, sda1? or sda?
 
Thanks leesteken! I passed the whole disk (sda) and now on my VM Ubuntu server I can see the sda and sda1!

May I ask you as a random stranger on internet...on the VM, should I mount into a directory, sda1? or sda?
/dev/sda is the whole drive: boot sector, partition information and partitions. Your data is inside a partition, which appears to be the first (and only) one on the disk: /dev/sda1.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!