Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-13-2006, 07:18 PM   #1
Registered: Jul 2005
Posts: 77

Rep: Reputation: 16
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.
Old 10-13-2006, 07:26 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
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...
Old 10-13-2006, 09:07 PM   #3
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
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:
cat /proc/partitions
In Redhat/Fedora, you can see a lot of useful hardware information from the command:
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
dmidecode  ##
lsmod ## list installed modules
cat /proc/interrupts
Old 10-13-2006, 09:46 PM   #4
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,283

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Try the lshw command.
Old 10-14-2006, 07:19 AM   #5
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
I don't seem to have that command on Fedora.
-bash: lshw: command not found
I did forget to mention another command wich gives the same output as cat /etc/sysconfig/hwconf ....
/sbin/kudzu -p


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the disk info like model, rpm,... RajRed Linux - Newbie 8 04-12-2016 05:31 PM
disk info Vragec Linux - Newbie 6 05-22-2006 06:03 AM
How to get info about an scsi disk? noware Linux - Software 3 05-12-2006 02:05 AM
Disk usage info in C/C++ Ephracis Programming 7 03-14-2006 03:30 AM
don't know how to find info on the pc gustallafer Linux - Software 1 01-07-2006 07:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration