From owner-freebsd-questions Fri Oct 4 14: 5:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB3A137B401 for ; Fri, 4 Oct 2002 14:05:20 -0700 (PDT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id A86A843E77 for ; Fri, 4 Oct 2002 14:05:18 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP id MUA74016; Fri, 04 Oct 2002 14:05:17 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 3548F5D04; Fri, 4 Oct 2002 14:05:17 -0700 (PDT) To: Marco Beishuizen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: burncd error In-reply-to: Your message of "Fri, 04 Oct 2002 22:49:45 +0200." Date: Fri, 04 Oct 2002 14:05:17 -0700 From: "Kevin Oberman" Message-Id: <20021004210517.3548F5D04@ptavv.es.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Fri, 4 Oct 2002 22:49:45 +0200 (CEST) > From: Marco Beishuizen > Sender: owner-freebsd-questions@FreeBSD.ORG > > On Fri, 4 Oct 2002, the wise Oliver Fromme spoke, and said: > > > Marco Beishuizen wrote: > > > That did the trick. I wrote a file to the cd and fixate worked correctly. > > > At least I think it did, because when I want to mount the cd to look at > > > it, mount gives me an "invalid argument" error. > > > > > > So my new problem is how to access a cd-rw with data on it. > > > > What kind of file did you write to the CD? Of course, it > > has to be an image of a supported filesystem (usually an > > ISO9660 image), otherwise you wouldn't be able to mount it. > > You can only mount filesystems. > > > > To create an ISO9660 filesystem image, use mkisofs (from > > the ports collection). Afterwards, use burncd to write > > that image to a CD-R or CD-RW. > > > > You can, of course, write an arbitrary file (a .tar file or > > whatever) to a CD, but then you can't mount it. You can > > read it back with dd, though. > > > > Regards > > Oliver > > Yes, I wrote an arbitrary file to the cd. A .pdf file actually. I already > thought the mount error had something to do with a missing filesystem or > something like that. > > I want to use the cd-writer to make periodic backups of important files. > The easiest thing to do would be to just "copy" the files with burncd, > like I did with the .pdf file. But it looks that I have to do a bit more > than that to use the cd-writer as a backup medium. > > I think I have to learn more about mkisofs and creating images etc. :-) Under V5 we should have UDF support. If that gets finished, you will have exactly this ability. Last I heard ti could only read but most of the write code had been completed. Until then, only ISO 9660 is supported on CDs. I suggest that you write this with the Rockridge extensions to allow "normal" file names. The command I use for this is: mkisofs -allow-lower-case -allow-multidot -d -L -r -o ~/newcd.iso path burncd -f /dev/acd0c blank burncd -f -s 4 /dev/acd0c data ~/newcd.iso fixate This should do the trick. I suspect that I may have a couple of redundant options in the mkisofs line as -r might imply one or more of the others. Please read the man page for mkisofs as -L may not be appropriate. The resulting CD should mount and look "just like" the original files on the UFS disk. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message