Download Debian Reference
Transcript
Chapter 9. Tuning a Debian system # # # # 9.3.6 141 mount -t iso9660 -o ro,loop cd-image.raw /cdrom cd /cdrom mc umount /cdrom Write to the CD-writer (R, RW): First test with (assuming double speed) # nice --10 cdrecord -dummy speed=2 dev=0,0 disk.img Then if OK, write to CD-R with # nice --10 cdrecord -v -eject speed=2 dev=0,0 disk.img Or write to a CD-RW disk with # nice --10 cdrecord -v -eject blank=fast speed=2 dev=0,0 disk.img Some CD-RW drives work better with # nice --10 cdrecord -v blank=all speed=2 dev=0,0 disk.img followed by # nice --10 cdrecord -v -eject speed=2 dev=0,0 disk.img Two steps are needed to prevent SCSI timeouts during blanking from interfering with the burning step. The argument value to nice may require some adjustments. 9.3.7 Make an image file of a CD Some CD-Rs and commercial CDs have junk sectors at the end that make copying by dd impossible (the Windows 98 CD is one of them). The cdrecord package comes with the readcd command. Use this to copy any CD contents to an image file. If it is a data disk, mount it and run df to see its actual size. Divide the number shown in blocks (1 block = 1024 bytes) by 2 to get the number of actual CD sectors (1 sector = 2048 bytes). Run readcd with options and use this disk image to burn the CD-R/RW. # readcd dev=target,lun,scsibusno # select function 11