From owner-freebsd-questions@FreeBSD.ORG Tue May 13 15:31:21 2003 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 587F937B401 for ; Tue, 13 May 2003 15:31:21 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 6789D43F85 for ; Tue, 13 May 2003 15:31:20 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 20818 invoked by uid 1001); 13 May 2003 22:32:10 -0000 Date: Tue, 13 May 2003 15:32:10 -0700 From: Joshua Oreman To: James Taylor Message-ID: <20030513223210.GA20773@webserver.get-linux.org> References: <20030513073427.88993.qmail@web14611.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030513073427.88993.qmail@web14611.mail.yahoo.com> User-Agent: Mutt/1.4i cc: questions@freebsd.org Subject: Re: Can't modify partitions 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: Tue, 13 May 2003 22:31:21 -0000 On Tue, May 13, 2003 at 12:34:27AM -0700 or thereabouts, James Taylor seemed to write: > I have a disk /dev/da0 currently partitioned as one 36 > gig partition, with no point point specified. I'm not > sure how the mount point got through like that, but it > seems that because of it I'm unable to make any > changes to the disk. I go into sysinstall(can't run > disklabel - it's a sparc64 machine)->Custom->Label and > delete the partition (/dev/da0d). I then go to write > the information and come up with "ERROR: Unable to > write data to disk da0!". No matter what I do I keep > getting this error when trying to make any change to > the disk. > > I've tried doing something like "dd if=/dev/zero > of=/dev/da0d count=1000000" trying to just wipe out > the MBR and maybe get a little bit more for good > measure, but that didn't seem to work. Doing any dd > operations on just /dev/da0 come back with Operation > not permitted (I'm assuming this is intended > behaviour?) > > How do I clear the partition information on this > drive? It's been driving me nuts for the past week or > so. I'll assume two things. 1) You're running 5.x. 2) The drive is in use (somehow). FS mounted? Try `sysctl -b kern.geom.confxml` If this is the case, then GEOM has managed to keep you from shooting yourself in the foot :-) You may want to boot off a fixit disk so you're sure nothing's using the disk. HTH, -- Josh > > Thanks > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"