How do I burn a multisession CD? (No HD, ramdisk only.)

Booting, installing, newbie
Post Reply
Message
Author
user-786

How do I burn a multisession CD? (No HD, ramdisk only.)

#1 Post by user-786 »

Lets say I have a folder /root/my-documents/new-folder and I have some files in it that I would like to burn to a CD

Since I run from ramdisk (about 512mb) and have no hard drive, I can burn about 300mb of files at a time.

Now the question

Q: How can I make an Iso from these files ?
Q: How can I use cdrecord to burn this as first session so that I can serially fill 700 mb of disk to use later ?
Q: What command to use when I would burn second or third session on the same CD ?

Thanks in advance.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

1)
mkisofs -J -R /root/my-documents/new-folder/ -o /tmp/cdimg.iso

2)
cdrecord dev=ATAPI:/dev/hdc -multi /tmp/cdimg.iso

3)
cdrecord dev=ATAPI:/dev/hdc -msinfo

results of -msinfo
101814,199279

mkisofs -J -R -C 101814,199279 -M ATAPI:/dev/hdc -o /tmp/cdimg.iso root/my-documents/new-folder/

cdrecord dev=ATAPI:/dev/hdc -multi /tmp/cdimg.iso

this assumes your cd drive is /dev/hdc (it may not be ... use cdrecord dev=ATAPI -scanbus ... if /dev/hdc is a hard drive, cdrecord probably will corrupt the drive if you use dec=ATAPI:/dev/hdc

you can burn files directly to a cd by piping mkisofs to cdrecord ... for example, you can burn 700 megs of files without needing the space for a 700 meg iso

http://www.physics.iitm.ac.in/~sanoop/l ... dburn.html
http://www.yolinux.com/TUTORIALS/LinuxT ... DBurn.html

user-786

#3 Post by user-786 »

Thanks, but ...

Tried this mkisofs -J -R /root/my-documents/new-folder/ -o /tmp/cdimg.iso

Got this mkisofs: No such file or directory. Invalid node - -o

any ideas ?

I also tried

cd /root/bin
and then the command, again with same response

I typed
which mkisofs
returned
/root/bin/mkisofs

?????

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

# mkisofs --help
Usage: mkisofs [options] file...

The filename must be the last parameter.

Mark
Last edited by MU on Sun 06 Nov 2005, 23:16, edited 1 time in total.

Guest

#5 Post by Guest »

Generally G2 speaks gospel and I think he posted perfectly.

-------------------

I use some fairly elaborate cli scripts, the first is dir2iso The name is intended to be intuitive enough for me to recongize what the script is for.

#!/bin/sh
mkisofs -r -R -J -l -o "$@"


I present this second piece as iso2cd I run risk of getting lectured for burning so fast, but sometimes you gotta have courage. :)

#!/bin/sh
cdrecord -v speed=12 dev=0,0,0 "$@"

user-786

#6 Post by user-786 »

Thaks Mark and GuestToo. (I can't believe how quick this forum is, WOW!)

i got it working by following command I found at one of the link pages G2 provided

mkisofs -o file.iso -J -r -v -l Directory/

Apparently, directory name needed to come at the end instead of file name. It worked perfectly. Now I am going to see if I am able to burn MS CD with your help and let you know.

Post Reply