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@bctonline.com
"No matter where you go, there you are..."
The fdisk -l command just defaults to the primary disk and lists the partitions
However, lvmdiskscan does find all of the disks/partitions and shows their sizes.
Charles L. Sliger, Information Systems Engineer, chaz@bctonline.com "No matter where you go, there you are..."
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Barry Brimer Sent: Sunday, March 18, 2007 10:33 AM To: CentOS mailing list Subject: Re: [CentOS] Finding Disks
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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of mouss Sent: Sunday, March 18, 2007 5:24 PM To: CentOS mailing list Subject: Re: [CentOS] Finding Disks - SOLVED
Charles Sliger wrote:
The fdisk -l command just defaults to the primary disk and lists the partitions
are you sure? # fdisk -l
Disk /dev/hda: ... ....
Disk /dev/hdb: ... ...
anyway, dmesg with grep will show whatever you want...
[chaz> ] I checked it out again. You're correct. Fdisk will also give all the disks. Must have fat-fingered it somehow...
Charles L. Sliger, Information Systems Engineer, chaz@bctonline.com "No matter where you go, there you are..."
Barry Brimer 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.
/sbin/fdisk -l
cat /proc/partitions Also have a poke around in /sys/block/
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@rp18 ~]# cat /proc/ide/hd*/model SAMSUNG CDRW/DVD SN-324F [root@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