LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   harddisk serial number (https://www.linuxquestions.org/questions/linux-hardware-18/harddisk-serial-number-399409/)

secret_force 01-04-2006 08:19 AM

harddisk serial number
 
I need to know the serial number of my harddisk and I found out that this is the command
hdparm -i /dev/hda
When I type this in the terminal window it says "permission denied".

the Harddisk is Western Digital WD12000BB and I boot Ubuntu by a live CD
What am I doing wrong, or is there maybe an easier way to find the serial.

vangelis 01-04-2006 08:23 AM

maybe you need to run this as root?

Kirzzy_Boy 01-04-2006 09:03 AM

What you could do is go to http://support.wdc.com/download/index.asp
Here you will find many tools for the HD. Most of them are available as boot systems for floppy or CD.
Using these tools will give you access to the seriel number and lots more. But pls don't do anything stupid with the drive. It could work out a bit expensive.

jcliburn 01-04-2006 10:14 PM

Quote:

Originally Posted by secret_force
I need to know the serial number of my harddisk and I found out that this is the command
hdparm -i /dev/hda
When I type this in the terminal window it says "permission denied".

the Harddisk is Western Digital WD12000BB and I boot Ubuntu by a live CD
What am I doing wrong, or is there maybe an easier way to find the serial.

You must be root.

Kirzzy_Boy 01-05-2006 05:17 AM

With ubuntu you need to use the following command

sudo hdparm -i /dev/hda

secret_force 01-05-2006 10:15 AM

sudo hdparm -i /dev/hda

this worked out, thanks


All times are GMT -5. The time now is 12:09 PM.