Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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.
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?