Is there a command that will list the disks that the system currently has? The df and mount commands only display info about filesystems. Charles L. Sliger, Information Systems Engineer, chaz at bctonline.com "No matter where you go, there you are..." -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070318/44158ddd/attachment.html>
> Is there a command that will list the disks that the system currently has? > > The df and mount commands only display info about filesystems./sbin/fdisk -l
Charles Sliger wrote:> > Is there a command that will list the disks that the system currently has? > > The df and mount commands only display info about filesystems. > > >cat /proc/scsi/scsi lists all 'scsi' devices (including native SATA, fiberchannel, and other such things), while cat /proc/ide/hd*/model will list IDE devices (including SATA running in emulation mode) [root at rp18 ~]# cat /proc/ide/hd*/model SAMSUNG CDRW/DVD SN-324F [root at rp18 ~]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: ST3250823AS Rev: 3.06 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: ATA Model: ST3250823AS Rev: 3.06 Type: Direct-Access ANSI SCSI revision: 05