LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-05-2007, 07:22 PM   #1
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Rep: Reputation: 33
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.
 
Old 12-05-2007, 08:02 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.
 
Old 12-05-2007, 08:08 PM   #3
Slick666
Member
 
Registered: Feb 2006
Distribution: Ubuntu 8.04; Debian Etch
Posts: 167

Original Poster
Rep: Reputation: 33
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
 
Old 12-05-2007, 09:30 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You are welcome.
 
Old 06-11-2008, 02:09 PM   #5
SPF
Member
 
Registered: Jul 2007
Location: /home
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Can you retrieve the title as a normal user as well?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reading /proc information from kernel module someshwar Linux - Kernel 1 10-31-2006 11:35 PM
reading hard driver partition information phguna Linux - Hardware 4 05-14-2006 06:33 AM
I/O errors reading DVD-Rs but DVD+Rs are OK jsedwards Linux - Hardware 3 08-17-2005 01:15 PM
reading from a dvd gearoid Linux - Laptop and Netbook 4 02-10-2004 11:27 PM
Reading a DVD-R Cafrow Linux - Newbie 2 08-03-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration