Re: Reading HDD serialNo



On 31 Mar 2006 04:30:45 -0800, ezelsari85@xxxxxxxxx wrote:
No matter learning how to do it in C or Java . I want to get the
source code of reading the serial number of HDD. Is there another
way to find the source code of reading serial number or the HDD?

Use Runtime.exec(). Run "vol" on windows or "hdparm -i /dev/hda" as
root on Linux. Parse the output to get the serial number.

Hope that the system doesn't have SCSI disks, which don't have serial
numbers.

Google "HDD serial number" would have found this information for you.

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.



Relevant Pages

  • RE: computer ID
    ... You also tried WMI but you're worried about that WMI ... information about the hardware profile. ... First I want to clarify two different "Serial Number" of HDD. ... For source code example on how to retrieve this HDD Firmware Serial Number ...
    (microsoft.public.vc.mfc)
  • Re: Mounting Zip drive on FC4?
    ... you should see a message indicating the device file the ... As root, in another window and ... I think I tried every combination except hdd before. ...
    (Fedora)
  • Re: ubuntu 7.10 and raid 1
    ... I installed the os on a raid 1 (root, ... It worked when I tryed to boot from the first hdd alone and from the ... Partitions are /boot, / and swap, and all of them are RAID 1. ... But I was able to get the machine to boot with only one of the disks by ...
    (Ubuntu)
  • Re: [SLE] CD
    ... Your devices should be pointing to either /dev/hdc or hdd or hdb, ... The /dev/cdrom is owned by root root, while the /dev/hdc is owned by ... Do not make yourself a member of the disk group ...
    (SuSE)
  • Re: rsync backup
    ... You are doing this root aren't you? ... You have set password as well? ... Also, you mention HDD? ... The problem with cp -a is you can't do a incremental backup. ...
    (Ubuntu)