Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Oct 2009 21:08:56 +0200
From:      Polytropon <freebsd@edvax.de>
To:        PJ <af.gourmet@videotron.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: booting from wrong disk
Message-ID:  <20091015210856.b8afc17d.freebsd@edvax.de>
In-Reply-To: <4AD76D10.2040408@videotron.ca>
References:  <4AD74198.9010301@videotron.ca> <4AD74A14.9010403@videotron.ca> <20091015200626.c1dee87b.freebsd@edvax.de> <4AD76D10.2040408@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Oct 2009 14:42:24 -0400, PJ <af.gourmet@videotron.ca> wrote:
> But sysinstall will overwrite all the info on the disk and that defeats
> the whole purpose of the exercise.

If you only change a slice's state and add an MBR, it won't
do anything to the data inside the slice.



> What complicates matters is the use of GAG as boot manager.

Hmmm... I'm not familar with that, nor have I ever heared of
it.



> If I select
> to boot from ad4 and the boot is from ad12, then there is something
> wrong.

Check /etc/fstab as suggested. Furthermore, check what GAG
actually does - just to be sure it boots the correct device.
I always assumed that you use the standard MBR which does,
as I explained, simply boot the first "active" slice on the
first disk it finds. Maybe GAG acts differently.



> It indicates to me that the mbr is loading the wrong disk.

In this case, it's good to read how booting works. MBR, and
bootN, the FreeBSD loader and the kernel own specified points
in this race. :-)



> I noticed this when trying to boot a disk on my other computer... it was
> looking for ad12 when there was no ad12 installed.

"Who" was looking for ad12? Was it at the "boot>" or the "Ok"
prompt?



> I found that strange,
> but then I recalled thatManolis Klagias had warned about something of
> the sort. Now, I'll have to sort that out.

You have to be entirely sure that the booting process works as
intended. The easiest way to ensure this is to first use only
one disk at once in the system. There are different stages where
things can get messed up, such as the loader or /etc/fstab.
They have to match the situation.

As a sidenote, GEOM supports labelling partitions so it does not
matter anymore if, for example, a / partition is ad4s1a or ad12s1a.
There's a section in the handbook that illustrates how to get rid
of device names in /etc/fstab.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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