三系统的grub修复—— freebsd + archlinux + windows7
2010-04-20 16:32
267 查看
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 [b]+2 #修改[/b]
#(END)
_____________________
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 [b]+2 #修改[/b]
#(END)
_____________________
相关文章推荐
- XP+UBUNTU双系统上重装XP后修复GRUB方法
- Linux系统中修复GRUB引导故障手动引导进入操作系统
- XP+UBUNTU双系统上重装XP后修复GRUB方法
- 双系统GRUB修复中碰到的问题
- 双系统修复ubuntu grub
- Ubuntu重装windows系统后的grub引导修复(Ubuntu10.04测试通过)
- 双系统重装win7后,修复grub
- 修复Linux、Windows双系统中损坏的Grub
- linux命令:grub 文件详解及grub修复,系统常见故障修复
- windows/Linux双系统重装grub修复Linux系统引导
- Centos 6系统修复grub
- 系统恢复技术-grub文件错误,如何修复
- [很好!] win7+Ubuntu11.04双系统:修复Grub(MBR)之三重门
- linux+win7双系统重装win7修复grub的办法(转)
- 双系统上重装XP后修复GRUB找回ubuntu
- ubuntu系统grub修复
- 修复Ubuntu Grub引导,找回丢失的系统启动
- 修复GRUB:win10 1709 秋季创意者更新导致Linux双系统无法引导
- ubuntu/win7 双系统,重新装win7,系统卡在grub终端的问题修复
- 【转】win7与ubuntu双系统,删除ubuntu后,启动错误error:no such partition grub rescue的修复--不错