You are not logged in.

#1 2009-02-21 03:25:49

jbusch
Member
Registered: 2009-01-27
Posts: 20

[Solved] Working with blank CD's

Ok, so I have some data that I would like to write to a blank CD.  In short: how can I use a shell to accomplish this?

I've had no problems accessing dvd's or other media with file systems using the 'mount' command.  But, my (un)elite googling skills has led me to the fact that blank CDs have no file system, thus mount will not work on them.  Please forgive my newbishness, but how do I work with this kind of media if I can't mount it?

(Yes, I know I probably could just use hal/fancy desktop applications, but I'd like to know if there's a way to do it from a good old terminal).

Thanks!

Edit: Problem solved cool

Last edited by jbusch (2009-02-21 15:24:01)

Offline

#2 2009-02-21 03:54:36

TBomB
Member
From: NH, USA
Registered: 2009-02-12
Posts: 28

Re: [Solved] Working with blank CD's

install cdrkit

pacman -S cdrkit
mkdir /tmp/burn
cp image.iso /tmp/burn
mkisofs -RJ -o /tmp/image.iso /tmp/burn
cdrecord -v -pad speed=1 dev=0,0,0 /tmp/image.iso

replace dev= with whatever cdrecord -scanbus says

Last edited by TBomB (2009-02-21 04:07:37)

Offline

#3 2009-02-21 04:49:23

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Working with blank CD's

/tmp is _not_ a safe place to put 600+ megs.
some installation uses memory for /tmp (early arch did if I remember correctly), others have /tmp on a seperate partition.
Instead, just use:

cdrecord {options} /path/to/where/I /find/image.iso

In addition - something that allready is an .iso doesn't need any more tampering!
To make an iso out of what's in some directory:

mkisofs -o /not/tmp/image.iso -v -J -r -T /where/my/data/is/*

Last edited by perbh (2009-02-21 04:53:09)

Offline

#4 2009-02-21 15:23:11

jbusch
Member
Registered: 2009-01-27
Posts: 20

Re: [Solved] Working with blank CD's

Beautiful, it worked perfectly.  Thank you very much!

Offline

#5 2009-02-21 19:04:07

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,545

Re: [Solved] Working with blank CD's

Putting stuff in /tmp is fine - mkisofs itself uses /tmp to store its temporary files! cdrkit I think uses /tmp too, but I'm not positive.

Online

Board footer

Powered by FluxBB