LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-13-2006, 07:18 PM   #1
pyroman59
Member
 
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.
Thanks
 
Old 10-13-2006, 07:26 PM   #2
pljvaldez
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
homey
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:
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
 
Old 10-13-2006, 09:46 PM   #4
haertig
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
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 60
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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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