On Mon, Oct 21, 2002 at 05:04:17PM -0400, Thom Paine wrote: > Is there a command or way to ready the volume id of a cd in the drive? If you have read access to /dev/cdrom (e.g., you are root) you can list the iso9660 primary volume descriptor with: isoinfo -d -i /dev/cdrom The following bash fragment will get the volume id in a variable. volid=`isoinfo -d -i /dev/cdrom | \ sed -e '/Volume id:/!d' -e 's/Volume id: //'` There ought to be a better way, and further, there ought to be a way to do it without requiring read access to /dev/cdrom (at least for CDs that are mounted). -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list