Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
# 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
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 :-)
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.
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 [~]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.