Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Dec 1999 11:32:12 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Justin Hawkins <justin@tardis.mx.com.au>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Can't boot to partition 'e'
Message-ID:  <19991218113211.A4203@freebie.lemis.com>
In-Reply-To: <Pine.BSF.4.21.9912140942040.823-100000@tardis.mx.com.au>
References:  <Pine.BSF.4.21.9912140942040.823-100000@tardis.mx.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991218113211.A4203>