From owner-freebsd-questions@FreeBSD.ORG Thu Dec 7 00:38:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 12DC916A416 for ; Thu, 7 Dec 2006 00:38:41 +0000 (UTC) (envelope-from frans-jan@van-steenbeek.net) Received: from mailrelay01.solcon.nl (mailrelay01.solcon.nl [212.45.32.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 763A443CA5 for ; Thu, 7 Dec 2006 00:37:51 +0000 (GMT) (envelope-from frans-jan@van-steenbeek.net) Received: from [87.195.2.41] (helo=[10.0.0.5]) by mailrelay01.solcon.nl with esmtp (Exim 4.60) (envelope-from ) id 1Gs7HU-0005oP-Ae for freebsd-questions@freebsd.org; Thu, 07 Dec 2006 01:38:32 +0100 From: "Frans-Jan v. Steenbeek" To: freebsd-questions@freebsd.org Date: Thu, 7 Dec 2006 01:38:37 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612070138.37380.frans-jan@van-steenbeek.net> Subject: mount/umount UFS2 on DVD+RW 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, 07 Dec 2006 00:38:41 -0000 Hi folks! I have a small problem that bugged me the last days: I made a UFS2 filesystem on a DVD+RW (which can act like a RAM-disk). After some troubles it worked. I used the following commands to achieve this: # dvd+rw-format /dev/cd0 # bsdlabel -w acd0 # newfs -n /dev/acd0 # mount -o noatime /dev/acd0 /mnt/ufs I gathered that atapicam can get nasty with UFS2 on DVDs, so that is why I resorted to use /dev/acd0. The symptoms where the same, but it proved handy with regards to /etc/fstab and fsck. Problem one: between each step I have to reload the DVD (eject and close the drive). Otherwise it gives IO errors. 'camcontrol eject cd0' refuses (Error received from stop unit command), 'cdcontrol eject' does nothing (no errors). It has to be done by hand. Second problem: when I unmount the disk and mount it again later, it refuses to do so since the filesystem isn't marked clean. So to mount it I have to go through: # fsck /dev/acd0 #mount -o noatime /dev/acd0 /mnt/ufs Again, I need to reload it between these steps. The reloading bugs me a bit, but that might be the devices firmware, or maybe atapicam having a hold on the drive (it keeps in spinning state for a few minutes after activity, while it relatively spins down soon after mount). What really bugs me is that the umount seems not to mark it as clean. Why is that? I noted that the lights on the drive don't come on when umount is busy, allthough the drive does spin up. What I also would like to ask, is there a way to further minimize the amounts of writes on the disk? I gathered that turning on softupdates can trigger panics, which might also have something to do with atapicam. Any other techniques? Short summary of oddities / questions: 1. Drive-reloading between actions: device not freed? 2. FS not marked clean on umount. 3. How to reduce writes? Thanks in advance. I'm not subscribed, so please CC me. -- Frans-Jan v. Steenbeek frans-jan@van-steenbeek.net