vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've used scripts to burn CD's and DVD's under OpenBSD for quite some time now. I've burned over 300 multisession CDR's and DVD+R's under OpenBSD , i've never lost any data and i've never been unable to read any multisession disk that I have appended sessions to. I have noticed two recurring annoyances , after the second or third session has been written , permissions default to r-x r-x r-x and the actual number of sessions that can be appended to a particular disk varies. I believe the permissions issue may relate to a known flaw in older versions of cdrecord , I do not know for certain , it could be something entirely different. The cdrecord issue that had affected many seemed to be caused by a problem related to the reading of an original session's permissions after a number of subsequent sessions had been written. I assume the variable number of sessions that can be written is due to some OpenBSD-specific issue. I almost always get at least 10 or so sessions , I frequently get perhaps 25 to 30 sessions , and sometimes I can get 40 to 50 sessions per disk. When additional sessions cannot be appended I usually receive some sort of unable to locate track error-message. I have attached some modified versions of the scripts I use to burn various types of disks. I find multisession disks to be extremely convenient and economical to use. I use multisession disks for data. I run my scripts as root and use a dedicated subdirectory that is used for holding data intended for burning. You'll need to modify my scripts to include the directory you wish to use and if you want the resulting disks to be compatible with non-Unix/unix-like OS's. I should have only modified these by removing references to my directory-structure , please check and make sure I didn't make any obvious mistakes while doing this. These scripts were used on i386 machines and are presently set to use my second optical drive which uses rcd1c. I have used these scripts for some two years , with only the mentioned annoyances. For most of this time I have been using LG "Multi-drives" , I am presently using two rather excellent LG GSA-4163B's. I have previously used LG GSA-4120B's. If anyone has better scripts or knows how to correct for the annoyances please let me know. I recall reading that someone within OpenBSD might have been working on related issues. ?? I don't usually finalize my multisession disks , so these particular scripts may or may not work well. I haven't used these two scripts as regularly as I have the others. It is my hope that someone might find these interesting or useful. An Odd User. #!/bin/sh ########## start-cd-MULTISESSION ########## /usr/local/bin/mkisofs -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -new-dir-mode 0500 -iso-level 3 -o /yourdirectoryhere/cd9660.tmp /yourdirectoryhere/ /usr/local/bin/cdrecord -v gracetime=10 driveropts=burnfree -multi -tao speed=16 dev=/dev/rcd1c /yourdirectoryhere/cd9660.tmp /bin/rm -f -P /yourdirectoryhere/cd9660.tmp #!/bin/sh ########## continue-cd-MULTISESSION ########## MSINFO=`/usr/local/bin/cdrecord dev=/dev/rcd1c -msinfo` /usr/local/bin/mkisofs -M /dev/rcd1c -C $MSINFO -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -new-dir-mode 0500 -iso-level 3 -o /yourdirectoryhere/cd9660.tmp /yourdirectoryhere/ /usr/local/bin/cdrecord -v gracetime=10 driveropts=burnfree -multi -tao speed=16 dev=/dev/rcd1c /yourdirectoryhere/cd9660.tmp /bin/rm -f -P /yourdirectoryhere/cd9660.tmp #!/bin/sh ########## finalize-cd-MULTISESSION ########## MSINFO=`/usr/local/bin/cdrecord dev=/dev/rcd1c -msinfo` /usr/local/bin/mkisofs -M /dev/rcd1c -C $MSINFO -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -new-dir-mode 0500 -iso-level 3 -o /yourdirectoryhere/cd9660.tmp /yourdirectoryhere/ /usr/local/bin/cdrecord -v gracetime=10 driveropts=burnfree -tao speed=16 dev=/dev/rcd1c /yourdirectoryhere/cd9660.tmp /bin/rm -f -P /yourdirectoryhere/cd9660.tmp #!/bin/sh ########## start-dvd-MULTISESSION ########## /usr/local/bin/growisofs -Z /dev/rcd1c -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -new-dir-mode 0500 -iso-level 3 -speed=8 /yourdirectoryhere/ #!/bin/sh ########## continue-dvd-MULTISESSION ########## /usr/local/bin/growisofs -M /dev/rcd1c -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -new-dir-mode 0500 -iso-level 3 -speed=8 /yourdirectoryhere/ #!/bin/sh ########## finalize-dvd-MULTISESSION ########## /usr/local/bin/growisofs -M -dvd-compat /dev/rcd1c -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -new-dir-mode 0500 -iso-level 3 -speed=8 /yourdirectoryhere/ #!/bin/sh ########## write-cd-SINGLESESSION ########## /usr/local/bin/mkisofs -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -iso-level 3 -o /yourdirectoryhere/cd9660.tmp /yourdirectoryhere/ /usr/local/bin/cdrecord -v gracetime=10 driveropts=burnfree -data -dao speed=16 dev=/dev/rcd1c /yourdirectoryhere/cd9660.tmp /bin/rm -f -P /yourdirectoryhere/cd9660.tmp #!/bin/sh ########## write-cd-SINGLESESSION-JOLIET ########## /usr/local/bin/mkisofs -R -J -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -iso-level 2 -o /yourdirectoryhere/cd9660.tmp /yourdirectoryhere/ /usr/local/bin/cdrecord -v gracetime=10 driveropts=burnfree -data -dao speed=16 dev=/dev/rcd1c /yourdirectoryhere/cd9660.tmp /bin/rm -f -P /yourdirectoryhere/cd9660.tmp #!/bin/sh ########## write-dvd-SINGLESESSION ########## /usr/local/bin/growisofs -Z -dvd-compat /dev/rcd1c -R -uid 0 -gid 0 -file-mode 0500 -dir-mode 0500 -iso-level 3 -speed=8 /yourdirectoryhere/ #!/bin/sh ########## write-cd-ISO-IMAGE ########## /usr/local/bin/cdrecord -v gracetime=10 driveropts=burnfree -data -dao speed=16 dev=/dev/rcd1c /yourdirectoryhere/* |