LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-24-2007, 12:36 AM   #1
umar79
LQ Newbie
 
Registered: Oct 2007
Posts: 13

Rep: Reputation: 0
Unhappy Help Me Please


How could i view the details of my hard disks capacity wise as well their brands detail in Linux through a command. Please describe in detail.
 
Old 10-24-2007, 12:46 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You'll be able to see capacity with "fdisk -l" (lowercase L).

Why did you not use a descriptive thread title? You are told to when you post a thread, so please do so in future.
 
Old 10-24-2007, 04:49 AM   #3
umar79
LQ Newbie
 
Registered: Oct 2007
Posts: 13

Original Poster
Rep: Reputation: 0
I want Hard Disk Brand

Thanks Nylex
Ya it shows me detail of Hard Disks but i also want the company brand of Hard Disks without reboot my system through Linux Command.
 
Old 10-24-2007, 05:10 AM   #4
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Rep: Reputation: 33
# cat /sys/block/sda/device/vendor

Regards,
Phillip
 
Old 10-24-2007, 05:18 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
Quote:
Originally Posted by PhillipHuang View Post
# cat /sys/block/sda/device/vendor

Regards,
Phillip
There's also a "model" file in the same directory. I wonder if there is a database of these things?

You can also use the lshw program if it is installed, for example:
Code:
# lshw -class disk
  *-disk
       description: SCSI Disk
       product: HTS548080M9AT00
       vendor: ATA
       physical id: 0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: MG4O
       serial: MRL425L4J0WL1B
       size: 74GB
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5
  *-cdrom
       description: DVD reader
       product: DVD+RW ND-5100A
       vendor: _NEC
       physical id: 1
       bus info: scsi@1:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/dvd
       logical name: /dev/scd0
       logical name: /dev/sr0
       version: 10AC
       serial: [_NEC    DVD+RW ND-5100A 10AC03071400
       capabilities: removable audio cd-r cd-rw dvd
       configuration: ansiversion=5 status=open
 
Old 10-24-2007, 06:50 AM   #6
umar79
LQ Newbie
 
Registered: Oct 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Smile Woww..... I h've got HD details

Thanks for all.
Yes i got it. But what do i do if i have not lshw install on my O.S.
Regards
 
Old 10-24-2007, 07:55 AM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
How about this:
Code:
% for f in /sys/block/*/device/{vendor,model}; do echo -n "$f " ; cat $f; done |sort
This will output something like this:
Code:
/sys/block/sda/device/model HTS548080M9AT00
/sys/block/sda/device/vendor ATA
/sys/block/sr0/device/model DVD+RW ND-5100A
/sys/block/sr0/device/vendor _NEC
I don't know if this provides enough information for you?
 
  


Reply

Tags
details, hardware


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 On
HTML code is Off



All times are GMT -5. The time now is 02:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration