昨晚一冲动刻了张fedora15的CD,就装上了,安装前我把XP时用的F盘分区删除了,然后用未分区的磁盘空间安装了fedora15;
重启时没有系统选择界面,就直接进入fedora了。搜了好多资料说修改/boot/grub/menu.lst, 我照改了(见下文有贴出),重启后可以见到WINXP的选项,但是回车后提示 “INVALID DEVICE REQUESTED”,无法启动XP,我确认XP是安装在C盘的。
贴出我修改后的menu.lst文件,红色的地方是我修改的
# 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,6)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_lufeelinux-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=3
splashimage=(hd0,6)/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.40-4.fc15.i686)
root (hd0,6)
kernel /vmlinuz-2.6.40-4.fc15.i686 ro root=/dev/mapper/vg_lufeelinux-lv_root rd_LVM_LV=vg_lufeelinux/lv_root rd_LVM_LV=vg_lufeelinux/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.40-4.fc15.i686.img
title Fedora (2.6.38.6-26.rc1.fc15.i686)
root (hd0,6)
kernel /vmlinuz-2.6.38.6-26.rc1.fc15.i686 ro root=/dev/mapper/vg_lufeelinux-lv_root rd_LVM_LV=vg_lufeelinux/lv_root rd_LVM_LV=vg_lufeelinux/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.38.6-26.rc1.fc15.i686.img
title WINDOWSXP
rootnoverify(hd0,0)
chainloder+1
makeactive
贴出我的硬盘分区信息,我的电脑是HP520,STATA的硬盘
[root@lufee-linux lufee]# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
240 heads, 63 sectors/track, 15505 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf1d5f1d5
Device Boot Start End Blocks Id System
/dev/sda1 * 63 50425199 25212568+ c W95 FAT32 (LBA)
/dev/sda2 50425200 230171759 89873280 f W95 Ext'd (LBA)
/dev/sda3 230171760 234435599 2131920 1c Hidden W95 FAT32 (LBA)
/dev/sda5 50425263 109045439 29310088+ b W95 FAT32
/dev/sda6 109045503 167665679 29310088+ b W95 FAT32
/dev/sda7 167669760 168693759 512000 83 Linux
/dev/sda8 168695808 230170623 30737408 8e Linux LVM
Disk /dev/mapper/vg_lufeelinux-lv_swap: 3154 MB, 3154116608 bytes
255 heads, 63 sectors/track, 383 cylinders, total 6160384 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_lufeelinux-lv_swap doesn't contain a valid partition table
Disk /dev/mapper/vg_lufeelinux-lv_root: 28.3 GB, 28319940608 bytes
255 heads, 63 sectors/track, 3443 cylinders, total 55312384 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_lufeelinux-lv_root doesn't contain a valid partition table
[root@lufee-linux lufee]# df -lh
文件系统 容量 已用 可用 已用%% 挂载点
rootfs 26G 2.5G 24G 10% /
udev 744M 0 744M 0% /dev
tmpfs 751M 364K 751M 1% /dev/shm
tmpfs 751M 676K 750M 1% /run
/dev/mapper/vg_lufeelinux-lv_root
26G 2.5G 24G 10% /
tmpfs 751M 0 751M 0% /sys/fs/cgroup
tmpfs 751M 0 751M 0% /media
/dev/sda7 485M 50M 410M 11% /boot
/dev/mapper/vg_lufeelinux-lv_root
26G 2.5G 24G 10% /tmp
/dev/mapper/vg_lufeelinux-lv_root
26G 2.5G 24G 10% /var/tmp
/dev/mapper/vg_lufeelinux-lv_root
26G 2.5G 24G 10% /home
/dev/sda1 25G 17G 7.3G 70% /media/A000-8ADA
/dev/sda5 28G 22G 6.3G 78% /media/346D-1B07
/dev/sda6 28G 27G 1.8G 94% /media/DISK1_VOL3
alick 于 2011-08-11 23:23:44发表:
仔细看了下楼主的这部分配置。貌似命令都拼错了~
alick 于 2011-08-11 23:22:05发表:
手册上的示例是这样的:[code]title Windows XP
root (hd0,0)
makeactive
chainloader +1[/code]注意其中的命令顺序,以及命令后的空格。
(虽然我不确定问题是否出在这里)
lufee_linux 于 2011-08-11 20:22:19发表:
有木有人啊。。。