HDD passthrough

furfix

Member
Oct 8, 2022
36
8
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.