Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to reading serial from my drive??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Fri Apr 13, 2007 2:46 pm    Post subject: [SOLVED] How to reading serial from my drive?? Reply with quote

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
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Fri Apr 13, 2007 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54331
Location: 56N 3W

PostPosted: Fri Apr 13, 2007 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum