LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2006, 01:27 AM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
Finding hard drive type?


What command can I run to find the type/brand/size, basically all hardware details for existing hard drives in the system.

Thanks,
 
Old 05-09-2006, 01:49 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Code:
# hdparm -I /dev/hd[a-z]
# hdparm -I /dev/sd[a-z]
 
Old 05-09-2006, 01:59 AM   #3
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
dmesg will give you the model numbers and size of disks on IDE controllers, the output is not pretty but scrolling through gives a host of information

hdparm needs to be used by root dmesg doesn't

Last edited by towy71; 05-09-2006 at 02:01 AM.
 
Old 05-09-2006, 08:19 PM   #4
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Original Poster
Rep: Reputation: 30
Thanks this works fine on a /dev/hda which is an IDE drive in one machine. On the target machine where it's a sata drive and /dev/sda I get:

HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
 
  


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
finding a hard drive in libranet linux... blackdragon Linux - Newbie 7 07-28-2004 07:16 PM
finding a window hard drive greek Linux - Hardware 0 06-17-2004 07:18 PM
What do I type to mount the new hard drive? randon Linux - Newbie 15 10-16-2003 10:47 PM
What type of hard drive do you have? Joey.Dale Linux - Hardware 1 09-01-2003 12:33 PM
RH 9 installation not finding Hard Drive avdicmon Linux - Newbie 1 08-18-2003 02:08 PM


All times are GMT -5. The time now is 03:05 AM.

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