From owner-freebsd-questions Wed Mar 5 0:14:18 2003 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 6030937B406 for ; Wed, 5 Mar 2003 00:14:16 -0800 (PST) Received: from hobbiton.shire.net (hobbiton.shire.net [206.71.64.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9409743F93 for ; Wed, 5 Mar 2003 00:14:15 -0800 (PST) (envelope-from chad@shire.net) Received: from [204.228.149.206] (helo=shire.net) by hobbiton.shire.net with asmtp (Exim 4.10) id 18qKhr-0002KC-00; Tue, 04 Mar 2003 15:16:16 -0700 Date: Tue, 4 Mar 2003 15:15:43 -0700 Mime-Version: 1.0 (Apple Message framework v551) Cc: freebsd-questions@freebsd.org To: Mike Meyer From: Chad Leigh -- Shire.Net LLC In-Reply-To: <15973.8372.371147.943043@guru.mired.org> Message-Id: X-Mailer: Apple Mail (2.551) Subject: Re: partition is "e" should be "a" -- how to fix? Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-3.5 required=6.5 tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK version=2.31 X-Spam-Level: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday, Mar 4, 2003, at 14:55 US/Mountain, Mike Meyer wrote: >> However, I am wanting some second opinions on this, >> and since I am not a disklabel guru, some guidance on how to use >> disklabel >> without screwing up my system would be appreciated. > > Basically, run "disklabel -e /dev/da0s1". That will create a temporary > file with the disklabel in it, and open an editor on that file. Delete > the line - if it exists - for a, copy the e line to where it was, and > then change the initial e to an a. Then save the file and exit the > editor. Fix your fstab to refer to da0s1a instead of da0s1e, and > reboot. > Okay, should I be able to have an "a" and an "e" that overlap? Disklabel doesn't seem to want to let me do this. before: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 803187 0 unused 0 0 # (Cyl. 0 - 49*) e: 803187 0 4.2BSD 0 0 0 # (Cyl. 0 - 49*) after: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 803187 0 4.2BSD 0 0 0 # (Cyl. 0 - 49*) c: 803187 0 unused 0 0 # (Cyl. 0 - 49*) e: 803187 0 4.2BSD 0 0 0 # (Cyl. 0 - 49*) I get a "partitions 'a' and 'e' overlap -- reedit?" or something very similar to this. If I say no, it quits out but then reading the disklabel back in shows no "a". if I try and replace "e" with "a" so that there is only one I get an error "disklabel: ioctl DIOCWDINFO: open partition would move or shrink" and it won't let me do that either, even in '-r' mode which should only affect the on disk label and not the memory label(??) . So I am still not getting this to work. (4.7 machine) thanks Chad To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message