View previous topic :: View next topic |
Author |
Message |
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Fri Apr 13, 2007 2:46 pm Post subject: [SOLVED] How to reading serial from my drive?? |
|
|
Hello again,
Doea anybody know how I can read my serial from my hardrive. Previously, hdparm /dev/hda worked on my regular drive ... but my altertnate system .. the one I need the serial for ... is a /dev/sda ... and hdparm will not work for it.
Thank again
Take care
Last edited by NiceGuy on Mon Apr 16, 2007 1:53 pm; edited 1 time in total |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Fri Apr 13, 2007 2:51 pm Post subject: |
|
|
I assume you mean "serial number?"
I'd try either sys-apps/sdparm or sys-apps/smartmontools. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54331 Location: 56N 3W
|
Posted: Fri Apr 13, 2007 2:59 pm Post subject: |
|
|
NiceGuy,
SATA is like SCSI but libsata, which is a piece of the kernel may not yet have the pass through commands to allow hdparm to read thins information. You can try sdparm, which is intended for read SCSI drives.
hdparm works for me. Code: | $ sudo /sbin/hdparm -iI /dev/sda
/dev/sda:
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
ATA device, with non-removable media
Model Number: Maxtor 6B300S0
Serial Number: B608D4RH
Firmware Revision: BANC19J0
| theres lots more information too. Ignore the HDIO_GET_IDENTITY failed error _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|