Re: cdrecord newbie mystified at step zero



Charles Packer <mailbox@xxxxxxxxxxx> writes:

On Aug 13, 2:31 am, Matt Giwer <jul...@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
You don't mount blank media. cdrecord sends data to the drive telling it to
burn a file system on it.

Ah! Based on this remark, also as made
by Scott Hemphill in his followup,
I realized that, okay, you just start
writing to a blank CD. Same goes for
getting the track numbers from a partially
filled CD -- you just execute cdrecord
with -msinfo. (But first, I had to get my
device designation, ATA:1,1,0, correct.)

What had confused me was the structure
of the tutorial I cited, which states,
ahead of where it gets down to the business
of recording, that "Data CD's must be
mounted before one may access them."
In the context, such a "Note" apparently
is gratuitous and irrelevant.

So, just now, I was able to write a test
directory to a blank CD after making it
into a .iso. As you say, though, it
"disappears" the directory and writes
the contents file by file. It would be
nice to retain directories -- the way I
can with Nero under Windows XP --
but maybe that's asking too much of
a Linux command-line utility. For the
time being, though, it will work as a
backup for digital images, which is
my immediate need.

"mkisofs" does retain the directory structure. The contents of the
directory you specify to it are used as the contents of the top level
directory in the file system. If there are directories within that
directory, they will show up as directories in the file system.

If you look at the man page for mkisofs, you will realize that its
capabilities are considerable. Furthermore, you can mount the file
system under Linux to see what it looks like without ever burning a
CD-ROM:

$ mkisofs ... > /tmp/test.iso
$ su -
# mkdir /tmp/mnt
# mount -t iso9660 -o loop /tmp/test.iso /tmp/mnt

Now you can peruse the file system, which has been mounted at
/tmp/mnt. When you're done, you can unmount the file system:

# umount /tmp/mnt
# rmdir /tmp/mnt

Scott
--
Scott Hemphill hemphill@xxxxxxxxxxxxxxxxxx
"This isn't flying. This is falling, with style." -- Buzz Lightyear
.



Relevant Pages

  • Re: require_once() driving me MAD ! - please HELP
    ... Each folder contains one or more files. ... I cannot, for the life of me, work out wtf is wrong iwth the script, and why I can't seem to use my directory structure. ... Did you mean to say that my include directive SHOULD be an absolute path to the file system ?. ...
    (comp.lang.php)
  • Re: Directory Size problem
    ... I've shutdown all potential ... sevices that could possibly be using teh directory e.g sendmail, ... If we could, we would put this directory structure on a separate file system since it was faster to unmount it, format it and remount it than it was to rm -rf the directory structure. ...
    (Fedora)
  • Re: Directory Size problem
    ... I've shutdown all potential ... sevices that could possibly be using teh directory e.g sendmail, ... put this directory structure on a separate file system since it was ...
    (Fedora)
  • Re: Best way to store a large number of files?
    ... Meta data desribing the images will be stored in a database but ... on the file system with a reference stored in the database. ... of giving each image a 10-digit number and placing the image in a directory structure such as this ~ ...
    (comp.lang.java.programmer)
  • Best way to store a large number of files?
    ... Meta data desribing the images will be stored in a database but ... on the file system with a reference stored in the database. ... in a directory structure such as this ~ ...
    (comp.lang.java.programmer)