|
grub版本0.97
硬盘情况:
sda:第一主分区arch根分区
sdb:第一主分区xp fat32格式 第二主分区ubuntu 第三主分区arch系统的/boot
grub安装在sda的mbr
sdb1原本为vista,ntfs格式,因为v不爽,昨晚重装xp fat32格式,装之前进bios临时调换了硬盘启动顺序,装好后调回启动顺序,结果grub启动菜单选择进入xp后就停在了grub minimal console界面,百度了半天,尝试手动启动也失败
menu.lst:
# (0) Arch Linux
title Arch Linux
root (hd1,2)
kernel /vmlinuz26 root=/dev/sda1 ro
initrd /kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd1,2)
kernel /vmlinuz26 root=/dev/sda1 ro
initrd /kernel26-fallback.img
# (1) Windows XP
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
# (3) Ubuntu 8.04
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb2 ro quiet nosplash
initrd /boot/initrd.img-2.6.24-16-generic
# (4) Ubuntu 8.04 Recovery Mode
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb2 ro single
initrd /boot/initrd.img-2.6.24-16-generic
grub中通过tab健查询:
grub> root (hd0,)
Possible partitions are:
Partition num: 0, Filesystem type is jfs, partition type 0x6
Partition num: 1, Filesystem type unknown, partition type 0x7
Partition num: 2, Filesystem type unknown, partition type 0x6
Partition num: 3, Filesystem type unknown, partition type 0x7
grub>
grub> root (hd1,)
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xc
Partition num: 1, Filesystem type is reiserfs, partition type 0xaf
Partition num: 2, Filesystem type is jfs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x82
Partition num: 5, Filesystem type is jfs, partition type 0x83
Partition num: 6, Filesystem type is jfs, partition type 0x83
Partition num: 7, Filesystem type unknown, partition type 0x7
grub> root (hd1,) 0x7
加入:map (hd0) (hd1)
map (hd1) (hd0)
后解决 |
|