Am Donnerstag, 10. Juli 2008 schrieb Daniel Iliev: > On Thu, 10 Jul 2008 13:06:06 +0200 > > Dirk Heinrichs <[EMAIL PROTECTED]> wrote: > > Hmm, never tried it myself so I don't know wether it works or not, > > but what about enabling CONFIG_CDROM_PKTCDVD in the kernel and let > > tar write to the device directly? > > > > Like: > > > > modprobe pktcdvd > > pktsetup backup /dev/cdrom > > tar -cMvf /dev/pktcdvd/backup myfiles # Change disc when prompted > > pktsetup -d backup > > rmmod pktcdvd > > AFAIK packet writing is intended for using RW media as a "normal" > block device.
Yes, sure.
> I have never tried it myself either.
I did, but only with CD-RW discs, which doesn't work well. It's known to work
better with DVD±RW.
> If you just wanted to have a file system (other than isofs) on a
> write-once *DVD*, you can do something like:
No, why would I? The idea behind the above is to let _tar_ write to the device
directly, as it would do with tape devices. No fs involved. OTOH, if I wanted
a filesystem, that would be UDF, which I could still write to using the
method above (+ create the fs with cdrwtool before running pktsetup and then
mount it, of course).
> dd if=/dev/null of=test.fs bs=1M seek=4480 count=0
> mkfs.ext2 test.fs
> mkdir loopdir
> mount -o loop test.fs loopdir
> cp -a "some files & dirs" loopdir/
> umount test.fs
> rm -r loopdir
> pipebench -b 50000000 < test.fs | growisofs -Z /dev/sr0=/dev/fd/0
> mount /dev/dvd /mnt/dvd
And that would give me a multi volume backup if the data doesn't fit on one
disc?
Bye...
Dirk
signature.asc
Description: This is a digitally signed message part.

