find disk drive info
I am running Red Hat Linux 7.1 and need to find disk drive partitioning info... also, I'd like to probe the drives to see what they are (model, manufacturer, etc) Kind of like in Solaris where you can run the "format" command.
Thanks |
You can get the partition information by running /sbin/fdisk -l (that's L, not 1). As for the disk drive information, I got the model number by doing dmesg |grep -i hda (or sda for the first scsi drive). Funny though it doesn't output the manufacturer, but I can google the model and come up with the manufacturer...
|
The programs fdisk and sfdisk need to be run by root. If you want to see the partition info as a regular user, try the command:
Code:
cat /proc/partitions Code:
cat /etc/sysconfig/hwconf That doesn't seem to exist in later versions and you may get somewhere with hdparm but, be careful with that command. And finally, there are bucket loads of information to be had from the commands Code:
dmidecode ## http://www.nongnu.org/dmidecode/ |
Try the lshw command.
|
I don't seem to have that command on Fedora.
Code:
lshw Code:
/sbin/kudzu -p |
All times are GMT -5. The time now is 01:41 AM. |