How do I disable an internal SATA drive by identifying it specifically?
After unmounting and running sync, I'd like to completely turn off the 2nd internal SSD, as part of a script. Echoing 1 to /sys/block/sda/device/delete seems to have the effect that I want, but it specifies the drive via sda. I'd much prefer by-id or similar because sda is flexible and could change if I plug in another drive. So is there a better way to specify the desired drive?
|