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
ADVERTISEMENT
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
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
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
Apr 29, 2010
i need to get the hard disk serial number of my machine using a C++ program.
View 11 Replies
View Related
Jul 12, 2010
I read this thread but
Code:
anisha@linux-uitj:~> su
Password:
[code]...
View 14 Replies
View Related
Feb 19, 2011
Except faster reading of zone records there is not other purpose of correct SOA number,right?
View 2 Replies
View Related
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
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
Jan 15, 2011
Which linux tool can find out mainboard serial number?
View 5 Replies
View Related
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
Aug 24, 2009
There is a disk 500 gb, it is broken on /boot and on /root and on /dev/sda1 and /dev/sda2. Whether prompt it is possible to redistribute a disk without loss of data namely it is necessary to make/boot and two equivalent on disk volume.
View 3 Replies
View Related
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
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
Mar 22, 2011
after update to slackware current 4 days ago i cant get sound working in wine in starcraf 2 i mean i got sound in instalation but not in game and i get error when i wanna configure sound in winecfg
err:alsa:ALSA_CheckSetVolume Could not find '{PCM,Line} Playback Volume' element
err:alsa:ALSA_CheckSetVolume Could not find '{PCM,Line} Playback Volume' element
err:alsa:wine_snd_pcm_recover underrun occurred
err:alsa:wine_snd_pcm_recover underrun occurred
in game i dont got that error but sound dont work btw my sound card is asus xonar essence stx
View 2 Replies
View Related
Dec 27, 2010
I suspect that one of the disks is broken in my lvm setup. I need help verifying this. The only trouble is that everything looks okay in my eyes.
When i try to mount the logical partition. The system hangs.
"mount /dev/fileserver/media /var/media"
I have tried locating the problem without success. The same with a live cd.
Here are some of the commands i have run:
http://pastebin.com/gYyJtUvQ
View 8 Replies
View Related
May 19, 2010
I need to replace a disk from a veritas mirrored volume, I can not delete the disk from the diskgroup as the disk is using by other volumes in the same group. so, how can i remove the disk from my mirrored volume and can replace another disk.
View 1 Replies
View Related
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
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
Jan 29, 2011
I have 2 hdd
lvm was created in 2nd partition type primary.
yesterday i had deleted all partitions in the first drive of windows only from ubuntu disk utility. today i went to install windows and the partition space was shown as [139gb] , i thought this is the first hard disk. But my guess is windows must have taken the free space on my home partition inside lvm[ 150gb which roughly translates to 139 GiB.
SO first i deleted the whole partition of 139gb which was shown different in unallocated space as a slight less figure and then i created a 30gb partition on that space shown and went ahead, windows post creation again showed 139gb and then gave a message on next window that partition does not contain data to install windows xp. Strange i thought, this becoz next screen before the format partition as ntfs is all to be shown. Then i just felt something fishy and rebooted and then ubuntu of 2nd hdd is not booting.
I ran test disk from gparted live cd and i find td recovered the boot drive but not the 2nd primary partition in which lvm [root,home,swap] is created. It shows the lvm as 279gb. But not the 3 logical partitions inside it.
Now when i boot post the grub menu i get the following message
This disk contains all my data and the first drive was also wiped out full. test disk is not able to get anything on that windows drive.........
View 1 Replies
View Related
Feb 7, 2011
I plan to install a server using LVM. I thought a partition schema where /boot would be in an ext4 partition while / /usr /var /home and /opt would be in the LVM. My question is: if I'm putting / into the LVM, is it necessary to divide /usr /var /home and /opt into different logical volumes? If I divide them, would it become harder to maintain when new disk space has to be added to the volume group?
View 7 Replies
View Related
Sep 16, 2010
Is is possible to extend physical volume disk space from one to another?
Quote:
PV VG Fmt Attr PSize PFree
/dev/sda1 Zeus-extra lvm2 a- 149.05G 17.05G
/dev/sdb1 Zeus-misc lvm2 a- 394.96G 274.96G
Could I get 50GB from /dev/sdb1 and add it to /dev/sda1 ???
View 1 Replies
View Related
Jun 24, 2009
I dont know if this is possible or not but here what I would like to do. I have 6 linux server and each has 100GB disk space. All of these 6 box are compute nodes and space are not used really. However, If I can combine 6 servershard disk that will in total 6*100GB gives you quite a bigger space. Is there any tool or ways to mount these drive in one volume instead of mounting individually ?
View 2 Replies
View Related
Jul 1, 2010
I need to install a voice recording application on a server.My problem is that I have four hard disks with 150 GB storage space each. So I have 150*4 = 600 GB Storage available as whole .I need all four hard drives (600 GB ) as single volume to store and retrieve recording .
View 1 Replies
View Related
Jun 1, 2011
I ran yum update on my centos 5.6 box a couple of days ago and following this the system would not reboot, dont recall the exact error and don't seem to be able to find it logged anywhere but it was something to do with LVM not being able to find a disk.
In the end I have booted to linux rescue and edited my /etc/fstab file so the system does not try to mount the offending volume group. This enables the system to boot but I need to find out what is wrong with the system and get this volume group accessible again. Here is my edited fstab showing the commented out line. code...
View 1 Replies
View Related
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
Apr 8, 2011
I have a problem about my eth. i have 2 network cards. my problem is after i boot my computer with -current my eth0 keep changing number, why this happen? im not using dhcp and i assign an static ip in my eth0.
Code:
View 10 Replies
View Related
Mar 31, 2010
There seems to be a typo on Slackware.com security advisory webpage for the updated ssl packages (but not for the actual packages on ftp.slackware.com). The webpage says this:
openssl-0.9.8m-i486-1_slack12.2.tgz
openssl-solibs-0.9.8m-i486-1_slack12.2.tgz
The package in the ftp.slackware.com/12.2/patches/packages repository is:
openssl-0.9.8n-i486-1_slack12.2.tgz
openssl-solibs-0.9.8n-i486-1_slack12.2.tgz
I am guessing its a typo on the webpage because I already have an 'm' installed.
View 3 Replies
View Related
Jul 15, 2011
I run both slackware and the stupid OS "windows " on my laptop, after choosing Slackware -> Loading tux Read BIOS data check succesfull. Undefined video mode number:? Press enter to view a list or space to ...... (actually i don't remember " or wait 30 seconds.
I press enter and select a video mode then continue loading , but i dont want to do that every time so i edited lilo.conf and changed vga = ? to different numbers but it did not work.
View 4 Replies
View Related
Jul 19, 2011
Everytime my system boots, it displays 4 tux penguins above the text... however; on one of my older systems, it only displays 1 tux penguin... and on another it displays 2...So each time I boot, I have curiosity about this trivial issue, and now I can't take it anymore; I need to find out: what controls the number of tuxes when booting?
View 3 Replies
View Related