Alan Cox wrote:
On Fri, May 23, 2008 at 04:24:01PM -0400, Gerry Reno wrote:
The serial number might be ok until you replace the disk. Just have to remember to rerun the tools for the replacement and to note the replacement lineage. In scripts I think I could parse smartctl output for serial numbers or is there something better under /proc I can parse?
hdparm is probably better to parse than hdparm. Especially
hdparm --Istdout
Ok, I was trying to steer clear of hdparm if I could because I got bit a couple times with that command. But in this instance in a script it should be ok.