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


ADVERTISEMENT

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

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

CentOS 5 Server :: What Is The Maximum Number Of Logical Volumes In A Volume Group

May 15, 2009

what the maximum number of logical volumes is for a volume group in LVM ? Is there any known performance hit for creating a large number of small logical volumes vs a small number of large volumes ?

View 1 Replies View Related

CentOS 5 Hardware :: NetMOS PCI 9835 Dual Serial Card - Can't Use The Serial Ports

Feb 21, 2009

On my CentOS 5.2 install I've installed a dual-port serial card based on the NetMOS 9835 chipset. I've followed the serial instructions, but everything they tell me to do is already done - see setserial outputs below. I've compared these values to the lspci output (below, NetMos card is at the bottom of the output) for the card and it appears right. Problem being, I can't use the serial ports. Oh and I did use search, and looked at every 9835-related article before posting this :)

[Code]....

View 17 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

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

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

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

Hardware :: Tool - Finding The Mainboard Serial Number?

Jan 15, 2011

Which linux tool can find out mainboard serial number?

View 5 Replies View Related

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 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

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

CentOS 5 :: Add New RAID Volume To The Existing Logical Volume?

May 7, 2011

I have a system with a 2TB RAID level 1 installed (2 x 2TB drives, configured as RAID1 through the BIOS). I installed Centos 5.5 and it runs fine. I now added another 2x2TB drives and configured them as RAID1 through the BIOS.

How do I add this new RAID volume to the existing logical volume?

View 5 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

CentOS 5 :: Using USB Port For Serial Terminal?

Apr 27, 2009

The /dev directory on my system shows the following entries:

/dev/tty
/dev/tty0
/dev/tty1

[code]....

View 19 Replies View Related

CentOS 5 Networking :: How To Ssh To The Serial Port On A PC

Jan 16, 2010

I would like to be able to ssh to a TCP port on my server and be directly connected to the serial port @ 115200 Null modem config. Does any body know how one can do this?

View 4 Replies View Related

CentOS 5 Server :: Serial Console Does Not Work?

Apr 16, 2009

I configured the serial consol on centos5 as follows

# dmesg |grep tty
Kernel command line: ro root=/dev/VolGroup00/LogVol00 console=tty0 console=ttyS0,9600n8
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A[code]......

But I could not consol Centos server from my labtop (win xp) Is there missing or wrong configurations ?

View 3 Replies View Related

CentOS 5 :: Cannot Open Putty With USB To Serial Adapter

Aug 4, 2010

Im a very basic Linux/ Centos user. I have Putty installed and a USB to serial adapter. All settings seem to be right as far as speed, etc, but I'm not sure how to list the device to open for the program. The default location it gives is "/dev/ttyS0" Trying to find where the USB is located using the "/sbin/lsusb" command gives me-

Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 002: ID 0557:2008 ATEN International Co., Ltd UC-232A Serial Port [pl2303]
Bus 004 Device 001: ID 0000:0000

So I think this means that it is on bus 4 correct? So how do I list this for putty to open the device.

View 13 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

Debian Hardware :: How To Get Old Serial-touchscreen To Work With USB / Serial Adapter

Oct 9, 2015

I am hoping to be able to get an old serial-touchscreen to work with a usb/serial adapter. I had this touchscreen working some years ago on different hardware. I would like to hook it to the machine I am setting up as a multimedia host with mythtv among other things.

Following the instructions I left behind when I got this to work way back when does not work. See [URL] ....

This info is a work around to get the xserver to see the touchscreen. [URL] ....

I do know that the touchscreen works as I am able to get garbage on the screen as in the first part of my howto. But I have not had any success getting xorg to see it. I wish I had posted a copy of the xorg.conf at the time, but......

There is an issue with the current xserver in testing that I am hoping the next update (in unstable) will fix when it gets pushed to testing. That is that Code: Select all# X -configure fails with a segfault. So I am not able to generate the xorg.conf needed to get it to work. I was going to post a bugreport, that is when I found out there is an update in unstable, so I am waiting for it to get pushed at the moment.

Anyway I am hoping that I can link /dev/ttyUSB0 to /dev/tty0 and get it to work. I would like some kind of guess as to my chances of success before I go to all the work of getting the monitor hooked to the host.

