LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2009, 01:46 AM   #1
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
CD/DVD RW identification cdrecrord


Hello,
I am writing a script from burning to CD/DVD using cdrecrod, Is there any way i can figure out wether the CD/DVD is writable or not.
 
Old 06-09-2009, 05:06 AM   #2
rikxik
Member
 
Registered: Dec 2007
Posts: 88

Rep: Reputation: 19
I think cdrecord has a "scanbus" option which would provide details of the drive. You can capture the output, do some string processing and determine if the drive is writable or not. Run "man cdrecord" and search for "scanbus" for more details.
 
Old 06-09-2009, 08:10 AM   #3
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
'-dummy'?

eg: 'cdrecord -v -dao -dummy *av'
 
Old 06-09-2009, 12:55 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
cdrecord -minfo dev=/dev/cdrom
 
Old 06-11-2009, 04:46 AM   #5
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Original Poster
Rep: Reputation: 58
Thanks to all for you comments
 
  


Reply

Tags
cd, cdrecord, rw



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
Hardware Identification beev1812 Linux - Hardware 5 01-21-2009 09:13 AM
computer identification tableyou Linux - Newbie 2 11-09-2005 09:53 PM
identification of USB 1.1 or 2.0 on my PC jaggus Linux - Hardware 0 09-15-2004 03:47 AM
Chipset Identification Drake88 Linux - Hardware 1 04-28-2004 01:29 AM
RPM Identification shooter Linux - General 1 02-09-2002 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 AM.

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