Archlinxu+windows7 安装 FreeBSD 后修改grub0.97笔记
1
[wowoto@Archlinux ~]$ sudo grub-install /dev/sda
密码:
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 /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/sda
[wowoto@Archlinux ~]$
____________________________
2
[wowoto@Archlinux ~]$ cat /proc/partitions
major minor #blocks name
8 0 117220824 sda
8 1 20972826 sda1 #windows所在主分区ntfs
8 2 1 sda2 #FreeBSD所在主分区
8 3 15719350 sda3 #slice
8 5 62918572 sda5 #数据盘 ntfs
8 6 64228 sda6 #archlinux的boot分区
8 7 13558828 sda7
8 8 1477948 sda8
8 9 2498076 sda9
8 10 11524096 sda10
8 11 4195254 sda11
[wowoto@Archlinux ~]$
__________________________
3
/boot/grub/menu.lst
...
....
.......
# general configuration:
timeout 5
default 0
color light-blue/black light-cyan/red
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (0) Arch Linux
title Arch Linux
root (hd0,5)
kernel /vmlinuz26 root=/dev/disk/by-uuid/ab8c742f-82d9-49a4-abb2-ffff4d7ee47b resume=/dev/sda9 ro
initrd /kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,5)
kernel /vmlinuz26 root=/dev/disk/by-uuid/ab8c742f-82d9-49a4-abb2-ffff4d7ee47b ro
initrd /kernel26-fallback.img
# (2) Windows
title Windows7
rootnoverify (hd0,0) #不变
makeactive
chainloader +1 #不变
# (3)FreeBSD
title FreeBSD8.0
rootnoverify (hd0,2) #修改
makeactive
chainloader +2 #修改
#(END)
_____________________