detect all hard-drives (maybe all storage devices)

Callum Lerwick seg at haxxed.com
Sat Mar 3 03:19:36 UTC 2007


On Fri, 2007-03-02 at 14:54 -0800, Florin Andrei wrote:
> Using the Fedora 6.91 Live CD, is there a simple way to do a query from 
> a script and obtain a list with all the hard-drives in the system? 
> (PATA, SATA, SCSI)

$ ls -lI "*-part?" /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Mar  2 15:34 ata-Maxtor_53073H4_M0000000 -> ../../hdc
lrwxrwxrwx 1 root root 9 Mar  2 15:34 ata-Maxtor_6L250R0_L60WLQ7H -> ../../hda
lrwxrwxrwx 1 root root 9 Mar  2 15:34 usb-Maxtor_5_T040H4_DEF107679C83 -> ../../sda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20070302/e9bb4923/attachment.sig>


More information about the fedora-devel-list mailing list