LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hardware Specs (https://www.linuxquestions.org/questions/linux-newbie-8/hardware-specs-299821/)

ToothlessRebel 03-09-2005 08:35 PM

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

Brian1 03-09-2005 08:51 PM

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 "

Tinkster 03-09-2005 08:52 PM

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

dcdbutler 03-09-2005 08:53 PM

# 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

trochia 10-25-2008 03:25 PM

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 :-)

elliott678 10-25-2008 05:43 PM

Quote:

Originally Posted by trochia (Post 3321842)
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.

trochia 10-25-2008 05:52 PM

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 [~]#

H_TeXMeX_H 10-26-2008 02:24 AM

You can also try 'lshw', install it if you don't have it.

trochia 10-26-2008 05:45 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 3322119)
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

rizvi_iut 10-26-2008 08:06 AM

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


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