I am trying to write a shell script to perform some file maintenance on a model of hard drives that I have on several unix boxes. Is there any specific variable that the hard drives report to the OS that I could have the script look for to target these drives if I do not know the name of the volume on each box?
Currently I am just loading the script on that drive and allowing it to work but I would like to be able to just send it to my customer and have them run it without worrying that they got it on the correct drive or doing it myself.
Just in case this differs by manufacturer these are specifically Seagate drives.
To address your original question: there is nothing in standard Unix that will meet your request. Any solution will involve architecture-specific extensions, such as I posted for Linux.
What is the architecture