I wanted to burn an ISO to a DVD+R. I decided to do a dummy write first (where the laser is off so it's basically a dry run) since I'd never used the command before and I wanted to make sure I was doing it right. I did
wodim -v dev=/dev/sr0 speed=4 -dummy -eject path/to.iso and it looked like it was working correctly. Figuring I didn't want to wait for it to finish pretending to burn the large disc image, I hit Ctrl+C and typed the same command without
-dummy to start the burn for real.
wodim: WARNING: Data may not fit on current disk. wodim: Notice: Most recorders cannot write CD's >= 90 minutes. wodim: Notice: Use -ignsize option to allow >= 90 minutes. wodim: Notice: Use -overburn option to write more than the official disk capacity. wodim: Notice: Most CD-writers do overburning only on SAO or RAW mode.
I took the disc out and looked at the bottom, and saw a thin ring with a difference in shade, indicating a small amount of data had been burned to the disc. I can only conclude that for some reason the
-dummy option didn't work, and it was burning the image for real, at least until I aborted it.
I figure the
-overburn option it suggests is used to burn a new track from the beginning, which isn't what I want. I need to boot from this disc, so the actual structure of the data matters, not just that the files I want are accessible. How do I make it finish where it left off so the disc doesn't go to waste? I don't see any exact indication of where it left off (just "145 of 4177 MB written", which isn't exact enough) but it should be easy to determine by reading the disc and the image and finding where they first differ.
EDIT: I just used
cmp to compare
/dev/sr0 to the ISO, and it said the first differing byte is byte 152307713. So that's where it left off. If I cut off the beginning of the ISO so it starts at that byte, and then burn that file to the disc using the same command, will that work? Or will there be a track boundary or something in between that will cause problems?
EDIT 2: Here's the output of the commands suggested by Thomas Schmitt:
$ dvd+rw-mediainfo /dev/sr0 INQUIRY: [MATSHITA][DVD+-RW UJ8C7 ][1.00] GET [CURRENT] CONFIGURATION: Mounted Media: 1Bh, DVD+R Media ID: CMC MAG/M01 Current Write Speed: 8.0x1385=11080KB/s Write Speed #0: 8.0x1385=11080KB/s Write Speed #1: 2.4x1385=3324KB/s Speed Descriptor#0: 01/2295103 R@3101059.2x1385=4294967040KB/s W@8.0x1385=11080KB/s Speed Descriptor#1: 01/2295103 R@3101059.2x1385=4294967040KB/s W@2.4x1385=3324KB/s READ DVD STRUCTURE[#0h]: Media Book Type: 00h, DVD-ROM book [revision 0] Legacy lead-out at: 2295104*2KB=4700372992 READ DISC INFORMATION: Disc status: appendable Number of Sessions: 1 State of Last Session: incomplete "Next" Track: 1 Number of Tracks: 2 READ TRACK INFORMATION[#1]: Track State: partial/complete Track Start Address: 0*2KB Next Writable Address: 74384*2KB Free Blocks: 2064480*2KB Track Size: 2138864*2KB READ TRACK INFORMATION[#2]: Track State: blank Track Start Address: 2138880*2KB Next Writable Address: 2138880*2KB Free Blocks: 156224*2KB Track Size: 156224*2KB ROM Compatibility LBA: 265696 READ CAPACITY: 0*2048=0 $ cdrskin -v dev=/dev/sr0 -minfo cdrskin 1.4.2 : limited cdrecord compatibility wrapper for libburn cdrskin: verbosity level : 1 cdrskin: NOTE : greying out all drives besides given dev='/dev/sr0' cdrskin: scanning for devices ... cdrskin: ... scanning for devices done cdrskin: pseudo-atip on drive 0 cdrskin: status 3 BURN_DISC_APPENDABLE "There is an incomplete disc in the drive" scsidev: '/dev/sr0' Device type : Removable CD-ROM Vendor_info : 'MATSHITA' Identifikation : 'DVD+-RW UJ8C7' Revision : '1.00' Drive id : 'WQ36 064543' Driver flags : BURNFREE Supported modes: TAO SAO cdrskin: burn_drive_get_write_speed = 11080 (8.0x) Current: DVD+R Profile: 0x0012 (DVD-RAM) Profile: 0x002B (DVD+R/DL) Profile: 0x001B (DVD+R) (current) Profile: 0x001A (DVD+RW) Profile: 0x0013 (DVD-RW restricted overwrite) Profile: 0x0014 (DVD-RW sequential recording) Profile: 0x0016 (DVD-R/DL layer jump recording) Profile: 0x0015 (DVD-R/DL sequential recording) Profile: 0x0011 (DVD-R sequential recording) Profile: 0x0010 (DVD-ROM) Profile: 0x000A (CD-RW) Profile: 0x0009 (CD-R) Profile: 0x0008 (CD-ROM) Profile: 0x0002 (Removable disk) book type: DVD+R (emulated booktype) Product Id: CMC_MAG/M01/48 Producer: CMC Magnetics Corporation Manufacturer: 'CMC MAG' Media type: 'M01' Mounted media class: DVD Mounted media type: DVD+R Disk Is not erasable disk status: incomplete/appendable session status: empty first track: 1 number of sessions: 1 first track in last sess: 1 last track in last sess: 2 Disk Is unrestricted Disk type: DVD, HD-DVD or BD Track Sess Type Start Addr End Addr Size ============================================== 1 1 Apdbl 0 2138863 2138864 2 1 Blank 2138880 2295103 156224 Next writable address: 2138880 Remaining writable size: 156224 Warning: Incomplete session encountered ! $ xorriso -outdev /dev/sr0 -toc xorriso 1.4.2 : RockRidge filesystem manipulator, libburnia project. Drive current: -outdev '/dev/sr0' Media current: DVD+R Media status : is written , is appendable Media summary: 1 session, 2295104 data blocks, 4483m data, 305m free xorriso : WARNING : Incomplete session encountered ! Drive current: -outdev '/dev/sr0' Drive type : vendor 'MATSHITA' product 'DVD+-RW UJ8C7' revision '1.00' Drive id : 'WQ36 064543' Media current: DVD+R Media product: CMC_MAG/M01/48 , CMC Magnetics Corporation Media status : is written , is appendable Media blocks : 1 readable , 156224 writable , 2295104 overall TOC layout : Idx , sbsector , Size , Volume Id Incmp session: 1 , 0 , 0s , Media summary: 1 session, 2295104 data blocks, 4483m data, 305m free Media nwa : 2138880s xorriso : WARNING : Incomplete session encountered ! $ cdrecord -v dev=/dev/sr0 -minfo wodim: Bad Option: -minfo. Usage: wodim [options] track1...trackn Use wodim -help to get a list of valid options. Use wodim blank=help to get a list of valid blanking options. Use wodim dev=b,t,l driveropts=help -checkdrive to get a list of drive specific options. Use wodim dev=help to get a list of possible SCSI transport specifiers.