Subject: grub "Error 2"?
To: NetBSD/xen <port-xen@netbsd.org>
From: Johan Ihren <johani@johani.org>
List: port-xen
Date: 04/11/2007 15:10:02
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm trying to clone a box that's running NetBSD/Xen just fine and I'm
running headlong into grub frustration.
Attempt #1:
copy the disklabel (two identical disks), newfs the new disk and then
dump + restore + grub-install /dev/rwd1d.
This results in a new disk that boots NetBSD just fine with the
NetBSD bootloader but fails to install grub:
box:/root#grub-install /dev/rwd0d
The file /grub/stage1 not read correctly.
This also fails:
box:/root#grub
grub> root (hd0,a)
Error 5: Partition table invalid or corrupt
I can not find any problems with either disk, partition table or
anything else...
Attempt #2:
No dick copying, instead fresh install of NetBSD 3.1 followed by
pkg_add the xenkernel20, xentools20 and grub packages. Then a new
"grub-install /dev/rwd0d" (which seems to work out just fine, no
errors). We get a nice looking /grub/devices.map file and everything
looks fine. So we reboot:
"GRUB loading stage 1.5"
followed by:
"GRUB loading, please wait"
followed by:
"Error 2"
and no further action. This last message looks suspiciously like an
error message from the NetBSD bootloader, but I have no idea why that
would be.
Note that (a) this is with a single large (80GB) root partition
(which works just fine for me on at least four other systems) and (b)
I wonder a bit what the "e" in "grub> root (hd0,e)" in the Xen guide
refers to?
Any input welcome, this is becoming a bit of a pain, because the
machine is literally on the other side of the planet compared to me.
Regards,
Johan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFGHN4tKJmr+nqSTbYRAoG3AJ9LflRYIMKI4SiU+2Ev9P08TdQk7QCglDor
KLe1bZEjV7TSD2ZBTgp0V6A=
=1lUD
-----END PGP SIGNATURE-----