日期:2014-05-16  浏览次数:20620 次

如何在linux下安装windows?高手进来帮忙啦
高手们帮帮忙呀,我买到本本自带linux系统,希望能安装windows系统,希望是双系统。要留原装到linux系统。会的朋友帮帮忙,最好是讲的详细一些,本人菜鸟。感谢大家。

------解决方案--------------------
这个比较难,最好的是先装Windows后装linux。因为Windows 用的是ntloader,而linux用的gnu 的grub引导方式。等高手了。
------解决方案--------------------
1. su sudo -i ( Switch to root If don't, you need sudo to run the rest commands)
2. fdisk -l (show disk partition table. One partition, STOP. Several partitions, consider to umount one for windows. Mine partition table is as follows)
Device Boot Start End Blocks Id System
/dev/sda1 * 63 62914319 31457128+ 7 HPFS/NTFS/exFAT
/dev/sda2 62926605 121515659 29294527+ 7 HPFS/NTFS/exFAT
/dev/sda3 121515721 488392064 183438172 5 Extended
/dev/sda5 121515723 160585739 19535008+ 83 Linux
/dev/sda6 160585803 164489534 1951866 82 Linux swap / Solaris
/dev/sda7 164489598 488392064 161951233+ 83 Linux

3. umount /dev/sda[x] (umount partition for windows. If sda5 is selected, umount it using /umount /dev/sda5)

4. edit file /etc/fstab . comment out the line corresponding to sda[x]
UUID=cd006a26-9874-4e12-b804-69830ca33ee8 /home ext4 defaults 0 1

5. reboot your system. Log in as root. make sure sda5 is umounted. 

6. create a live usb / cd for your linux distribution. You can google how to do this. 

7. Install windows on the partition you unmounted. 

8. Boot your system with live usb / cd and log in as root.

9. Run grup-install /dev/sda to recover your grup loader.
------解决方案--------------------
探讨
高手们帮帮忙呀,我买到本本自带linux系统,希望能安装windows系统,希望是双系统。要留原装到linux系统。会的朋友帮帮忙,最好是讲的详细一些,本人菜鸟。感谢大家。

------解决方案--------------------
楼主要先用 fdisk -l 命令把分区的情况发上来才能帮你参谋。windows一定要安装在第一个主分区,如果第一个主分区被linux占用了,必须先把第一个主分区的数据迁移到其它分区。
1、如第一个主分区没有被占用,可先进到BIOS设置反病毒功能,保护主引导扇区(mbr)不被修改。(这步十分重要,否则你安装完 windows后就进不了linux了)。
2、用ghost版本将windows克隆到第一个主分区,不要用安装版!
3、编辑/boot/grub/grub.conf文件,加上:
title WINDOWS XP
rootnoverify (hd0,0)
chainloader +1
4、启动时选WINDOWS XP 就进入到xp了