• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 504
  • Last Modified:

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?
0
zahidbd
Asked:
zahidbd
  • 3
  • 2
  • 2
  • +3
1 Solution
 
heskyttbergCommented:
Hi!

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
0
 
zahidbdAuthor Commented:
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 ?
0
 
samriCommented:
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
heskyttbergCommented:
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
0
 
samriCommented:
4 days - no response. chances are - forgotten.
0
 
zahidbdAuthor Commented:
I already did at the same time. Thanks
0
 
zahidbdAuthor Commented:
>> 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.
0
 
CleanupPingCommented:
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.
0
 
jmcgOwnerCommented:
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).
0
 
DarthModCommented:
PAQed with points (250) refunded

DarthMod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now