Subject: Re: grub "Error 3" and small partitions
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: david l goodrich <dlg@dsrw.org>
List: port-xen
Date: 03/04/2007 10:57:52
--DBIVS5p969aUjpLe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 04, 2007 at 11:53:20AM +0100, Manuel Bouyer wrote:
> On Sat, Mar 03, 2007 at 06:32:42PM -0600, david l goodrich wrote:
> >
> > / is on a raid mirror, is 2GB in size, and has block and fragment=20
> > sizes of 8k and 1k respectively.
>=20
> I'm not sure 2GB is small enough. I always to / 512MB or smaller.

Well, okay.  I guess i'll try smaller.  2G was sufficient in the
past, though:

xen# df -h /
Filesystem    Size      Used     Avail Capacity  Mounted on
/dev/raid0a   1.9G      160M      1.7G     8%    /
xen# disklabel raid0 | grep ^\ a:
 a:   4194304         0     4.2BSD   1024  8192 46608  # (Cyl.
0 -   4095)
xen# uname -a
NetBSD xen.bwcws.dsrw.org 4.99.4 NetBSD 4.99.4 (XEN3_DOM0) #0:
Mon Nov 27 04:32:34 CST 2006
dlg@build-31.dsrw.org:/local/src/HEAD/src/sys/arch/i386/compile/obj/XEN3_DO=
M0
i386
xen#=20


>=20
> >=20
> > The grub install seems alright, I'm able to run grub with this
> > configuration:
> >   root (hd0,0)
> >   chainloader +1
>=20
> loading a file from filesystem or chain-booting a partition are really 2
> different things. However I think grub will load menu.lst at boot, so
> it probably can read at last parts of the filesystem properly. This should
> rule out issues with the raid setup.

Okay.  I saw this in the pkg_add output, and gave it a shot:

  title NetBSD (wd0)
    root (hd0,0,a)
    kernel /netbsd

and it seems to work fine as well.

Thanks.
  --david

--DBIVS5p969aUjpLe
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iD8DBQFF6vqMHDmo5jqnP4QRAtj8AJ9/7w7bOVzdLIt6m6RYJD4KU0BbmACdFUqE
a11xJI6Cm36g2kpiBS+Egpk=
=KCcO
-----END PGP SIGNATURE-----

--DBIVS5p969aUjpLe--