三系统的grub修复—— freebsd + archlinux + windows7

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) 

 

_____________________

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值