I was recently tasked with creating a hard drive management system on Linux. I needed to write a program that monitored when drives came online and offline and created/removed links to the drive mounts.
That was the easy part.....
What I can't figure out is how to match my GUI with the position of the hard drives in the docks. I need the program to represent how the drives look if someone was staring at the physical docks that hold the drives. Currently I'm just identifying drives by the /sd*, which I know is a terrible method since it changes anytime you hot swap or reboot. Does anyone know a command I might be able to use to pull the physical location of the hard drives?
Thanks in advance!