Re: cd burning: kernel / userspace?

From: Alan Jenkins
Date: Thu Aug 12 2004 - 04:09:59 EST


Wakko Warner wrote:

Sorry, I'm not very good at this list / person CC stuff. I sent a reply to Valdis.Kletnieks@xxxxxx, but forgot to CC to list. Contents as follows:

I'm not sure this is necessary. Can't you just do:

# dump -0 -B 700000 -u -z3 /home -f -| cdrecord /dev/hdb -

dump and cdrecord allow you to use "-" as a filename to indicate that output shoud be written to stdout and input should be read from stdin respectively.



Yes, but if I was to understand it right, dump will close/reopen at "700000"
(whatever that is, 700000kb?). That won't work with cdrecord since it's
expecting a single input stream, not many seperated by a pause. I'd
consider it more like using tar with the multiple tape option. When it is
finished writing to a tape, it'll wait for the user to physically change
tapes and start writing at the beginning of the new tape.



I get it now. BTW, if dump can determine when the end of the media is reached it will close / reopen automatically, so it might also be possible to drop the -B option and make full use of media of different sizes (you can backup more data to an 80 minute CDR, less to a "business card" format one). You couldn't do that with "playing double-buffering games using -F to switch around".
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/