From owner-freebsd-stable Sat Sep 2 6:26:13 2000 Delivered-To: freebsd-stable@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 4445137B43C for ; Sat, 2 Sep 2000 06:26:11 -0700 (PDT) Received: by static.unixfreak.org (Postfix, from userid 1000) id E432D1F17; Sat, 2 Sep 2000 06:26:10 -0700 (PDT) Subject: Re: 4.1-STABLE BOOT SLICE PROBLEM In-Reply-To: from "JDBitters@cs.com" at "Sep 2, 2000 09:02:04 am" To: JDBitters@cs.com Date: Sat, 2 Sep 2000 06:26:10 -0700 (PDT) Cc: freebsd-stable@freebsd.org From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20000902132610.E432D1F17@static.unixfreak.org> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Recently, I copied a 4.1-20000813-STABLE installation to a larger disk. > > I used /stand/sysinstall to create a "dangerously dedicated" disk and to > custom label it. Thereafter, I mounted the new slices on temporary > mount points on the old disk and copied the folders and files using > Midnight Commander. It all works like a charm with one exception. > > My problem is that the root "/" partition installed on the "s1e" rather > than the "s1a" slice The s1a slice does not exist on this disk. I had a similar situation only a few days ago. I don't know if this is correct, or should even work, but it did for me. Just change the label from "e" to "a" using `disklabel -e ad?` (it will put you into an editor, see `man disklabel` for more details). For example, say this is your current layout (use `disklabel ad?` to get this output): [begin output] 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 196608 65536 swap # (Cyl. 4*- 16*) c: 8421840 0 unused 0 0 # (Cyl. 0 - 524*) e: 65536 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 4*) f: 1048576 262144 4.2BSD 1024 8192 16 # (Cyl. 16*- 81*) g: 65536 1310720 4.2BSD 1024 8192 16 # (Cyl. 81*- 85*) h: 7045584 1376256 4.2BSD 1024 8192 16 # (Cyl. 85*- 524*) [end output] Change the line which starts with "e" to "a" using `disklabel -e ad?`, so it'll look like: [begin output] 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 196608 65536 swap # (Cyl. 4*- 16*) c: 8421840 0 unused 0 0 # (Cyl. 0 - 524*) a: 65536 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 4*) f: 1048576 262144 4.2BSD 1024 8192 16 # (Cyl. 16*- 81*) g: 65536 1310720 4.2BSD 1024 8192 16 # (Cyl. 81*- 85*) h: 7045584 1376256 4.2BSD 1024 8192 16 # (Cyl. 85*- 524*) [end output] After this you're going to need to make the device entry for your new label (`cd /dev;sh MAKEDEV ad?s1a`) and you should be all set. Although I used the IDE driver for all my examples, this should also work for SCSI disks. Also, while this shouldn't touch the actual data on your disk, I strongly recommend you have a backup; just in case. Hope this helps -- Dima Dorfman Finger dima@unixfreak.org for my public PGP key. If only God would give me some clear sign! Like making a large deposit in my name at a Swiss bank. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message