Thursday, October 18, 2007

Wodim, genisoimages and pipes

I'm just burning some saves, and I thought that while waiting for the burning process to finish, I could share some of my .zshrc tricks about this... I'm using wodim and genisoimage (Debian tools derived from cdrecord and mkisofs) to burn my disks, and here is what I have in my .zshrc to burn using a pipe:

wodim-pipe() {
    size=`genisoimage -q -print-size $@`
    genisoimage $@ | wodim -tao fs=100M \
        speed=2 dev=/dev/cdrw1 driveropts=burnfree -v \
        tsize=$size's' -multi -
}

With this function, I'm simply using the following code to burn the contents of the saves-server directory, to the saves-18-10-2007 directory on the disk:

wodim-pipe -r -J -root saves-18-10-2007 -joliet-long saves-server 

Hope you'll find this useful !!

1 comment:

Gandalf said...

Thank you was looking for this.
Trying to have an alternative to growisofs which used to work but is making me some nice coasters.