LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 02: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, 06: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, 09:10 AM   #3
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
'-dummy'?

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

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
cdrecord -minfo dev=/dev/cdrom
 
Old 06-11-2009, 05: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 11:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration