Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2005 14:16:49 +0200
From:      Daniel Gerzo <danger@wilbury.sk>
To:        hackers@freebsd.org
Subject:   [SOLVED] Re: Forcing boot to seek for files on other parition then `a'
Message-ID:  <406058807.20050911141649@rulez.sk>
In-Reply-To: <1567405732.20050910234315@rulez.sk>
References:  <1567405732.20050910234315@rulez.sk>

next in thread | previous in thread | raw e-mail | index | archive | help

This is a cryptographically signed message in MIME format.

------------721DC16E37777FAF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hello hackers,

Saturday, September 10, 2005, 11:43:15 PM, I wrote:

> Hello hackers,

<snip>

>   Ok, I will describe the main problem here;
>   According to the boot(8) manual the automatic boot will attempt to
>   load /boot/loader from partition `a'. But there's no such partition
>   and I have /boot/loader under the `e' partition. I know only one and
>   the only normal way how to force to use `e' partition. This is done
>   throught the boot2 stage of boot process, when one need to manually
>   type 0:ad(0,e)/boot/loader to the console so boot process will be
>   able to use needed utilities. The main question is:

>   How to force boot procedure to automatically seek boot images on
>   other partition then `a', let's say on `e' one.

Okay, with help of simon@ I've successfully hacked the boot2.c code so
the boot process is seeking for boot images at the right place.
Modicifaction I've done:

sys/boot/i386/boot2/boot2.c around line 306 on RELENG_5 in the load()
function I've added after declaration of variables:

dsk.part =3D 4; /* for partition d dsk.part=3D3, for e =3D4,f =3D5 and so */

then in sys/boot/i386/boot2/

# make obj && make depend && make && make install

and then

# bsdlabel -B ad0s1

this does the trick.

--=20
Sincerely,
  Daniel Gerzo

------------721DC16E37777FAF--




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