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.
|