LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-09-2005, 08:35 PM   #1
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
Hardware Specs


What commands can I use to get hardware specs off a machine? I know it can pull things like even manufacturers off PCI cards. Anything I can read about this is much appreciated, however, I am specificly looking to get a HD capacity off a machine.
-TR
 
Old 03-09-2005, 08:51 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Try in a command terminal ' /sbin/fdisk -l ' It requires root acces to run.
Is this what you are after.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 03-09-2005, 08:52 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
find /proc/ide -name "capacity" -exec cat {} \;
lspci -v


Generally /proc is a good place to look (e.g.
/proc/cpuinfo, /proc/meminfo, ... )...

Then there is a http://ezix.sourceforge.net/software/lshw.html



Cheers,
Tink

Last edited by Tinkster; 03-09-2005 at 08:56 PM.
 
Old 03-09-2005, 08:53 PM   #4
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
# fdisk
will give you hard drive specs and partition information (be careful though, and "man fdisk" before using it for anything)
$ lspci
will give you chipsets of cards
 
Old 10-25-2008, 03:25 PM   #5
trochia
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Hi, I joined here in 2004 and this is my first post...

I see these are from 05..

Using " fdsik -l " gets me some of the details, but I know there is a way to get more ...such as total hours on the drive, as my data center guy did it and told me over the phone one time the hours on my drives.

Thx in advance,

jim

Also, for anyone looking for minor details, check out phpspeed :-)

Last edited by trochia; 10-25-2008 at 05:16 PM.
 
Old 10-25-2008, 05:43 PM   #6
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 74
Quote:
Originally Posted by trochia View Post
Using " fdsik -l " gets me some of the details, but I know there is a way to get more ...such as total hours on the drive, as my data center guy did it and told me over the phone one time the hours on my drives.
If your hardware is S.M.A.R.T. enabled, most recent stuff is, you can use smartctl (ex. smartctl -a /dev/sda) to get drive health information. There is also hdparm (ex. hdparm -i /dev/sda) that will tell you about DMA modes and other capabilities of the drive.
 
Old 10-25-2008, 05:52 PM   #7
trochia
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Thank-you for the reply Elliott,,

HHmm, hdparm fed something, but not smartctl

(sorry for full copy/paste)

And also going to http://smartmontools.sourceforge.net/doc.html for my fist time...Thank-you..

SOLVED with smartctl -a -d ata /dev/sdb

-----------------
Quote:
root@tishllc02 [~]# smartctl -a /dev/sda
smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: Adaptec 2420SA Volume Version: V1.0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
root@tishllc02 [~]# smartctl -a /dev/sdb
smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: ATA ST3500630AS Version: 3.AA

In Linux, SATA disks accessed via libata are only supported by smartmontools
for kernel versions 2.6.15 and above. Try an additional '-d ata' argument.
root@tishllc02 [~]# smartctl -a /dev/sdc
smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: ATA ST3500630AS Version: 3.AA

In Linux, SATA disks accessed via libata are only supported by smartmontools
for kernel versions 2.6.15 and above. Try an additional '-d ata' argument.
root@tishllc02 [~]#
--------
Quote:
root@tishllc02 [~]# hdparm -i /dev/sda

/dev/sda:
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
root@tishllc02 [~]# hdparm -i /dev/sdb

/dev/sdb:

Model=ST3500630AS , FwRev=3.AAE , SerialNo=
6QG397WF
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=?8?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-
4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7

* signifies the current active mode

root@tishllc02 [~]# hdparm -i /dev/sdc

/dev/sdc:

Model=ST3500630AS , FwRev=3.AAE , SerialNo=
6QG38MYD
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=?8?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-
4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7

* signifies the current active mode

root@tishllc02 [~]#

Last edited by trochia; 10-25-2008 at 06:56 PM.
 
Old 10-26-2008, 02:24 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can also try 'lshw', install it if you don't have it.
 
Old 10-26-2008, 05:45 AM   #9
trochia
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by H_TeXMeX_H View Post
You can also try 'lshw', install it if you don't have it.
Didn't exist (yet) {wink}

Saw that somewhere el-ase....did you see the -C and the > html print?

That was cool, WATT comes around, goes around...someday? Everyone will thing<k> BASIC and go A > B C and re-invent the wheel OneMoTime?...lol

Keep warm, storm is hel off for now. ;-)

Thank's to all WHO participate~!~!

jc
 
Old 10-26-2008, 08:06 AM   #10
rizvi_iut
LQ Newbie
 
Registered: Oct 2008
Posts: 10

Rep: Reputation: 0
u can use the command : df -h
think it may help u.
 
  


Reply



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
Getting to know the specs of HD and what other hardware support Basel Slackware 3 09-03-2005 05:07 AM
Hardware Specs ToothlessRebel Linux - Hardware 3 06-30-2004 07:01 PM
AMD FX 51 or 53 / hardware specs... RedUcer Linux - Hardware 0 04-01-2004 06:09 AM
how to tell specs of hardware installed? clockworks Linux - Hardware 4 12-12-2003 11:44 AM
Hardware Specs X11 LQ Suggestions & Feedback 7 04-03-2002 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 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
Open Source Consulting | Domain Registration