Chinaunix首页 | 论坛 | 博客
  • 博客访问: 833219
  • 博文数量: 117
  • 博客积分: 2595
  • 博客等级: 少校
  • 技术积分: 1204
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-18 18:16
文章分类

全部博文(117)

文章存档

2013年(1)

2012年(2)

2011年(18)

2010年(95)

2009年(1)

分类: LINUX

2010-05-29 22:24:24

我是现安装的fedora13,然后安装的ubuntu10.04.
我的分区是这样的:sda1 sda2 sda5 sda6 sda7 sda8
其中:
sda1是ntfs分区,用来存数据的,一个硬盘还不能全部是ext分区,否则进入windows怎么办?
sda2是ext3的boot分区,大小256MB左右
sda5 是/home分区,大小5GB多
sda6 是/分区(Fedora13)
sda7 是/分区(Ubuntu10.04)
sda8就是swap分区了,大小560MB左右
由于fedora的grub系统仍然是老板的grub.conf/menu.lst,不是新版的grub2(grub1.98),而ubuntu采取的是grub2,结果安装好ubuntu后,grub自动更新了grub.cfg文件,自动写入了一些菜单,主要如下:


### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu,Linux 2.6.33.3-85.fc13.i686.PAE (on /dev/sda6)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 2d053bc2-8d92-478b-bbb7-cd76663d5bb4
    linux /vmlinuz-2.6.33.3-85.fc13.i686.PAE root=/dev/sda7 ro quiet splash
#    initrd /initramfs-2.6.33.3-85.fc13.i686.PAE.img

#    由于fedora13的initrd的名字不一样,ubuntu不能自动识别,这是我自己加的

}
menuentry "Ubuntu,Linux 2.6.33.3-85.fc13.i686.PAE (恢复模式) (on /dev/sda6)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 2d053bc2-8d92-478b-bbb7-cd76663d5bb4
    linux /vmlinuz-2.6.33.3-85.fc13.i686.PAE root=/dev/sda7 ro single
#    initrd /initramfs-2.6.33.3-85.fc13.i686.PAE.img

#    由于fedora13的initrd的名字不一样,ubuntu不能自动识别,这是我自己加的

}
menuentry "Ubuntu,Linux 2.6.32-22-generic (on /dev/sda6)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 2d053bc2-8d92-478b-bbb7-cd76663d5bb4
    linux /vmlinuz-2.6.32-22-generic root=UUID=6368746f-2074-616b-6f65-207575696400 ro quiet splash
    initrd /initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu,Linux 2.6.32-22-generic (恢复模式) (on /dev/sda6)" {
    insmod ext2
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 2d053bc2-8d92-478b-bbb7-cd76663d5bb4
    linux /vmlinuz-2.6.32-22-generic root=UUID=6368746f-2074-616b-6f65-207575696400 ro single
    initrd /initrd.img-2.6.32-22-generic
}
menuentry "Windows Vista (loader) (on /dev/sdb2)" {
    insmod ntfs
    set root='(/dev/sdb,2)'
    search --no-floppy --fs-uuid --set 0e48a65048a6367d
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###


其中uuid 2d05**开头是我的sda2即boot分区;而6368**开头是我的sda7即ubuntu主分区,结果显然,ubuntu把fedora的内核据为己有了(看“fc13”就知道了)
这问题,感觉很弱只,grub2怎么没有导入老版本的grub的grub.conf呢?

再把fedora13原来的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,1)
# kernel /vmlinuz-version ro root=/dev/sda6
# initrd /initrd-[generic-]version.img
#boot=/dev/sda2
default=0
timeout=3
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora13 (2.6.33.3-85.fc13.i686.PAE)
    root (hd0,1)
    kernel /vmlinuz-2.6.33.3-85.fc13.i686.PAE ro root=UUID=ffd88906-7534-411b-b834-36aad1c3be53 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=zh_CN.UTF-8 KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.33.3-85.fc13.i686.PAE.img
title Other sda1
    rootnoverify (hd0,0)
    chainloader +1


阅读(1186) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~