LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-15-2004, 02:56 PM   #1
backne
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Rep: Reputation: 0
Missing cdrecord sessions


My general problem is that once a CD burn has completed (using cdrecord), I need to programatically verify that the intended contents exist on the CD. To do this I was simply going to iterate through my local copy of the burn image directory and compare the md5sum results with the corresponding files on the CD.

My approach works great for a limited number of cases. My only issue is that 'sometimes' the latest burn session is not visible to the FS even though it actually does exist on the CD.

I know the burn works because when I eject then re-insert the CD, the latest files appear. After witnessing this, I experimented a bit more to see when the newly burned files will appear to the FS.

The newly burned files will appear to the FS if the following is first performed:
1) A CD already exists in the drive and the system is turned on.
2) With the system already on, insert a CD.
3) After each burn session, eject then re-insert CD (much like #2)

I was originally suspecting that supermount was the culprit, but I've noticed the identical results occur whether or not supermount is enabled.

Since I need to do this programatically, ejecting the CD (whether via instructing the user or programatically) will not be acceptable for other reasons I will not go into.

Does anyone have a clue what my issue might be?

My configuration is as follows:

Mandrake 9.2 installation
cdrecord version 2.01a18-dvd

and the cdrecord line is:
cdrecord -multi -v speed=4 dev=0,0 -data myImage

Thanks in advance.
 
Old 03-15-2004, 07:56 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Have you tried adding 2 initial steps to your verification program to simply unmount, then remount the CD, without the eject? It sounds like all you really need to do is a refresh, which is accomplished by the 3 options you list, and which would also be accomplished by an unmount and remount. -- J.W.
 
Old 03-16-2004, 07:29 AM   #3
backne
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Yes I have tried the unmount/mount path but with no success (no supermount as previously mentioned). Unfortunately I do not have the luxury to eject and close the CD tray. And Yes, all I need to do is a 'refresh' (w/o ejecting the tray) but how?
 
  


Reply


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
Two X sessions? LinuxSeeker Linux - General 3 04-07-2004 03:39 PM
Missing cdrecord sessions backne Mandriva 6 03-17-2004 03:54 PM
Missing cdrecord sessions backne Linux - Distributions 0 03-16-2004 06:59 AM
Sessions BajaNick Linux - General 0 07-30-2003 09:19 PM
Multiple X sessions gluon Linux - General 1 09-29-2001 10:20 PM

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

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