LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   find disk drive info (https://www.linuxquestions.org/questions/linux-software-2/find-disk-drive-info-492223/)

pyroman59 10-13-2006 07:18 PM

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

pljvaldez 10-13-2006 07:26 PM

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...

homey 10-13-2006 09:07 PM

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
In Redhat/Fedora, you can see a lot of useful hardware information from the command:
Code:

cat /etc/sysconfig/hwconf
Also, Redhat/Fedora earlier versions have a utility called:/sbin/ide_info .
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/
scanpci
lspci
lsmod ## list installed modules
cat /proc/interrupts
dmesg


haertig 10-13-2006 09:46 PM

Try the lshw command.

homey 10-14-2006 07:19 AM

I don't seem to have that command on Fedora.
Code:

lshw
-bash: lshw: command not found

I did forget to mention another command wich gives the same output as cat /etc/sysconfig/hwconf ....
Code:

/sbin/kudzu -p


All times are GMT -5. The time now is 01:41 AM.