From owner-freebsd-questions@FreeBSD.ORG Fri Jan 23 01:38:30 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 4C8B01065686 for ; Fri, 23 Jan 2009 01:38:30 +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 384DC8FC14 for ; Fri, 23 Jan 2009 01:38:29 +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 CC8743682D; Fri, 23 Jan 2009 02:38:26 +0100 (CET) Date: Fri, 23 Jan 2009 02:40:01 +0100 From: cpghost To: Gary Kline Message-ID: <20090123014001.GA2536@phenom.cordula.ws> References: <20090123011043.GA86638@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090123011043.GA86638@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 01:38:31 -0000 On Thu, Jan 22, 2009 at 05:10:46PM -0800, Gary Kline wrote: > Guys, I've got several directories off ~kline/ that I want to > store permanently. Like all my development code in ~/devel, and > all my music mp3's and ogg's in ~/Music, and all my online and > mp3 books from libribox.org in ~/readings. There are PDF files > and HTML and a slew of other stuff. > > Can I use K3B or some other GUI program to create a filesystem on > either a few CD's or one DVD? Right now, I'm cross-backing up > stuff to four live servers. It's just data, but I would like to > be able to inset it into my optical tray, cd to it and cd to > wherever and read or listen to AND (if some disaster strikes) be > able to copy my files from the disc to the computer. > > I think I figured out how to create a tiny filesystem on a floppy > disc, but this was a Long time ago. Anything "push-button"? Perhaps there is something like that, but I do it manually like this: * mkdir cdr/ * copy approx 3.0 to 3.1 GB worth of files into cdr/ * mkisofs -R -J -o cdr.iso cdr/ Then use dvdisaster (/usr/ports/sysutils/dvdisaster) to augment cdr.iso with RS02 error correction data. This creates a bigger cdr.iso of 4.4GB ISO with approx 32% to 40% redundancy, which is quite good. Now, burn it to DVD: * growisofs -dvd-compat -speed=8 /dev/cd0=cdr.iso and make sure your system is as (disk-)idle as possible while burning. To use growisofs, install it from /usr/ports/sysutils/dvd+rw-tools. You may need to # kldload atapicam so that you can get /dev/cd0. Don't forget that you need write permission to /dev/cd0 and /dev/pass0, so either run growisofs as root, or add this to /etc/devfs.rules: perm cd0 0666 perm pass0 0666 and restart devfs (/etc/rc.d/devfs restart). After having burned the DVD, eject it, and insert it again. Then read it back in with dvdisaster (to some OTHER directory!), and verify the integrity of the backup (with dvdisaster). That's an important step, as you can never be sure that the burning was flawless, unless you were able to read it back in without faulty sectors. If you plan to archive the DVDs, be sure to schedule some date in a couple of years ahead to read them back in and verify their condition. If some of those DVDs developed bad sectors, you could then try to reconstruct those with dvdisaster (but only if you created the error correction data before burning!), and burn a new DVD. Oh, and try to stick to good DVD blanks like Taiyo Yuden or Verbatim (only those made in Taiwan or Japan) to minimize the risk of bad sectors (i.e. especially avoid no-names or el-cheapo blanks). You can also do without dvdisaster, and write more than 3 GB to the DVDs, but if you plan to archive them and be able to read them a few years ahead, you'll highly value the error correction codes overhead. ;) Oh, and you'll still have to read the data back after burning, just to be sure everything's okay. Some kind of checksums (md5, sha256) of the directories would be useful, so plan ahead and add them before creating the ISO. Note that all this is possibly already integrated in K3B or some other fancy GUI front-ends, or it may not: I'm not familiar with the GUI tools. > tia, > > gary Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/