[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cdrecord/README.ATAPI boot camp



Just thought you might like to see how I append files to my CDs, a
multitrack backup CD.  My hair is turning grey in no coincidence to
the trial and error involved.  I step thru it and it actually works.
You know what's neat?  How the windows users just pop in the disks
like on the Nero screen, whilst us Linux Debian users get
/usr/share/doc/cdrecord/README.ATAPI.gz boot camp, if indeed we still
have the 'cells to comprehend it.

#Makefile:
sec=/home/jidanni/tmp/first_dir/second_dir
a19copy: #must be root
	-rm $(sec)/*
	find /var/tmp/*bkp*.bz2 -mtime -1 -print -exec cp -p {} $(sec) \;
        #cp a cpio backup into the empty 'second dir', then

insmod: #2002.7 must have disk in recorder
	insmod ide-scsi #debian, else bananas. in lilo.conf I appended stuff too

debdev=0,0,0
a19: #must have disk in recorder, silly me
	-mount /cdrom
	set -x;Z=`cdrecord -msinfo dev=$(debdev)` && \
	mkisofs -v -o ../tmp/isoimage_2.raw -r -C $$Z -M /dev/cdrom ../tmp/first_dir
a19d:
	-mount /cdrom #I forgot if needed
	#needed fs=4m otherwise it can't read it out of the default file
	cdrecord fs=4m -dummy -v -multi ../tmp/isoimage_2.raw

##did you make room infront of the computer as the disk will get
#ejected (a male thing, else no guarantee of success) after this:
#also don't do any other stuff at the same time to slow this down!
a19w:
#Must unmount first otherwise it will think it is read only no matter
#what you do in fstab or -o rw etc.  Also you will think you burned ok
#but it didn't burn at all
	-umount /cdrom
	#needed fs=4m otherwise it can't read it out of the default file
	cdrecord fs=4m -v -multi -eject ../tmp/isoimage_2.raw
#ok, see if it worked
close_drawer:
	eject -t /dev/scd0 #if already closed also ok
#deb /usr/share/doc/cdrecord/README.ATAPI.gz
a19check: close_drawer
	-mount /cdrom
	ls -Ul /cdrom/* $(sec)
	find /cdrom/ $(sec) -mtime -1 -type f|xargs sum|sort -n
#hope all is well :-)
-- 
http://jidanni.org/ Taiwan(04)25854780



Reply to: