CDRECORD & Multisession


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers CDRECORD & Multisession
# 1  
Old 08-27-2007
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 DVD-RW:
cdrecord -v -sao -eject -multi /file1.iso

The files are visible & readable on this server and also in Windows File Explorer on an XP based PC.

I then try the second burn:
cdrecord -v -sao -eject -multi /file2.iso

when I get a reference to "trying to clear drive status" the dvd ejects and the command fails.

If I re-insert the dvd and:
cdrecord -msinfo

this fails with:
cdrecord: drive needs to reload the media to return to proper status
WARNING: Phys disk size 4989 differs from rzone size 0! Prerecorded disk?
WARNING: Phys start: 196608 Phys end 201596
0,0

If I try to:
cdrecord -blank=all

this works correctly and I can re-write the first track to the same dvd again!

So what am I missing?

I'm attempting to use the DVD-RW for a daily back-up of files from within SCO Openserver 6, so if there's a simpler way of doing it or a script could be used I'd appreciate any help!

Thanks in advance!

Further update!
Following the SCO notes from their knowledge base I have a slightly different snag - the bold sections are console feedback! - still hopeful somebody can help me! Cheers!

For the following example it is assumed that you want to create 3 different sessions on a CD.

1. session = /opt/
2. session = /u/
3. session = /var/

Run "cdrecord -scanbus" to determine the device settings of your CD/DVD burner. Exact output:

Cdrecord-ProDVD-Clone 2.01a27 (i386-pc-sco3.2v5.0.7)
Copyright (C) 1995-2004 J����rg Schilling
Using libscg version 'schily-0.8'.
scsibus1:
1,0,0 100) 'TSSTcorp ' 'CD/DVDW SHS182D ' 'SB04'
Removable CD-ROM
1,1,0 101) 'TEAC ' 'CD-540E ' '1.0A'
Removable CD-ROM
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

The CD burner is at 1,0,0.

Now make sure that you have an empty CD. You can blank a
RW-CD by issuing the command "cdrecord dev=1,0,0
-blank=fast"

Now follow these steps:
1. mkisofs -o /session1.iso -l -r -J -T /opt/
This will create the image /session1.iso

2. cdrecord dev=1,0,0 –sao -multi /session1.iso
This will burn the first session on the CD

3. cdrecord -msinfo dev=1,0,0
This will print out 2 numbers (X,Y). These two numbers are
required in step 4

0,0

4. mkisofs -o /session2.iso -l -r -J -C X,Y -M /dev/cd0 /u/
Substitute X and Y with the output of step 3

Rock Ridge signatures found
mkisofs: Error: ‘/rr_moved/html’ and ‘/rr_moved/html’ have the same Rock (missing text) ame ‘html’ .
(The screen scrolls rapidly indicating that there are many files with a similar problem)
mkisofs: Unable to sort directory /rr_moved


5. cdrecord dev=1,0,0 –sao -multi /session2.iso
This will burn the second session on the CD

6. cdrecord -msinfo dev=1,0,0
This will print out 2 numbers (X,Y). These two number are required in step 7

7. mkisofs -o /session3.iso -l -r -J -C X,Y -M /dev/cd0 /var/
Substitute X and Y with the output of step 6

8. cdrecord dev=1,0,0 –sao /session3.iso
This will burn the third session on the CD. Note that this will close the CD because the option "-multi" is missing.


Mount the CD with "mount -r /dev/cd0 /mnt"

NOTES:
At this time multi-session support is only available for
CD and not for DVD.

Last edited by ifleet2007; 08-29-2007 at 02:55 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. UNIX for Advanced & Expert Users

Multi session dvd using cdrecord

I wrote the following script after reading a tutorial, but... #!/usr/bin/ksh DATE=`date +"%y%m%d%H%M"` echo $DATE FILENAME=`echo "obase = 16\n $DATE"|bc` echo $FILENAME ... (1 Reply)
Discussion started by: jgt
1 Replies

3. Shell Programming and Scripting

Sort a the file & refine data column & row format

cat file1.txt field1 "user1": field2:"data-cde" field3:"data-pqr" field4:"data-mno" field1 "user1": field2:"data-dcb" field3:"data-mxz" field4:"data-zul" field1 "user2": field2:"data-cqz" field3:"data-xoq" field4:"data-pos" Now i need to have the date like below. i have just... (7 Replies)
Discussion started by: ckaramsetty
7 Replies

4. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

5. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

6. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

7. Shell Programming and Scripting

Find & Replace string in multiple files & folders using perl

find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g' this is simple logic to find and replace in multiple files & folders Hope this helps. Thanks Zaheer (0 Replies)
Discussion started by: Zaheer.mic
0 Replies

8. UNIX for Dummies Questions & Answers

Problem with xterm & tcsh & sourcing a script in a single command

Hi friends, I have a script that sets the env variable path based on different conditions. Now the new path variable setting should not done in the same terminal or same shell. Only a new terminal or new shell should have the new path env variable set. I am able to do this only as follows: >cd... (1 Reply)
Discussion started by: sowmya005
1 Replies

9. UNIX for Dummies Questions & Answers

Search for & edit rows & columns in data file and pipe

Dear unix gurus, I have a data file with header information about a subject and also 3 columns of n rows of data on various items he owns. The data file looks something like this: adam peter blah blah blah blah blah blah car 01 30 200 02 31 400 03 57 121 .. .. .. .. .. .. n y... (8 Replies)
Discussion started by: tintin72
8 Replies

10. 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
Login or Register to Ask a Question