- 论坛徽章:
- 0
|
硬盘20G,先安装MagicLinux1.2,分区情况是:最前110M为/boot,其次5.5G为/,没有先设swap,安装时选用grub启动管理器。安装好后一切正常,其中/boot为hda1,/为hda2。
紧接着用sfdisk将剩余硬盘如下规划:(从后往前分)
C:4000M (主分区,hda4,fat32)
D:5000M (逻辑区,hda7,fat32)
E:4400M (逻辑区,hda6,fat32)
swap:290M(在逻辑区内,hda5,Linux/swap)
分区情况如下:
“
Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 14 112423+ 83 Linux
/dev/hda2 15 699 5502262+ 83 Linux
/dev/hda3 700 1922 9823747+ f W95 Ext'd (LBA )
/dev/hda4 1923 2432 4096575 c W95 FAT32 (LBA )
/dev/hda5 700 737 305203+ 82 Linux swap
/dev/hda6 738 1285 4401778+ c W95 FAT32 (LBA )
/dev/hda7 1286 1922 5116671 c W95 FAT32 (LBA )
”
然后把windows2003安装在C:,安装完之后,由于MBR被重写,所以GRUB失效,故用MagicLinux安装盘启动进入Linux Rescue模式,然后chroot /mnt/sysimage 接着vi /boot/grub/grub.conf加入
“
title windows2003
rootnoverify=(hd0.3)
chainloader +1
”
全部如下所示:
“
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title MagicLinux
root (hd0,0)
kernel /vmlinuz-2.6.0-1 ro root=/dev/hda2 vga=791 splash=silent
initrd /initrd-2.6.0-1.img
title Windows2003
rootnoverify(hd0,3)
chainloader +1
”
保存之后,grub—install /dev/hda
显示两行如下:
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/hda
然后重启,出现grub启动界面和(MagicLinux和windows2003选项),可以正常进入ML,可是选择windows2003时显示:
“
boot:“windows2003”
chainloader +1
Error 13:Invalid or unsupported executable format。
press any key…………
”
无法进入windows2003,请问高手我错在哪里?
谢过先!!! |
|