LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-08-2002, 06:00 PM   #1
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
Testing CD for Contents


K, I wrote a backup/restore script, and I was wondering if there is a way to test a cd-rom drive for contents without mounting it. I ask because I am trying to burn a CD but I want to make sure there is a CD in the drive before it trys to write, problem occurs because the only way I know of testing is to try to mount, but a blank CD can't be mounted so that won't work. Any ideas?

Thanks in Advance!
Mike.
 
Old 04-09-2002, 02:37 PM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
anybody?
 
Old 04-09-2002, 05:35 PM   #3
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Take a look at the last line of the output of
Code:
cdrecord dev=0,0,0 -atip
with and without a cd. (sub in the correct device for your system)
 
Old 04-09-2002, 10:29 PM   #4
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
Thanks for the reply, I actually found a way using cdrecord, it's cdrecord -load dev=0,0,0 and that does it just fine. The atip I felt wouldn't necessarily do exactly what I wanted, but it was what got me in the right direction ;-) Thanks man!

Mike.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm contents bong.mau Linux - General 1 11-03-2005 01:54 PM
contents of /testing/source/linux-2.6.x on slackware install cd 2 [LAG] Prude Slackware 3 03-30-2005 09:26 PM
Setup as getting debian testing files from ftp - will it stay with testing BrianHenderson Debian 2 09-02-2004 06:06 PM
cd contents ultra99 Linux - Software 2 08-17-2004 06:37 AM
Cannot see contents of my folder nr4g3d Linux - Newbie 6 02-09-2004 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 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