General :: Get Hard Disk Serial Number Using C++ Program?

Apr 29, 2010

i need to get the hard disk serial number of my machine using a C++ program.

View 11 Replies


ADVERTISEMENT

General :: Find Out The Serial Number Of Hard Disk Through Command Line On OpenSuse 11.2 ?

Jul 12, 2010

I read this thread but

Code:
anisha@linux-uitj:~> su
Password:

[code]...

View 14 Replies View Related

Programming :: Get Hard Disk Serial Number On Solaris?

May 23, 2011

I want to get the Hard Disk serial number of SCSI HDD on Solaris. On linux this is done using following structs and API:

struct hd_driveid hd;
int ide;
ide=open("/dev/hda",O_RDONLY);
(void)ioctl(ide,HDIO_GET_IDENTITY,&hd);
(void)printf("Serial number - %s
",hd.serial_no);

Is there any similar method exists in Solaris to get HDD serial number.

View 1 Replies View Related

Slackware :: Getting The Volume Serial Number Of A Disk?

Dec 21, 2010

Kernel 2.6.21.5, Slackware 12.0

Code:

root@darkstar:~# blkid
/dev/sda: LABEL="MAESTRO!" UUID="4730-D359" TYPE="vfat"
/dev/hdc: LABEL="STORE1 ver. 2 (overrules ver. 1)" TYPE="iso9660"

[code]...

As you can see, the first command gives numbers like C841-0655. But for the optical disks (iso9660) it gives them not. Neither does the second one. This number is known as 'Volume serial number' in MS-DOS, and is printed on console with the command 'dir' not only for the HDD partitions but for the optical disks too. how to get an optical disk Volume serial number? Notice that this number is inherent to the media (is a property of the media, under any O.S.).

View 16 Replies View Related

General :: Display Server Serial Number

Mar 18, 2011

How to display server serial number, type of os for that server and kernel version for that server. with seperate way.

View 8 Replies View Related

General :: Changing GRUB From An External Hard Disk To The Internal Hard Disk?

May 14, 2010

I had a dual boot (windows 7 + debian), both of them installed in my internal hard disk, with the GRUB in it. I have recently installed a second linux distro (mint), but I put it in an external hard disk. Now the GRUB allows me to boot any of the three operating systems, but I need the external disk to do it. It seems that after the mint installation the GRUB is now working from the external disk (if the external disk is not connected, the machine does not boot.) �Is there a way to change the location of the GRUB, to the internal hard disk of my laptop?

View 2 Replies View Related

General :: Use Hard Disk Image Like A Regular Hard Disk?

Apr 6, 2010

If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk?

By "regular hard disk" I mean I would like to have the image show up as, for instance, /dev/hdx and its partitions as /dev/hdx1,...

(I know I can mount one of the partitions in the image using "mount -o loop,offset=x ..." but I don't really like this option.)

View 2 Replies View Related

Debian :: Hard Disk Repository - Which Makes Program Install / Remove Very Quick

Mar 15, 2010

I have now almost completed my aim of using Debian and PClinuxOS on different installed hard disks. For PCLOS I use an On-Disk set of disks which I have installed on a separate hard disk which serves as a repository from Synaptic, which makes program install/remove very quick. Is it possible to do the same thing with the 5 DVD's for Debian lenny on another hard disk?

View 2 Replies View Related

Server :: Using Of SOA Serial Number?

Feb 19, 2011

Except faster reading of zone records there is not other purpose of correct SOA number,right?

View 2 Replies View Related

General :: Get Drive Letter And Serial Number Of Thumb Drive?

Feb 4, 2010

I am new to Linux ,i did one project in windows which will block the thumb drive with respect to serial number(Device instance ID) of the device.i am planning to do the same project in Linux using c/c++.I am very new to Linux,there is no drive letter for thumb drives we insert into Linux OS.How to get Drive letter and how to get Device instance id of thumb drives please help me get some clues.please provide me any tutorial or any links .w if have any other clues to block devices with respect "block list" and "allow device list".if the serial number in block list it has to block if serial number in allow device list it has to allow thumb drive to access.

View 3 Replies View Related

General :: Mount From The Old Hard Disk To The New Hard Disk

Jun 30, 2010

mount from the old hdd to the new hdd i mean (Hard disk)

View 2 Replies View Related

Hardware :: Get Serial Number And Model Of USB Drives?

Feb 7, 2011

I have Ubuntu 10.04 LTS. I have a script that prompts you to insert a USB HDD/memory stick then it needs to determine its serial and model and save it to a file. The script can determine the device file of the inserted drive(ex: /dev/sdc) and if hdparm -I /dev/sdc works then all is ok. The problem is that not all USB HDDs/memory sticks work with hdparm. When it does not work I get the following:

Code:

root@izghitu:~# hdparm -I /dev/sdc
/dev/sdc:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange

The other command to get the serial for USB devices of any kind is lsusb -v or lsusb -D /path/to/bus/address The problem of the first one(lsusb -v) is that it lists all USB devices and there's no way for me to script it to detect the inserted USB drive/memory stick and get the serial/model for it. The problem with the second one(lsusb -D /path/to/bus/address) is that I do not know how to get the correct USB bus address of the inserted USB drive/memory stick.

Is there any other way to get the serial number/model of a USB HDD/memory stick using its /dev/sdc device file? Is there any way to link the /dev/sdc device file with the /dev/bus/usb/address device file so I can then use the lsusb -D command to get the required info?

View 3 Replies View Related

CentOS 5 :: Developing Using API - Get The Volume Serial Number?

Oct 29, 2009

how do i get the volume serial number using the API on CentOS?for example, on Microsoft Windows i use this function(API - Kernel32.dll):

BOOL GetVolumeInformation One of function's parameter is a pointer to a variable that receive the volume serial number;

View 1 Replies View Related

Hardware :: Master Hard Disk Error After Installing Ubuntu 8.10 / Hard Disk Died

Apr 8, 2009

after installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work

View 3 Replies View Related

Hardware :: Tool - Finding The Mainboard Serial Number?

Jan 15, 2011

Which linux tool can find out mainboard serial number?

View 5 Replies View Related

Ubuntu Installation :: Copy Hard Disk Have 10.04 And Ext4 To 1000 Hard Disk?

Sep 23, 2010

I want to copy hard disk have ubuntu 10.04 and ext4 to 1000 hard disk for new 1000

View 2 Replies View Related

Hardware :: Adding Second Hard Disk With Windows To Boot With Grub On First Hard Disk

Jul 7, 2009

I have a sata 320 gb with mandriva linux 2009.1 on it.And it is what curently atached to my cpu. It is shown as 'sda' in the partition table.I also have another 40gb hard disk with windows xp installed on it.It is shown as 'hda' in the partition table . Now what i want to do is attach this 40gb hard disk to my pc and configure grub on my 320gb hard disk('sda') so as to boot windows xp(which is residing on the second hard disk,'hda')Can anyone tell me if what im doing is feasible or not? If it is feasible,can anyone suggest me how to get it working. I know i just need to add 2-3 lines to my grub.conf, but dont know what exactly i need to write.

View 3 Replies View Related

OpenSUSE Network :: Getting The Same Volume Serial Number Of Samba Share?

Mar 28, 2010

On a small network i have 3 WinXP computers and i've just installed a two new ones with Win7 pre-installed. As server i'm running OpenSuSE 10.3 and Samba with only one share. As i mount it to WinXP computers all get same volume serial number:

Code:

V:>dir
Volume in drive V is AppDrive
Volume Serial Number is 8CD5-975C

...and all Win7 computers get a diffrent one:

Code:

V:>dir
Volume in drive V is AppDrive
Volume Serial Number is A0D3-975C

We use application witch somehow only works when one/same volume serial number on a mounted drive is used.

View 1 Replies View Related

Fedora :: Extract Monitor Serial Number / Manufacture Date Using EDID?

Aug 29, 2010

I can not for the life of me determine how to get the monitor serial number / manufacture date using Extended Display Identification Data (EDID). Does anyone know? None of the following provide this info:

monitor-get-edid
monitor-edid --v
monitor-edid --MonitorsDB
monitor-get-edid | monitor-parse-edid
dmidecode -q

View 8 Replies View Related

Hardware :: Check Hard Disk For Errors. Possible Hard Disk Failure?

Jun 21, 2011

I was using Terminal and browsing a directory in my home folder. My "home" directory is located on "/dev/sdb1". When in Terminal I typed "ls" in one of my directories and the output was garbage. The output didn't show the files in the directory. I think it said something like, "input/output error". Unfortunately, I didn't write the exact error down. Instead I rebooted.The hard disk with the problem is:

Code:
$ sudo hdparm -I /dev/sdb
[sudo] password for brian:

[code]...

View 6 Replies View Related

General :: Hard Drive - Get Block Number / Position Of File On HDD?

Feb 28, 2010

How can I retrieve the block number(s) of a certain file in a file system (the blocks the file is using on the harddisc)?

I'm using the gentoo linux based SystemRescueCD, so I got plenty of tools installed which might get that information for me.

View 1 Replies View Related

General :: Windows - Fastest (and Least Number Of Steps) Way To Migrate Hard Drive Formats?

Feb 19, 2011

I have an ext2 formatted disk (linux) and I need to reformat it to NTFS (windows). Problem is, I have to retain the 750 GB of data that's on the disk. What's the quickest (least number of steps) way to accomplish this? I do have a spare 1TB disk now to help with the transfer.

Background.I've been using XBMC Live for a couple of years, but with all the problems I've been having lately, I'm moving over to the Windows version. Unfortunately all of my media is stored on an ext2 formatted disk (not the same disk as the OS disk).I was thinking of loading up an Ubuntu live disk, and installing ntfs-config. Mount my secondary disk (already formatted NTFS), transfer the files, reformat the original drive, load windows and transfer the files back.

View 3 Replies View Related

General :: Windows With Putty Via USB Serial Cable To Serial Port - Output Ok, Input Isn't?

Jan 13, 2010

I am trying to get two way serial communications going between a Windows XP system and a Linux system (RHEL 5).I have /sbin/agetty -L 9600 ttyS0

in /etc/inittab. I am using a generic USB to serial adaptor on Windows (Unitek) and a null modem cable. I have putty configured for 9600 baud, 8 bits, no parity, one stop bit, no flow control.I get the login prompt from agetty in the putty window but input does not work; I see weird characters in the putty screen. I can echo output into the device from windows and see it, but

cat < /dev/ttyS0. just prints out weird characters from what I type.

View 3 Replies View Related

Fedora :: Finding A Serial Console Program?

Jan 14, 2011

i was using a serial console program (not minicom) two weeks back but took a break and have no idea what it is! man, it was awesome, too. it had a nice gui, similar to hyperterminal...and from what i think i remember it came packaged with f14.

View 4 Replies View Related

Ubuntu :: Make A Program Output To Serial?

Nov 29, 2010

I've made a LED gadget, which can light up LED patterns. It connects to serial port with RS232 protocol and receives messages which contain desired patterns. My friend wrote a python program which generates patterns and writes them to terminal. Everything is fine this far. I've made a bash script to run this program:

#!/bin/bash
python gen.py

and set it to autostart with:

chmod 755 scr.sh
mv scr.sh /etc/init.d/scr.sh
sudo update-rc.d scr.sh defaults

What I don't understand is - how do I redirect it's output to ttyS0 so that my device could catch generated data?

I've heard that in Linux every data stream can be redirected anywhere with '>>' in bash script. How do I do that? Can I, dunno, write something like this: python gen.py >> ttyS0 in shell script?

View 1 Replies View Related

Programming :: Porting Serial Port Program From Windows?

Jan 8, 2009

I bought a set of 3 laser sensors and it came with a software and its C++ source code for windows to receive the lasers info through the serial port. Since the entire project is running on Linux, I need to port the windows code to Linux. At the present moment, I already can receive the data from each of the 3 sensors, but the info is coming concatenated! Tracking down the original windows code, I found that it is probably happening cause I didn't ported these lines to my Linux version:

Code:

COMMTIMEOUTS CommTimeouts;
[...]
CommTimeouts.ReadIntervalTimeout = 2;

[code]....

I've searched already about how to specify the serial port timeouts on Linux, but didn't find a solution. how to port these lines to Linux or maybe where to find more info about how to set serial port timeouts on Linux?

View 4 Replies View Related

Programming :: Serial Port Program Not Outputting The Right Data?

Apr 11, 2009

I have connected a device to my linux system with a serial cable (rs232). The settings are: port /dev/ttyS0, baud rate=38400, data bits=8, stop bits=1, no parity, no hardware or software handshaking. I wrote a linux program that sends 1 byte to the device, but the device doesn't receive it. I know the serial ports are working because when I use the CuteCOM application to send data, the device DOES receive it, so obviously it is a problem with my code..

Code:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

[code].....

View 2 Replies View Related

Server :: Copy Of IBM Server Hard Disk Data To Another USB External Hard Disk?

Sep 1, 2009

Copy of IBM Server hard disk data to Another USB External Hard disk?

View 2 Replies View Related

General :: Best Way To Shutdown Hard Disk?

Oct 6, 2010

Right Now I'm using hdparm command in unix to shut down the hard disk but there are few issues with it.

when it wakes back up it consumes
lots power. Is there any other way
to do it?
Many times when I put my
hard disk to sleep, I can see few
bursts at the beginning and then
after a while it goes to sleep. I
think its because of the journaling
system in ubuntu (which I use) Have
anybody encountered that?
What would
be the best linux/unix operating
system (eg: ubuntu/centos/redhat) to
work on extensive hard disk
operations?

View 3 Replies View Related

General :: Use ATA Security On A Hard Disk?

Oct 28, 2010

My SSD HD supports ATA Security. Does Macbook EFI and linux support it? I know hdparm does. Who will do the unlock at each bootup? Can I still set a password without erasing the disk?

Update: removed "SED full hard disk encryption" from the title based on comment by @ataboy. Some might still refer to this ATA security incorrectly as "encryption" however.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved