Sunday, June 04, 2006

How do I read the Volume ID of a CDROM under Linux?

If you want to read a CDROM Volume ID under Linux (as set by 'mkisofs -V volID') (which Solaris & Windows can read, and Windows displays as the disk label) you can do:


# dd if=/dev/cdrom bs=1 skip=32808 count=32


Or do:


# dd if=/dev/cdrom bs=8 skip=4101 count=4