Find the answer to your Linux question:
Results 1 to 2 of 2
I am planning to write a C program to read the hard disk serial number. I dont have any idea of from where to start with. Can anyone help me ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    13

    reading hard disk serial number

    I am planning to write a C program to read the hard disk serial number. I dont have any idea of from where to start with.

    Can anyone help me on this...

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096
    Not sure, but sdparm might reveal the serial number:

    Code:
    sdparm -i /dev/sda
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...