| GNU GRUBを使う Last Update : 2002/05/18 |
![]() |
# rpm -ivh grub-0.90-8k.i586.rpm |
# dd if=/usr/share/grub/i386-redhat/stage1 of=/dev/fd0 count=1 bs=512 1+0 records in 1+0 records out # dd if=/usr/share/grub/i386-redhat/stage2 of=/dev/fd0 seek=1 bs=512 186+1 records in 186+1 records out |
| 入力文字 | ( | ) | = |
| 通常の入力 | [SHIFT]+[8] | [SHIFT]+[9] | [SHIFT]+[-] |
| GRUBでの入力 | [SHIFT]+[9] | [SHIFT]+[0] | [^] |
grub> root (hd0,1) ← ルートデバイスの指定(第1HDDの第2パーティション) grub> kernel /boot/vmlinuz-2.4.18-10k root=/dev/hda2 ← 起動カーネルの指定 grub> initrd /boot/initrd-2.4.18-10k.img ← initrdの指定 grub> boot ← Kernel起動 |
# /sbin/grub-install /dev/hda Installation finished. No error reported. This is the contents of the device map /boot/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/fd0 (hd0) /dev/hda (hd1) /dev/hdb |
grub> root (hd0,1) ← ルートデバイスの指定(第1HDDの第2パーティション) grub> kernel /boot/vmlinuz-2.4.18-10k root=/dev/hda2 ← 起動カーネルの指定 grub> initrd /boot/initrd-2.4.18-10k.img ← initrdの指定 grub> boot ← Kernel起動 |
grub> root (hd0,0) ← ルートデバイスの指定(第1HDDの第1パーティション) grub> makeactive ← おまじない(笑) grub> chainloader +1 ← 同じくおまじない(笑) grub> boot ← Windows起動 |
# cp /boot/grub/splash.xpm.gz /root # gzip -d splash.xpm.gz # convert splash.xpm splash.jpg # convert -colors 14 splash.jpg splash.xpm # gzip splash.xpm # cp splash.xpm.gz /boot/grub |
# Time Out (Sec) timeout 30 # Default Entry (up to 0,1,2,3...) default 0 # Foreground Color foreground = 88ccff # Background Color background = cc6600 # Border Color border = ff0000 # Display Image splashimage = (hd0,1)/boot/grub/splash.xpm.gz ## Kondara MNU/Linux Boot title Kondara MNU/Linux 2.1 (Asumi) root (hd0,1) kernel /boot/vmlinuz-2.4.17-14k root=/dev/hda2 acpi=no-idle apm=on ← Kernelに渡すオプションはKernelコマンドの後ろに続けて書く initrd /boot/initrd-2.4.17-14k.img ## Windows 2000 title Microsoft Windows 2000 root (hd0,0) makeactive chainloader +1 |
# cp menu.lst /boot/grub |
# /sbin/grub-install /dev/hda Installation finished. No error reported. This is the contents of the device map /boot/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/fd0 (hd0) /dev/hda (hd1) /dev/hdb |
