zahidbd
asked on
Copy Protection using Serial Numbers (SCSI Disk / Processor / BIOS / Mainboard)
#/sbin/hdparm -i /dev/hda
Provides information on Hard Disk Drive /dev/hda including the serial number.
Does anyone have any idea of getting those serial numbers using C?
Provides information on Hard Disk Drive /dev/hda including the serial number.
Does anyone have any idea of getting those serial numbers using C?
ASKER
Ohh..I was talking about the Serial Numbers of SCSI Disk / Processor / BIOS / Mainboard.
hdparm 5.3 does not support scsi, and what about processor/BIOS/Mainboard ?
hdparm 5.3 does not support scsi, and what about processor/BIOS/Mainboard ?
hi zahidbd,
I'm not a programmer. But looking at your requirement, maybe you might want to look at the standard header file in (if you could use that in your code).
/usr/include/linux/genhd.h
cheers.
ps. I think you had another similar question in C programming area.
I'm not a programmer. But looking at your requirement, maybe you might want to look at the standard header file in (if you could use that in your code).
/usr/include/linux/genhd.h
cheers.
ps. I think you had another similar question in C programming area.
Hi!
Ok, you didn't ask for SCSI or mainboard or BIOS in question, you jsut said /dev/hda which is primary ide hd.
You will most likely get more answers if asking in programming area and better ones, :)
Regards
/Hans - Erik Skyttberg
Ok, you didn't ask for SCSI or mainboard or BIOS in question, you jsut said /dev/hda which is primary ide hd.
You will most likely get more answers if asking in programming area and better ones, :)
Regards
/Hans - Erik Skyttberg
4 days - no response. chances are - forgotten.
ASKER
I already did at the same time. Thanks
ASKER
>> You will most likely get more answers if asking in programming area and better ones, :)
I did at the same time.
hello, samri
/usr/include/linux/genhd.h is not talking anything about scsi. "Generic hard disk header file"
Thanks anyway again.
I did at the same time.
hello, samri
/usr/include/linux/genhd.h
Thanks anyway again.
zahidbd:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
Cross-reference: http:Q_20554325.html
I recommend PAQ, refund. The asker did not get quite the answer they wanted, but the responses are worth keeping around (even if some of them are duplicated in the cross-referenced question).
I recommend PAQ, refund. The asker did not get quite the answer they wanted, but the responses are worth keeping around (even if some of them are duplicated in the cross-referenced question).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why not getting the source code for hdparm and check yourself, it is after all an open source OS, :)
In redhat go to any ftp site that has the RH distrib.
Go into os/i386/SRPMS dir and download hdparm-x.x.x.src.rpm.
Do rpm -ivh hdparm-x.x.x.src.rpm, now a gzipped tar file will reside in /usr/src/redhat
You might also find it on:
www.freshmeat.net, but I'm not sure.
Regards
/Hans - Erik Skyttberg