?
Solved

Copy Protection using Serial Numbers (SCSI Disk / Processor / BIOS / Mainboard)

Posted on 2003-03-17
11
Medium Priority
?
497 Views
Last Modified: 2013-12-16
#/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
Comment
Question by:zahidbd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +3
11 Comments
 
LVL 8

Expert Comment

by:heskyttberg
ID: 8162497
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
 

Author Comment

by:zahidbd
ID: 8164194
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
 
LVL 15

Expert Comment

by:samri
ID: 8165946
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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 8

Expert Comment

by:heskyttberg
ID: 8177865
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
 
LVL 15

Expert Comment

by:samri
ID: 8178872
4 days - no response. chances are - forgotten.
0
 

Author Comment

by:zahidbd
ID: 8185366
I already did at the same time. Thanks
0
 

Author Comment

by:zahidbd
ID: 8185380
>> 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
 

Expert Comment

by:CleanupPing
ID: 9076619
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
 
LVL 20

Expert Comment

by:jmcg
ID: 10144583
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
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 14316336
PAQed with points (250) refunded

DarthMod
Community Support Moderator
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question