From owner-freebsd-questions@FreeBSD.ORG Sat Apr 10 18:44:56 2004 Return-Path: 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 2393616A4CE for ; Sat, 10 Apr 2004 18:44:56 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F23543D53 for ; Sat, 10 Apr 2004 18:44:55 -0700 (PDT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BCU1m-0005op-00 for ; Sun, 11 Apr 2004 03:44:54 +0200 Received: from 86.red-213-97-212.pooles.rima-tde.net ([213.97.212.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Apr 2004 03:44:54 +0200 Received: from lists-gmane by 86.red-213-97-212.pooles.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Apr 2004 03:44:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Joan Picanyol i Puig Date: Sun, 11 Apr 2004 05:44:32 +0200 Lines: 38 Message-ID: References: <50127.192.168.0.105.1081599736.squirrel@webmail.thilelli.net> <50911.192.168.0.105.1081633514.squirrel@webmail.thilelli.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 86.red-213-97-212.pooles.rima-tde.net Sender: news Subject: Re: Can't *write* to a hard disk, not even a slice using fdisk(8). X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2004 01:44:56 -0000 On Sun, 11 Apr 2004 00:45:14 +0200, Julien Gabel wrote: >> GEOM doesn't let you touch the disk if some partition is mounted off it. >> Try setting kern.geom.debugflags to 1 I suck. This should have said: GEOM doesn't let you write to an active device, except if you set kern.geom.debugflags=16 > I changed the sysctl's flag : > # sysctl kern.geom.debugflags=1 > kern.geom.debugflags: 0 -> 1 so this should be 16 not 1 > # mount > /dev/ar0s1a on / (ufs, local) > devfs on /dev (devfs, local) > /dev/ad8s1d on /home (ufs, local, nodev, noexec, nosuid, with quotas, > soft-updates) > /dev/ar0s1e on /tmp (ufs, local, nodev, nosuid, soft-updates) > /dev/ar0s1f on /usr (ufs, local, soft-updates) > /dev/ar0s1d on /var (ufs, local, noexec, soft-updates) If ad8 is part of ar0 GEOM will try to keep you from shooting yourself on the foot. You should take ad8 out of the array first. > Because the problematic disk is not actually used, I can try some commands > on it if someone think it may be interesting. On the hardware side, you should look for some diagnostic tool from the manufacturer. qvb -- pica