如何在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.
[解决办法]