--- wikisrc/grub2.mdwn 2012/12/09 18:47:53 1.2 +++ wikisrc/grub2.mdwn 2020/04/10 16:24:15 1.3 @@ -1,21 +1,20 @@ # How to install GRUB2 on NetBSD This how-to explains the steps needed to install GRUB2 on an existing i386/AMD64 -NetBSD-installation. The steps should work on a properly chroot'ed system too. +NetBSD installation. The steps should work on a properly chroot'ed system too. Tested on NetBSD 6.0 AMD64: First of all, either download the package, using `pkgin install grub2`, or build it yourself from package sources (`/usr/pkgsrc/sysutils/grub2`). - After that, generate a GRUB configuration file, which tells GRUB the positions of the operating system(s). The following command will generate such a file, -while adding your NetBSD system into it's list. +while adding your NetBSD system into its list. # grub-mkconfig -o /grub/grub.cfg Now, install GRUB into your hard drive's master boot record (MBR). -You have to know it's device name for this step (e.g. `/dev/rwd0a`). +You have to know its device name for this step (e.g. `/dev/rwd0a`). Exchange `/dev/rwd0a` with your desired device name, then change `/dev/rXXXa` to `/dev/rwXXXd` to access the raw disk, as in the following example: @@ -31,6 +30,6 @@ If it does so, simply reboot the system OS-selector. If not, recheck your device names, if that doesn't fix it, search the web for the error message. -Even though there aren't that much resources about *GRUB on NetBSD*, you'll +Even though there aren't that many resources about *GRUB on NetBSD*, you'll find a lot of information at GNU/Linux-related sites which apply to this scenario as well.