From owner-freebsd-questions Fri Dec 17 17:55:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 858EC14D68 for ; Fri, 17 Dec 1999 17:55:44 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA08998; Sat, 18 Dec 1999 11:32:13 +1030 (CST) Date: Sat, 18 Dec 1999 11:32:12 +1030 From: Greg Lehey To: Justin Hawkins Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can't boot to partition 'e' Message-ID: <19991218113211.A4203@freebie.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 14 December 1999 at 9:55:39 +1030, Justin Hawkins wrote: > > My home gateway system has recently had a hard drive upgrade - I tossed > out two old 500Mb disks and put in a single 12Gb disk. I used cpio to copy > all the files in across, and in the process my root partition is now > partition 'e'. > > Everything works fine, except for booting: > > F1 . . . FreeBSD > > Default: F? > > Invalid partition > Invalid partition > No /boot/loader > >>> FreeBSD/i386 BOOT > Default: 0:wd(0,a)/kernel > boot: > > At this point I need to type 'wd(0,e)' to get it to boot. Since this > is a headless box this is a rather large inconvenience! > > I understand I need to change a setting somewhere, recompile the > boot loader and reinstall it, No, this is not correct. > but all the boot related documentation I come > across I find very confusing. A step by step guide which showed what each > stage loader actually *looked* like would be nice so I knew where I was up > to, but enough moaning :-) > > Can anyone give me a pointer in the right direction? Sure. Do: # disklabel -e wd0s1 You'll get the disk label in the editor. The end will look something like: 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 102400 61440 swap # (Cyl. 60*- 162*) c: 2504817 0 unused 0 0 # (Cyl. 0 - 2484*) e: 61440 0 4.2BSD 0 0 0 # (Cyl. 0 - 60*) f: 2340977 163840 4.2BSD 0 0 0 # (Cyl. 162*- 2484*) Change this to: 8 partitions: # size offset fstype [fsize bsize bps/cpg] b: 102400 61440 swap # (Cyl. 60*- 162*) c: 2504817 0 unused 0 0 # (Cyl. 0 - 2484*) a: 61440 0 4.2BSD 0 0 0 # (Cyl. 0 - 60*) e: 61440 0 4.2BSD 0 0 0 # (Cyl. 0 - 60*) f: 2340977 163840 4.2BSD 0 0 0 # (Cyl. 162*- 2484*) (add a second line identical to the e partition with partition a). Exit the editor and you will have a partition a identical to e. Edit your /etc/fstab to reflect the change (don't use e at all, you need to delete it after rebooting). Reboot and you should have no more problems. You should then delete partition e to keep things tidy. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message