LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Reading CD/DVD information (https://www.linuxquestions.org/questions/linux-hardware-18/reading-cd-dvd-information-604803/)

Slick666 12-05-2007 07:22 PM

Reading CD/DVD information
 
I have a whole bunch of dvd's (that I own) and I would like to put them on my linux server to stream them to my computer. The first trial worked quite well but I wanted to automate the process. I know a little batch and have almost everything I need. The last part I need is to read the title of the DVD. even my windows machine can tell me what the title is by the name of the dvd (i.e. SIMPSONS_S!_D! for simpsons Season 1 Disk1). If I can read that I'm in business but I cannot find an example amongst all the cdrom mounting examples.

Does anyone know how to do this on the command line or what utility will do this. This is a server so I would like to keep everything in bash if possible.

Lenard 12-05-2007 08:02 PM

Assuming your CD/DVD drive is /dev/hdc then type something like; /lib/udev/vol_id --export /dev/hdc

Try using the type command ls -al /dev/cdrom to find out which device is the drive then change the first command accordingly.

Slick666 12-05-2007 08:08 PM

Thanks

With root privileges I get
Code:

D_FS_USAGE=filesystem
ID_FS_TYPE=udf
ID_FS_VERSION=
ID_FS_UUID=
ID_FS_LABEL=SIMPSONS_S10_D1
ID_FS_LABEL_SAFE=SIMPSONS_S10_D1

I think I can work with it from here to extract "SIMPSONS_S10_D1"

thanks again

Lenard 12-05-2007 09:30 PM

You are welcome.

SPF 06-11-2008 02:09 PM

Can you retrieve the title as a normal user as well?


All times are GMT -5. The time now is 12:47 AM.