Grubでの起動パーティションの設定
# aptitude install grub
# grub-install --root-directory=/ /dev/sda
device.mapを実機にあわせて編集
# vi /boot/grub/device.map
(hd0) /dev/sda
ハードディスク1台でsdaで認識
menu.listを編集する
# vi /boot/grub/menu.list
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro
initrd /boot/initrd.img-2.6.26-2-686
title Debian GNU/Linux, kernel 2.6.26-2-686 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.26-2-686
# update-grub をして情報を更新する
更新内容のデフォはmenu.lstの以下の部分で設定
#が一個のところが適用される
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda2 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
※root(hd0,1)の説明:1番最初に見つかったハードディスクの第2パーティションの意味