LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting CD Volume name of mounted images (https://www.linuxquestions.org/questions/linux-software-2/getting-cd-volume-name-of-mounted-images-301847/)

Darkvater 03-15-2005 08:55 AM

Getting CD Volume name of mounted images
 
I am having a hard time getting the volume name of a cd-image.

"volname /dev/dvd" works for a real inserted cd/dvd, but I am trying to use it on a mounted .iso/.bin/.cue file.

Volname just fails in these circumstances complaining about that it is not a device but a directory, etc. I mounted the .bin/.cue file with cdemu.

Is there an easy way of doing this?

uberNUT69 03-15-2005 07:08 PM

sounds like you are trying to run volname command on the directory where the iso is mounted.
volname needs the iso file as an argument, not the mount point.

Darkvater 03-16-2005 06:13 AM

ah so "volname isofile.bin" ?

I also tried that but all I got was garbage. Somebody suggested "cat isofile.bin | strings | less" which extracted all strings from the bin file including the volume name. But I don't think that is the way to do it :)

NVRAM 03-16-2005 11:58 AM

Try 'isoinfo -d -i isofile.bin' (part of the 'mkisofs' package).


All times are GMT -5. The time now is 05:52 PM.