Models
NetBSD
  xorg
  問題
Xen
  grub
    menu.lst
  Dom0
    pkg_add
    設定
      config
      bridge
      rc.conf

hardware | software

MacBook

Last Update: "2008/06/30 14:47:19 makoto"

grub

need patch -> grub-0.97nb9.patch 組立済のものは ftp://ftp.ki.nu/packages/4.0/i386/All/ に置いてありますので、
sudo -s
env PKG_PATH=ftp://ftp.ki.nu/packages/4.0/i386/All pkg_add grub
とすれば入れられます。その後に、次のような操作をします。 今回は NetBSD に割当てられているのは wd0c なので /dev/wd0c に入れることにします。 (下の方で無視されている気はしますが)
ttyp0:root@macbook  17:25:36/080622(/home/makoto)# grub-install /dev/wd0c
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/rfd0a
(hd0)   /dev/rwd0d

ttyp0:root@macbook  17:26:14/080622(/home/makoto)# grub --no-floppy
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> root (hd0,a)
 Filesystem type is ffs, partition type 0xa9

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/ffs_stage1_5" exists... yes
 Running "embed /grub/ffs_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /grub/ffs_stage1_5 (hd0,2,a)"... failed (this is not fatal)
 Running "install /grub/stage1 (hd0) /grub/stage2 p /grub/menu.lst "... succeeded
Done.

grub> quit

menu.lst

/etc/menu.lst に次のようなものを用意します。はじめは、一行目で、二番目 の組合せを採用すると設定しておきます。 単に /netbsd-GENERIC を起動するようにして試すのが安全・おすすめです。
default=1
timeout=10
title Xen 3.0 / NetBSD 
  root (hd0,2,a)
  kernel (hd0,2,a)/xen.gz dom0_mem=524288
  module (hd0,2,a)/netbsd root=/dev/wd0a ro console=tty0

title NetBSD  (kernel direct)
root (hd0,2,a)       # NetBSD on 1st MBR partition of 1st IDE disk
kernel /netbsd-GENERIC

title NetBSD (chain loader)
root (hd0,2,a)       # NetBSD on 1st MBR partition of 1st IDE disk
chainloader +1
If you get 'Unrecognized device string' at /grub/menu.lst, it is most likely to specify other than a-h partitions.
grub-0.97 allows only that range, a-h partition. Patch to allow a-p partition -> grub-0.97-a-p-partition
Last Update: Sat, 07 Jun 2014 13:16:17 GMT 1.66 2008/03/08