From owner-freebsd-questions@FreeBSD.ORG Fri Jan 23 15:13:40 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16030106567C for ; Fri, 23 Jan 2009 15:13:40 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7E5BD8FC12 for ; Fri, 23 Jan 2009 15:13:39 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id BC17F3682D; Fri, 23 Jan 2009 16:13:37 +0100 (CET) Date: Fri, 23 Jan 2009 16:16:35 +0100 From: cpghost To: Gary Kline Message-ID: <20090123151635.GB1013@phenom.cordula.ws> References: <20090123011043.GA86638@thought.org> <20090123024811.9bdf4b3f.freebsd@edvax.de> <20090123073750.GB96433@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090123073750.GB96433@thought.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Mailing List Subject: Re: how to create a DVD backup filesystem? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2009 15:13:40 -0000 On Thu, Jan 22, 2009 at 11:37:51PM -0800, Gary Kline wrote: > On Fri, Jan 23, 2009 at 02:48:11AM +0100, Polytropon wrote: > > Create an ISO-9660 file system with a standard RockRidge extension. > > This would allow you to master a file system for the CD or DVD which > > is usually represented by a .iso file. > > > So if I use my space in /usr/tmp, would I use the cmd given by > cpghost: > > % mkisoft -R -J -o cdr.iso /usr/tmp/cdr/ ? If this wouldn't > % create the RockRidge extension, what then? The -R (or -r) flag creates the rockridge extensions, and -J creates the Joliet extensions (for Windows). This way, you get a hybrid DVD/CD image that is mountable on both Unix and Windows. It can be useful, since you never know which OS you'll be using when you need to read the DVD/CD back. > > For a DVD, you need growisofs. > > > > % growisofs -dvd-compat -Z /dev/dvd=/tmp/kline.iso Yes, but keep in mind that /dev/dvd points to /dev/acd0 and not to /dev/cd0: $ ls -l /dev/dvd lrwxr-xr-x 1 root wheel 4 Jan 23 15:35 /dev/dvd -> acd0 IIRC, growisofs needs atapicam, i.e. /dev/cd0, but I may be mistaken. > > As a sidenote, I just like to mention that you don't need to use an > > ISO-9660 filesystem. Because we're on FreeBSD here, you can use any (!) > > file system on a CD or DVD, such as UFS or tar (check advantages and > > disadvantages). > > OK, then what about the mount, umount commands? > > % mount /dev/cd0 /mnt > > // cd to /dev/dv0, read, listen, whatever. Then:: > > % umount /dev/cd0 > > ?? Would this work with our FBSD filesystem and-or RockRidge? > > gary If you use tar to write to CD/DVD, you can't mount that directly (unless it's supported as a special fusefs filesystem). If you write a UFS filesystem to CD/DVD, you can mount it from FreeBSD (and probably other BSDs like NetBSD, OpenBSD, ...), but not from, say, Windows. So yes, it will work on FreeBSD. If you write an ISO-9660 filesystem on the CD/DVD, you can mount it from FreeBSD/Linux/Unix/... and Windows. It will work. As archive, I'd recommend a filesystem that can be mounted by as many platforms as possible, and that is currently ISO-9660 with RockRidge and Joliet. You just need to be aware of the fact, that you could also put other filesystem types or even raw tar archives on the CD/DVD if you prefer. -cpghost. -- Cordula's Web. http://www.cordula.ws/