From owner-freebsd-questions Mon Jan 15 23:36:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id F29E037B400 for ; Mon, 15 Jan 2001 23:36:04 -0800 (PST) Received: (qmail 56850 invoked by uid 100); 16 Jan 2001 07:35:59 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14947.63967.11589.350117@guru.mired.org> Date: Tue, 16 Jan 2001 01:35:59 -0600 (CST) To: "David Schultz" Cc: questions@freebsd.org Subject: Re: Fun with slices and partitions In-Reply-To: <48262057@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Schultz types: > Hi everyone, > > I just did a bit of rearranging of my partitions to get my FreeBSD slice > from one end of a drive to another. I did this by creating another slice on > the other end of the drive, partitioning it, and slowly migrating all of the > original /usr, /, and /var slices to the new drive with dumpfs piped to > restore. My /etc/fstab has been updated accordingly, but I have a bit of a > problem. > > When I boot, boot2 can't find the root partition and dumps me at an > unhelpful prompt that isn't documented very well in the manual. My root > partition is currently ad1s1e, whereas it used to be ad1s3a. However, ad1s3 > does not exist anymore. Of course I can boot by typing 'ad(1,e)' at the > boot2 prompt, but it is necessary for this machine to be able to boot > without user intervention. Does anyone know how I can get boot2 to find > ad1s1e automatically or fix the disk labels so boot2 can find it where it > is? > > So far, I've tried using disklabel to relabel partition e to a. Of course > this fails because root is always mounted. Hmm... boot floppy? Please let me > know if you have any suggestions, and thanks in advance. If tere's a way to boot an e partition, I haven't found it (and I tried). Changing the ad1s1 labels is the solution. I managed this without a boot floppy, but I was on a system with two bootable FreeBSD systems. You might try doing this in single user mode with the root file system mounted r/o before going to a boot floppy. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message