Install Windows 7 in ubuntu

Source: Internet
Author: User
Today, my colleague brought a Lenovo notebook with a pre-installed javast11.10 and asked me to install a Windows 7 system for him. There is no optical drive on the computer. The first thing that comes to mind is that Windows 7 is installed on USB. I asked another colleague for a system USB flash drive, but faced a problem that I needed to partition the hard disk. Because the default host is...
Today, my colleague brought a Lenovo notebook with a pre-installed javast11.10 and asked me to install a Windows 7 system for him. There is no optical drive on the computer. The first thing that comes to mind is that Windows 7 is installed on USB. I asked another colleague for a system USB flash drive, but faced a problem that I needed to partition the hard disk. By default, the device divides the hard disk into three areas: "/", "/swap", and "/home", so there is no space available.

In this case, partitioning in the ubuntu system is definitely not feasible. I first thought of installing puppy linux and then partitioning in putty. I originally wanted to install puppy on a USB flash drive. later I wanted to boot puppy directly under ubuntu. Www.2cto.com on how to boot puppy linux under ubuntu, refer to here: http://blog.kreatx.com/2011/12/16/dual-boot-puppy-linux-with-ubuntu/ which boot item content should also add a sentence: set root = (hd0, msdos8) search-f -- fs-uuid -- set <你的存放puppy的那个分区的uuid值> // Add this sentence... to solve the partition problem. Insert a USB flash drive and enter the win7 installer. The problem arises again. after you enter the installation page, you will always be prompted that the CD/DVD drive cannot be found. One Google search, a lot of feedback, probably because the installation file in the USB flash drive is damaged. What should we do next, and re-create a usb win7 installer? I have installed ubuntu, ubuntu boot win7, and win7 boot ubuntu under various circumstances. I think of the strength of grub, and I am afraid that I can install win7 on ubuntu. After a review of the search results, it is still feasible. some people have practiced it. let me make a summary here. Install Windows 7 on www.2cto.com ubuntu: Download grub4dos, http://up.2cto.com/2012/1007/20121007103238346.zip Decompress: Mount the window7.iso file to the following directory of any partition of grub.exe in Beibei, copy all the files to the root directory of a certain ntfs or FAT32 partition, restart the computer, enter the system boot menu, and press up and down first, stop automatically entering the system. After stopping, press the e key. in the current command line mode, set root = (hdx, y) // x indicates the hard disk ID, and y indicates the partition ID. For example, if I run (hd0, 0) linux/grub.exe, the grub still runs in the command mode: grub> find -- set-root/bootmgrgrub> chainloader/bootmgrgrub> bootok, now go to the windows installer. Www.2cto.com: When I create a new partition, I split the hard disk partition where/home is located. as a result, I cannot log on to ubuntu and use shell to copy files in recovery mode. In ubuntu recovery mode, use shell to install Windows 7. now, the Windows 7 isofile and grub.exe are ready in the USB flash drive to enter the system boot menu. select "Drop to root shell" when selecting recovery mode ". After entering the root shell, you will notice that the entire file system is read-only. To modify the configuration file, you must re-mount the file system to read/write: # mount-n-o remount, rw/first view the location of the USB flash drive # fdisk-l can see the hard drive, find the U disk:/dev/sdb1 mount the U disk: # mkdir/mnt/usb # mount-t auto/dev/sdb1/mnt/usbbeibeigrub.exe to "/" Directory: www.2cto.com # cp/mnt/usb/grub.exe/mount the iso file, copy all the files to the root directory of a partition (/dev/sda3. Note that the partition format must be ntfs or FAT32, and it is not the target partition to install win7 ): # mkdir/mnt/win7 # mount/mnt/usb/window7.iso/mnt/win7-o loop # mkdir/mnt/windows # mount-t auto/dev/sda3/mnt/windows # cp-r/mnt/win7 // mnt/windows restart: # reboot
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.