Broke: /dev/sd*
Woke: /dev/disk/by-id/*
Bespoke: finding the correct device’s SCSI host, detaching everything, then reattaching only the one host to make sure it’s always /dev/sda. (edit) In software. SATA devices also show up as SCSI hosts because they use the same kernel driver.
I’ve had to use all three methods. Fucking around in /sys feels like I’m wielding a power stolen from the gods.
The SCSI solution requires making sure that you have the right terminator connector because of course there’s more than one standard … ask me how I know … I think the Wikipedia article on SCSI says it best:
I actually have multiple HDDs of the same model with only their serial numbers different.
I usually just open partitionmanager, visually identify my required device, then go by disk/by-uuid or by disk/by-partuuid in case it doesn’t have a file system.
Then I copy-paste the UUID from partitionmanager into whatever I am doing.
Fucking around in /sys feels like I’m wielding a power stolen from the gods
I presume you have had to run on RAM, considering you removed all drives
I presume you have had to run on RAM, considering you removed all drives
Yes. Mass deployment using Clonezilla in an extremely heterogenous environment. I had to make sure the OS got installed on the correct SSD, and that it was always named sda, otherwise Clonezilla would shit itself. The solution is a hack held together by spit and my own stubbornness, but it works.
Broke:
/dev/sd*
Woke:
/dev/disk/by-id/*
Bespoke: finding the correct device’s SCSI host, detaching everything, then reattaching only the one host to make sure it’s always
/dev/sda
. (edit) In software. SATA devices also show up as SCSI hosts because they use the same kernel driver.I’ve had to use all three methods. Fucking around in
/sys
feels like I’m wielding a power stolen from the gods.The SCSI solution requires making sure that you have the right terminator connector because of course there’s more than one standard … ask me how I know … I think the Wikipedia article on SCSI says it best:
Source: https://en.m.wikipedia.org/wiki/SCSI_connector
I actually have multiple HDDs of the same model with only their serial numbers different.
I usually just open partitionmanager, visually identify my required device, then go by
disk/by-uuid
or bydisk/by-partuuid
in case it doesn’t have a file system. Then I copy-paste the UUID from partitionmanager into whatever I am doing.I presume you have had to run on RAM, considering you removed all drives
Yes. Mass deployment using Clonezilla in an extremely heterogenous environment. I had to make sure the OS got installed on the correct SSD, and that it was always named
sda
, otherwise Clonezilla would shit itself. The solution is a hack held together by spit and my own stubbornness, but it works.