What if an http request arrives while I am authoring CD/DVDs. Can the burn go wrong?
Hi:
Scenario: I am running cdrecord in order to burn an iso image onto a disk. And in the middle of the session an LQ post arrives at my machine. Am I at risk of cdrecord failing? |
I cannot think why the burning of iso image will be afected by a LQ post. Can you think of any reason why this should be so?
|
Yes. Burning a disk is an uninterruptable process.
|
Use 'driveropts=burnfree' and nothing can interrupt the burn. In fact, the burn can stop completely and then resume without any problems.
Burning a DVD is different, because there is no burnfree, so I recommend using: Code:
nice -n -5 growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -use-the-force-luke=notray -Z /dev/dvdrw="$1" Just for reference for CDs I use: Code:
nice -n -5 cdrecord -v speed=1 driveropts=burnfree dev=/dev/cdrw -dao "$1" |
Quote:
(a) So speed=1 forces minimum speed, even if the medium is not a "no-name", does it? (b) And about -use-the-force-luke=, I suppose I can't put cdrecord options on the right of the equal sign because growisofs does not use cdrecord. Is this so? |
Quote:
|
That is very interesting. So the cpu scheduler is software! I suppose in old computers the cpu time slices were all equal in lenght. I once skimmed over the P6 family of Intel processors manuals and saw that that was a world. I can't imagine what it must be todday.
The first three items are controllable through cdrecord. And the slower the speed the better the recording. Wrong: for the first item I can use nice. (But then nice is a CPU scheduler!) |
Quote:
Quote:
Quote:
http://rpm.pbone.net/index.php3/stat...azwa/schedtool http://ck-hack.blogspot.de/2012/07/b...ux-34-ck3.html This is just for info, not required for burning CDs. ;) |
Thanks for more intersting facts and for the links, reading which, I saw:
To execute mplayer in SCHED_RR with priority 20. The priority arg is neededfor both SCHED_RR and SCHED_FIFO. I've always wondered why I can't make mplayer play an audio disc (CDDA) in a descent way. No matter what mplayer package, no matter what CD, the buffer seems at times to empty, even if I augment the cache size. But reading the quote above, I think something could be done in a more radical o basic way! However, playing with the scheduler is something I, right now, wouldn't dare to do. May be by a combined reading of the man page and careful study of the subject I could make mplayer "behave himself" sooner than I expect! Also, mplayer is too big a program for my machine. But it plays movies prity well. Unbelievably it is CDDA what it has trouble with. |
Quote:
|
Quote:
growisofs is the only one with -use-the-force-luke options and it is completely different from cdrecord. You can technically also burn DVDs with cdrecord, but I prefer growisofs. Both programs can use mkisofs, but I recommend making the ISO beforehand so there is less chance of something taking too long and leading to buffer underflow. |
Quote:
|
Quote:
|
I want to ask a related question, so I'll use this thread. With one of my optical disk burners, a Philips SPD2417T, not exactly a high-end product, I'm getting
WARNING: Drive returns wrong startsec (0) using -150 Writing pregap for track 1 at -150 every time I use cdrecord on it. Would this be a serious failure? |
Quote:
|
It's good to know. cdrecord is very strict, indeed. It (my version) resists authoring multisession DVDs, but growisofs does it all the same. Thanks a lot.
|
All times are GMT -5. The time now is 05:12 PM. |