View 1 Replies View Related

CentOS 5 Hardware :: Serial Modem U.S Robotics Not Recognized?

Jan 20, 2009

on my server (fax server)with Cento O.S 5.2 final kernel 2.6.18-92.el5 the external serial modem 56k us robotic is not recognized.Kudzu not notes the modem.PS .On the same server ,same modem ,same serial but with Centos 4.5 ,this as regular detect.

View 9 Replies View Related

CentOS 5 :: Detecting And Mounting Serial Mouse/trackball?

May 7, 2009

I am attempting to use a serial trackball in CentOS 5.3 and have run out of ideas. The mouse is connected to COM2 (/dev/ttyS1). I have tried to configure it through xorg.conf using every protocol I could find including "auto" and tried the same again using "inputattach". The mouse communicates at 1200 baud, so I've tried using stty to set the port to that baud rate and still no luck. Is there a test tool that can be used to see if the serial connection is functioning? If not, are there any other ideas?

View 1 Replies View Related

CentOS 5 Hardware :: One Port Of Serial Card Can't Work

May 18, 2010

I add one serical card which is extended to 4 serial ports to my host, but in centos 5.4, only 3 (In my machine, is ttyS1, ttyS2 and ttyS3,ttyS0 is another serial port) of my host can be used, and /dev/ttyS4 doesn't work.

$ sudo cat /dev/ttyS4
cat: /dev/ttyS4: No such device or address

The card info is as follows:

Host> lspci -vvv
03:01.0 Serial controller: Oxford Semiconductor Ltd OX16PCI954 (Quad 16950 UART) function 0 (Uart) (prog-if 06 [16950])
Subsystem: AFAVLAB Technology Inc Unknown device 2150

[code]....

View 3 Replies View Related

Ubuntu :: Serial MIDI - Doesn't See Any Serial Ports?

Jun 21, 2011

I have a bit of a dilemma. I'm attempting to use a microcontroller to send MIDI messages over a virtual serial port. I want to (eventually) read them with Mixxx. I'm using an FTDI chip, so I get a /dev/ttyUSB0. I've tried spikenzielabs' Serial-Midi program, but it doesn't see any serial ports. NOTEMIDI looks really old and won't compile on my 10.04 LTS machine.

View 2 Replies View Related

Software :: Connect A Serial Cable To The Serial Port?

Mar 23, 2010

We have a new machine with RedHat enterprise 5 on it. I need to connect a serial cable to the serial port and talk to another system (old alpha system) instead of using a VT connected to the alpha.Does RedHat come with anything like Keaterm/hyperterm/etc etc?

View 3 Replies View Related

CentOS 5 Hardware :: 5.5 - Does Currently Not Support Oxford's OXPCIe952-F Serial Controller Chip

Jan 27, 2011

Is it possible that CentOS 5.5 does currently not support Oxford's OXPCIe952-F serial controller chip? We've added one of those PCIe x1 cards to one of our servers since we need additional serial interfaces but it doesn't seem to work. Instead of three serial ports (the server comes with one already, the controller adds two more) we still only have ttyS0:

Quote:

root/linux2$ zgrep ttyS /var/log/*
/var/log/dmesg:serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
/var/log/dmesg:00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

[code]....

View 14 Replies View Related

OpenSUSE :: Developing Website Locally

Sep 20, 2010

Is it possible to develop my websites locally before uploading them to my host? I need PHP and MYSQL. I'd like to have basically http access to my websites locally on my hard disk but restrict access to only me. No access outside of this machine. How to do this?

View 9 Replies View Related

Software :: Developing Own Web Server Using Perl

Sep 20, 2010

I would like to develop a simple web server that can serve web pages using perl. I know there are lots of web servers in the market. But I want to understand the concept underlying working of a web server. Please provide me if there are any good links available for this.

View 4 Replies View Related

Programming :: Developing Distro - Creating Own OS

May 1, 2009

I am very much interested in operating systems and I am a beginner. I just finished understanding OS concepts. I want to create my own OS. But I am thinking of creating a linux distro first and then going towards complicated things. How I need to equip myself for creating it. What should I know, learn and where to start.

View 6 Replies View Related







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