Avatar billede ritajtaylor Nybegynder
19. april 2007 - 12:32 Der er 5 kommentarer og
2 løsninger

Linux command for disk information

What is the Linux command for finding out disk information like the brand and make of a disk so that I can or cannot use dd? (the Linux equivalent of diskinfo of dkinfo).
Avatar billede janpo Nybegynder
19. april 2007 - 20:48 #1
You could take a look at the files in /proc/ide/ide0/hda/
If you want info one the first harddisk on the primary IDE channel.
Avatar billede jazzjack Nybegynder
19. april 2007 - 21:57 #2
dd will not give you any information like this. dd actually stand for Disk Dump. That is the purpose of this tool.

Many linux systems support smart tools. If you have smart daemon running then you can simply write:

# smartctl -i /dev/hda
smartctl version 5.36 [i686-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:    QUANTUM FIREBALLlct20 10
Serial Number:    651036618772
Firmware Version: APL.0900
User Capacity:    10,262,568,960 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:  5
ATA Standard is:  ATA/ATAPI-5 T13 1321D revision 1
Local Time is:    Fri Apr 20 00:00:55 2007 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Avatar billede ritajtaylor Nybegynder
20. april 2007 - 15:37 #3
What does -i mean? My device is /dev/md0. What -d type do I use, magic jazzjack? Do you know anything about Nagios?
Avatar billede ritajtaylor Nybegynder
20. april 2007 - 15:45 #4
BTW, jazzjack you are fab and janpo helped with this question too. It would be nice if you could share the points.
Avatar billede langbein Nybegynder
20. april 2007 - 18:34 #5
From man smartctl

-i, --info
              Prints  the  device  model number, serial number, firmware ver-
              sion, and ATA Standard version/revision information.  Says  if
              the  device supports SMART, and if so, whether SMART support is
              currently enabled or disabled.  If the device supports  Logical
              Block Address mode (LBA mode) print current user drive capacity
              in bytes. (If drive is has a user protected area  reserved,  or
              is  "clipped",  this  may be smaller than the potential maximum
              drive capacity.)


(Nice, I did not now this utility. :-)
Avatar billede janpo Nybegynder
20. april 2007 - 20:58 #6
You're welcome.
Avatar billede jazzjack Nybegynder
20. april 2007 - 22:30 #7
Share the points as u like. I just don't know how to do it :-)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester