Multi session dvd using cdrecord


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Multi session dvd using cdrecord
# 1  
Old 11-17-2011
Multi session dvd using cdrecord

I wrote the following script after reading a tutorial, but...
Code:
#!/usr/bin/ksh                                      
DATE=`date +"%y%m%d%H%M"`                           
echo $DATE                                          
FILENAME=`echo "obase = 16\n $DATE"|bc`             
echo $FILENAME                                      
cd /                                                
tar ctvf /home/$FILENAME.tar u >/dev/null           
cd /home                                            
gzip $FILENAME.tar                                  
mv $FILENAME.tar.gz $FILENAME.tgz                   
POSITION=`cdrecord -msinfo`                         
echo $POSITION                                      
mkisofs -o $FILENAME.iso -C $POSITION $FILENAME.tgz 
cdrecord -sao -multi $FILENAME.iso

but when I run
Code:
cdrecord -msinfo

afterwards, it always says 0,0
The media is DVD-RW
What I had hoped would happen is that the latest backup would be appended to the dvd.
# 2  
Old 11-18-2011
Check the contents of the DVD, not just its session IDs, does it have the extra files or not?

---------- Post updated at 11:52 AM ---------- Previous update was at 11:41 AM ----------

You should add -R and -J to your mkisofs options, otherwise you'll be restricted to 8.3 style filenames.

From man cdrecord:

Code:
       -multi Allow  multi  session CDs or multi border DVDs to be made.  This
              flag needs to be present on all sessions of a multi  session  or
              multi  border  disk, except you want to create a session on a CD
              that will be the last session on the CD media.

              For CD media, the fixation will be done in a way that allows the
              CD/DVD/BluRay-Recorder to append additional sessions later. This
              is done by generation a TOC with a  link  to  the  next  program
              area.  The so generated media is not 100% compatible to manufac-
              tured CDs (except for CDplus).  Use only for recording of  multi
              session  CDs.  If this option is present, the default track type
              is CD-ROM XA mode 2 form 1 and the sector size  is  2048  bytes.
              The XA sector subheaders will be created by the drive.  The Sony
              drives have no hardware support for CD-ROM XA  mode  2  form  1.
              You  have  to  specify the -data option in order to create multi
              session disks on these drives.  If you like to record  a  multi-
              session  disk  in  SAO mode, you need to force CD-ROM sectors by
              including the -data option.  Not all drives  allow  multisession
              CDs in SAO mode.

              For  DVD  media,  -multi  switches the write mode to incremental
              packet recording.  There is currently  no  way  to  prevent  the
              ability  to  append further sessions and there is currently only
              support for DVD-R/DVD-RW media.  To reuse a DVD-RW that has pre-
              viously  been  written  in incremental packet recording mode for
              different write modes,  you  need  to  blank  the  entire  media
              before.

So multisession doesn't work the same way with DVD's, and 'session info' may not be valid.

Why not use growisofs? It's sort of a combined cdrecord and mkisofs built specially for multisession DVD's, not CD's.

Code:
# Burn the first session
growisofs -Z /dev/dvd -R -J backup1.tar.gz
# Burn on another session
growisofs -M /dev/dvd -R -J backup2.tar.gz

Something to be aware of when using mkisofs and growisofs is when you do mkisofs ... folder1 folder2 it adds folder1/file.txt and folder2/file.txt to the base folder, not as folder1/file.txt and folder2/file.txt. This will try to create two files with the same name, causing mkisofs to die with a mysterious error about duplicate filenames which took me much headscratching to figure out.

Last edited by Corona688; 11-18-2011 at 01:57 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. AIX

Using mkdvd to create bootable mksysb on dvd reports success but nothing on dvd?

Hello, Running AIX 7.1 7100-00-03-1115, trying to make a mksysb image to a dvd drive using mkdvd. My final command looks like this.. mkdvd -e -V rootvg -R -C /usr1/AIXADMIN/mkcd/cd_fs -I /usr1/AIXADMIN/mkcd/cd_images -M /usr1/AIXADMIN/mkcd/mksysbimage -d /dev/cd0 -Y When i run this... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

2. UNIX and Linux Applications

unable to open the MRL 'dvd:///dev/dvd'

I am getting an error similar to this when I try to watch dvd's. Every program has a similar version of this. unable to open the MRL 'dvd:///dev/dvd'For VLC I have found a way to fix it. CD/DVD Drive not working VLC error (SOLVED) (Page 1) - Help & Support (Stable) - CrunchBang Linux Forums... (0 Replies)
Discussion started by: cokedude
0 Replies

3. Linux

How to make multi os installatin DVD

i want to make an install dvd with os's Wiun xp redhat Linux 5 i tried with MagicISO but after making always says redhat checksome error while checking created ISO file in VMWARE Workstation and Microsoft virtualpc... (2 Replies)
Discussion started by: seshumohan
2 Replies

4. Solaris

Cannot use multi session with OpenOffice 3 Solaris 10

Hi all, I wonder anyone ever have my problem like me. I install OpenOffice(OO) 3.0 on a Solaris 10 server( ./setup without option). ( ./setup -net it realease this Now my problem is I cannot open OO from 1 user with 2 sessions ( X Manager) Or i just can use 2 different user... (4 Replies)
Discussion started by: tien86
4 Replies

5. Programming

cdrecord frontend for dvd burning

I came across a small script called pyBurn (attached) which is a frontend for cdrecord. But it only burns cd's and doesn't even recognize my dvd-burner. I'm still learning python (very early stages) so I can't do much with it... is it possible to make it burn dvd's too? (I'm running Ubuntu Gutsy... (0 Replies)
Discussion started by: el mariachi
0 Replies

6. UNIX for Dummies Questions & Answers

CDRECORD & Multisession

I'm new to all this cdrecord and I'm struggling trying to create backups on a DVD-RW disk using a NEC DVD writer that supports PACKET & SAO modes. I've created two cd images by: mkisofs -r -J -l -L -o /file1.iso /mnt mkisofs -r -J -l -L -o /file2.iso /mnt Then burned the first image to the... (0 Replies)
Discussion started by: ifleet2007
0 Replies
Login or Register to Ask a Question