What is the best way to detect a hard drive in a shell script?
Hello All,
I'm trying to develop my own custom linux kernel installation script and looking for some tips on elegant means to detect hard disk drives, partition them and format them.
I'm sure I could just load the various generic IDE/SCSI driver modules to have the kernel detect the hardware and then do something like "fdisk -l" which I could parse to determine which drives/partitions are there...
Is there a better way to do this?
Thanks in advance,
Dallas Clement
|