Linux Mint 8之grub2引导多系统

2009年11月30日 Linux, Ubuntu 暂无评论

Linux Mint 8之grub2引导多系统

自从上次用了mint之后,感觉是个十分好的系统。既有了ubuntu系列的优良血统,又有拥有日常所需的软件,用起来很舒服。

基于ubuntu  9.10的Linux Mint 8已经发布了,我只是下了CD版,只需在线更新了语言包就已经满足需求了。

LinuxMint-8.iso (688MB, MD5, torrent).

Linux Mint 8之grub2引导多系统

另见  Linux Mint 7 使用心得

接下来说说多系统引导

现在我的笔记本上是WinXP+opensuse11.0+mint8+opensolaris2009.06 我需要四个系统都可以引导

还记得以前那台台式机的强大组合ubuntu+fedora+redflag+pcbsd+solaris+xp+win2003,不过都已成历史了,在某月某日已经被我格式化了。

当时我总结了多系统安装的grub引导,可如今已经是grub2,配置有点不一样,由于Mint有着ubuntu的优良作风,熟悉的人会知道安装多个Linux系统之后包括Windows,最后装上ubuntu,就可以自动把其它分区引导,而换作opensuse这类就做不到了。所以本次我采用mint垫后,它也成功的把suse也引导了。不过最强也做不到把UNIX分区给认了,所以还需要手动来引导opensolairs.

xp+Linux+BSD+Solaris多系统安装  关于 grub1的 。

本次是grub2,就连存放目录也都不同了。

grub.cfg 默认为只读,要修改前先设为可写
sudo chmod 777 /boot/grub/grub.cfg

gedit /boot/grub/grub.cfg  发现文件写法不同了

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (/dev/sda7)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set 662a3c86-64dd-4095-b6ce-673bc2bff061
    linux    /boot/vmlinuz-2.6.31-14-generic root=UUID=662a3c86-64dd-4095-b6ce-673bc2bff061 ro   quiet splash
    initrd    /boot/initrd.img-2.6.31-14-generic
}
menuentry "Linux Mint 8 Helena, linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    insmod ext2
    set root=(hd0,7)
    search --no-floppy --fs-uuid --set 662a3c86-64dd-4095-b6ce-673bc2bff061
    linux    /boot/vmlinuz-2.6.31-14-generic root=UUID=662a3c86-64dd-4095-b6ce-673bc2bff061 ro single
    initrd    /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    linux16    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 56601c85601c6e4d
    drivemap -s (hd0) ${root}
    chainloader +1
}
menuentry "openSUSE 11.0 - 2.6.25.20-0.5 (on /dev/sda3)" {
    insmod ext2
    set root=(hd0,3)
    search --no-floppy --fs-uuid --set 0e40fe8d-b27f-48d4-9bdb-97c56eb4bbdf
    linux /boot/vmlinuz-2.6.25.20-0.5-pae root=/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1652G_88N1C0WRT-part3 resume=/dev/sda8 splash=silent showopts vga=0x314
    initrd /boot/initrd-2.6.25.20-0.5-pae
}
menuentry "Failsafe -- openSUSE 11.0 - 2.6.25.20-0.5 (on /dev/sda3)" {
    insmod ext2
    set root=(hd0,3)
    search --no-floppy --fs-uuid --set 0e40fe8d-b27f-48d4-9bdb-97c56eb4bbdf
    linux /boot/vmlinuz-2.6.25.20-0.5-pae root=/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1652G_88N1C0WRT-part3 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x314
    initrd /boot/initrd-2.6.25.20-0.5-pae
}
menuentry "openSolaris 2009.5 (on /dev/sda4)" {
    set root=(hd0,4)
    chainloader +1    
        boot
}
    (特此声明,这种方法只适用于openSolaris本身的grub已经安装。)
### END /etc/grub.d/30_os-prober ###

添加红色部分  则可以引导opensolaris  不过说句实在话opensolaris这个新生毕竟不够人性化,在好几个月前我装在机上,如今我忘记了用户名密码了,它就死活不给进,也无重启的按钮。笔记本又没重启键,只好关机。。。

不过现在主要是说引导,opensolaris也无关紧要了,期待下一版可以带来惊喜。

最后附上我的分区图

Linux Mint 8之grub2引导多系统

0 条留言  访客:0 条  博主:0 条   引用: 1 条

来自外部的引用: 1 条

  • Linux Mint新面孔:基于Debian的LMDE |Linux视野

给我留言