Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 58
CD/DVD RW identification cdrecrord

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
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
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19

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

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

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


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 AM.

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