From owner-freebsd-questions@FreeBSD.ORG Thu Oct 6 12:08:37 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5CF2A16A41F for ; Thu, 6 Oct 2005 12:08:37 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id C762C43D45 for ; Thu, 6 Oct 2005 12:08:36 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id 0036F2E03D; Thu, 6 Oct 2005 14:08:36 +0200 (CEST) Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00531-08; Thu, 6 Oct 2005 14:08:35 +0200 (CEST) Received: from [10.0.0.17] (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id E80B52E03C; Thu, 6 Oct 2005 14:08:35 +0200 (CEST) Message-ID: <434513BB.5080403@datacomm.ch> Date: Thu, 06 Oct 2005 14:08:27 +0200 From: Benjamin Lutz User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Olaf Greve References: <4a40ab2e0a11940a5340a.20051005200648.wzyrjvf@www.dslextreme.com> <57416b300510052221h6eb2cf0bma7b74d37da89287b@mail.gmail.com> <43451088.503@axis.nl> In-Reply-To: <43451088.503@axis.nl> X-Enigmail-Version: 0.92.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFB55E78A8E10143587A90EB8" X-Virus-Scanned: amavisd-new at atlantis.intranet Cc: freebsd-questions@freebsd.org Subject: Re: How to properly mount a DVD-R/W drive and how to use it from the command line? 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: Thu, 06 Oct 2005 12:08:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFB55E78A8E10143587A90EB8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Olaf Greve wrote: > [...] > Now, this is where the issue lies. When putting a CD-ROM in the drive, > and trying to access it through the /cdrom mountpoint I get an empty > directory listing (not correct) and when manually trying to do the > following: > mount /dev/acd0 /cdrom > I get the error (on all CD-ROMs): > mount: /dev/acd0 on /cdrom: incorrect super block > > Now, the entry in /etc/fstab for this device is set to: > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > Which is fine for a CD-ROM drive. To mount both CDs and DVDs use either: mount_cd9660 /dev/acd0 /cdrom (The system must know what kind of filesystem you want to mount. It does not figure it out on its own like Linux does.) If you have an /etc/fstab entry for the file system you wish to mount (which you do, in this case), alternatively you can use the short version: mount /cdrom This fetches the necessary information from /etc/fstab. > However: what should the proper settings be for a DVD-RW drive? Surely > at least the 'ro' flag is incorrect, but is that all? No, that is correct. I don't think FreeBSD supports packet writing. In other words: If you wish to (re)write a DVD, you need to use a proper burning program (eg the somewhat misnamed growisofs), you can't just copy files to it by mounting it. > Also: are there other locations where I should tell FBSD (and if so: > how) about the presence of the new drive? FreeBSD will automatically detect any drives. Under FreeBSD 4.x, and with exotic configurations, it was sometimes necessary to manually create devices nodes. > Finally: I do not intent to run X on the machine, as it'll be a > webserver only (well, incl. DB stuff etc.), and the drive is intended > for being used to make remote back-ups on DVD-RW (yes: someone will > physically swap the DVDs when necessary ;) ). What I'd like to know is > what the easiest/best ways are to do so from the command-line. Does > anyone have some scripts for this? Or perhaps some pointers to a good > (preferrably free) program or tutorial? Use some program to produce an iso image of the files you want to burn (check the cdrtools port), then use growisofs to burn that iso. Cheers Benjamin PS: Please don't cross-post to several lists at once. --------------enigFB55E78A8E10143587A90EB8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDRRPAgShs4qbRdeQRAknIAJ9lfy4ChKtt3lTY5IUvFaJSAazD0wCeNaNn DGOpGBNzgdHjRbV4KVMLm6I= =MJDa -----END PGP SIGNATURE----- --------------enigFB55E78A8E10143587A90EB8--