Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-09-2006, 12:27 AM   #1
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.

Old 05-09-2006, 12:49 AM   #2
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
# hdparm -I /dev/hd[a-z]
# hdparm -I /dev/sd[a-z]
Old 05-09-2006, 12:59 AM   #3
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 01:01 AM.
Old 05-09-2006, 07:19 PM   #4
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


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

All times are GMT -5. The time now is 09:16 AM.

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
Open Source Consulting | Domain Registration