windows、linux多系统配置

2010年10月29日 4434点热度 0人点赞 0条评论
[root@amd64 grub]# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4097    32909121    7  HPFS/NTFS
/dev/sda2            4098       38913   279659520    f  W95 Ext'd (LBA)
/dev/sda5           16896       29693   102799903+   7  HPFS/NTFS
/dev/sda6            4098       15875    94606722   83  Linux
/dev/sda7           15876       16895     8193118+  82  Linux swap / Solaris
/dev/sda8           29694       34792    40957686   83  Linux

Partition table entries are not in disk order

如上,sda6是第一个安装的linux系统,sda7是swap盘,sda8是后装的linux系统。因此,目前生效的grub配置在sda8上,如需进入不同的系统,需要修改sda8上的grub配置文件。继续,如果系统进入到sda6的配置文件时,也是grub配置文件。再继续,如果进入到win7时,再使用win的ldr配置文件。

[root@amd64 grub]# cat grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,7)
#          kernel /boot/vmlinuz-version ro root=/dev/sda8
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title RHEL5.5-2 (2.6.18-194.el5)
root (hd0,7)
kernel /boot/vmlinuz-2.6.18-194.el5 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-194.el5.img
title RHEL5.5-1
rootnoverify (hd0,5)
chainloader +1
title Windows7
rootnoverify (hd0,0)
chainloader +1

如上配置,默认的是自0开始计数的第一个操作系统,即RHEL5.5-1

liking

这个人很懒,什么都没留下

文章评论