How to create a script that will automatically detect a SATA and IDE hdd
Im just starting to learn linux systems and im having this project automatic restoration using linux rescue cd. I already customized my own copy of the rescue cd and already have tested to restore images using a SATA HDD. My problem now is how to program a script (rc) that will automatically detect between a SATA and an IDE HDD so that my mount parameters will fit the corressponding hdd interface?
Hope someone could help me on this. Thanks in advance.....