From owner-freebsd-questions@FreeBSD.ORG Thu Oct 25 00:39:26 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9424916A418 for ; Thu, 25 Oct 2007 00:39:26 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (muon.bluestop.org [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2789F13C4D3 for ; Thu, 25 Oct 2007 00:39:25 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.draftnet (unknown [IPv6:2a01:348:10f:1::5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id 2377930180; Thu, 25 Oct 2007 01:39:24 +0100 (BST) Message-ID: <471FE5B8.8080806@cran.org.uk> Date: Thu, 25 Oct 2007 01:39:20 +0100 From: Bruce Cran User-Agent: Thunderbird 2.0.0.6 (X11/20070809) MIME-Version: 1.0 To: RW References: <20071025005103.29d5040c@gumby.homeunix.com.> In-Reply-To: <20071025005103.29d5040c@gumby.homeunix.com.> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Can't overwrite a particular swap partition 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, 25 Oct 2007 00:39:26 -0000 RW wrote: > I have two swap partitions, ad4s1b is part of my main slice, and ad6s1b > is on a second drive. The permissions are the same, but I can't > overwrite the second one. The same thing happens whether I use swapoff > or reboot into single user mode. > > What's the difference? > > # dd if=/dev/random of=/dev/ad4s1b bs=1m > dd: /dev/ad4s1b: end of device > 4097+0 records in > 4096+0 records out > 4294967296 bytes transferred in 245.745739 secs (17477281 bytes/sec) > > # dd if=/dev/random of=/dev/ad6s1b bs=1m > dd: /dev/ad6s1b: Operation not permitted > 1+0 records in > 0+0 records out > 0 bytes transferred in 0.053829 secs (0 bytes/sec) > > # ls -l /dev/ad*1b > crw-r----- 1 root operator 0, 125 Oct 25 00:25 /dev/ad4s1b > crw-r----- 1 root operator 0, 132 Oct 24 20:23 /dev/ad6s1b > This looks like a geom permission problem, though it sounds like it should't be occurring. Does setting kern.geom.debugflags=16 solve this? -- Bruce