+ -
当前位置:首页 → 问答吧 → FC6和SUSE双系统安装问题

FC6和SUSE双系统安装问题

时间:2007-03-19

来源:互联网

我以前的系统是FC6
“fdisk -l” 结果是:
[root@localhost ~]# fdisk -l
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1169 9389961 83 Linux
/dev/sda2 1313 4864 28531440 f W95 Ext'd (LBA)
/dev/sda3 * 1170 1182 104422+ 83 Linux
/dev/sda4 1183 1312 1044225 82 Linux swap / Solaris
/dev/sda5 2680 4864 17550981 b W95 FAT32
/dev/sda6 1313 1325 104359+ 83 Linux
/dev/sda7 1326 2679 10875973+ 83 Linux
Partition table entries are not in disk order

在sda1 上是/分区,sda3上是/boot,sda4为swap,

后来我又安装了suse10.2, /分区在sda7,/boot在sda6上,可是安装后,原来的FC6就无法

引导了,然后我又从FC6(DVD)安装光盘引导,选择了其中的“升级当前系统”,以默认方式从新安装了grub程序,终于进入

了以前的FC6,可是又发现suse无法引导,在FC6中的/etc找到grub.conf文件 其类容为:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/sda1
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,2)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/12 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img

于是我又把sda7上安装的suse的/目录挂在上

同样在/etc下找到了grub.conf文件(但和FC6中的不一样,这个不是软连接)其中的类容为:

setup --stage2=/boot/grub/stage2 (hd0) (hd0,5)
quit

这个我看不懂 就直接把它 加在FC6 的grub.conf文件后 可是从起后
grub提示无法识别!!
请问我要如何设置我的gurb文件 才能 引导电脑中的suse???????????

作者: ztianshan   发布时间: 2007-03-19