1

I need to have a dual boot with Ubuntu and Windows 7 on my notebook with UEFI. I had to turn UEFI off to install and boot Ubuntu.

Now I'm trying to install Windows 7, but it says it can't be installed on the drive with a GPT-style drive. The only way to turn on the GPT support is to run it in UEFI mode, but when I try to turn it on in BIOS, it doesn't recognize my flash drive.

I'm confused. I'd be glad if anybody would give me some guidance on what to do to have Windows 7 installed without formatting my hard drive.

4
  • why on earth you need to turn UEFI off to install and boot Ubuntu?
    – phuclv
    Aug 25, 2018 at 0:53
  • @phuclv back then (in 2013) it was required, not sure why though, anyway, now everything works out of the box for most Linux distorts.
    – MInner
    Aug 27, 2018 at 2:41
  • probably you're talking about signed kernels, which weren't available in the early days. Therefore you need to turn off secure boot and not UEFI. Linux supports UEFI even long before end-user Windows
    – phuclv
    Aug 27, 2018 at 4:32
  • @phuclv yes, you are correct
    – MInner
    Aug 30, 2018 at 18:10

2 Answers 2

0

Personally, I'd install Windows in EFI mode and then install an EFI-mode boot loader for Linux. Several are available (see the link). rEFInd is likely to be the easiest to install, although using Ubuntu's Boot Repair tool might get an EFI version of GRUB 2 set up fairly easily, too.

0

The real problem here is that your computer is not seeing your flash drive as a UEFI bootable device. this may be a limitation of your bios or bios settings, but first please follow the following steps to create a UEFI bootable windows 7 flash drive:

  1. In a windows computer, download a legal copy (although trial) of the windows 7 os. You can do this from here: http://www.mydigitallife.info/official-windows-7-sp1-iso-from-digital-river/ Be sure to download the same version that came preinstalled in your computer. For example, if you have a Lenovo x120e, with a Windows 7 professional, 64bit, download an iso image of the Windows 7 professional 64bit.

  2. Once downloaded burn the iso to a USB thumb (at least 4GB) using Windows 7 USB/DVD Download Tool.

  3. After preparing this, create a folder on your computer, name it whatever (i.e. W7pro64bit). Go to the root of your USB and select all the files and folders there (9 in total) copy, and paste to your folder you created, W7pro64bit.

  4. Using windows format the usb again in FAT32. Windows 7 USB/DVD Download tool, formats it in NTFS. We need a FAT32 formatted disk to achieve our goal. Formating again the USB in FAT32 will not touch the MBR of the USB thumbdrive. And after copying back the files (see step 6) the USB will still be bootable. (nice, and simple, isn't it?)

  5. Now go to the folder W7pro64bit and do the following:

a. Browse to W7pro64bit\sources\ and open install.wim file. It’s a big file, and can be opened as an archive with 7zip (free software). Do not extract it, do not modify it, just browse the file with 7zip. Just to be sure you do not mess with that file, you can copy it somewhere else in your computer, and than procede.

b. Browse this file (install.wim) to \1\Windows\Boot\EFI\ and locate the file bootmgfw.efi. Do not move, delete it, but just drag that file to the desktop. (if you have copied the file install.wim to another place in your computer, than you are safely do whatever you want with that file ) Close the 7zip program to release the install.wim file.

c. Rename the file you just copied to the desktop from bootmgfw.efi to bootx64.efi.

d. Now go back to w7pro64bit folder and browse \efi\Microsoft. Form there copy the folder boot and paste it one level up, on the folder: \efi. It will look like this: \efi\boot.

e. Now copy the file you saved on your desktop and renamed (bootx64.efi) to \efi\boot (inside the boot folder you copied on step 5d

  1. Now go to the root of the folder W7pro64bit and select all folders and files (9 in total) copy, and paste all those files back to your USB thumb drive. (see step 4 for more info)

  2. Go to the computer that you are going to reinstall, and before restarting it, use the program ABR (activation backup and restore) to backup the license of your windows os. (use google to find ABR). Advanced Tokens Manager (ATM ) is great too. This link may be of help: Backup and restore W7 activation. After the program finishes its magic, it will create a few files inside the folder where the program itself reside. Copy these files to a new folder in your usb. Rename it to ABR so you will quickly find it later. (if you decide to use ATM, the procedure may be a little different. But you are smart enough to figure out how to use it)

  3. Backup to an external storage all your data before continuing.(reminder: are you sure you saved the license as explained in step 7, to a safe place? To a external drive, to another computer? If you are sure, than go on with step 9)

  4. Now restart your laptop, and enter your bios settings. Go to the boot settings, and set the computer to boot in UEFI only. Not both, not UEFI first, or legacy, BUT UEFI only. Save and restart.

  5. Press f12 (or the corresponding key for your machine) to choose the boot device and chose to start from the USB thumb drive with your windows 7 pro 64 bit.

  6. If everything is done correctly, your computer will boot from the USB.

  7. Follow the wizard and choose a custom install, not upgrade. At the disk partition window delete all the partition you see there until you have only one unallocated space.

  8. Select it, and click next to install windows, without making partition in this point. The installer will create a GPT partition table not a MBR since the USB booted in UEFI mode.

  9. Immediately after the first restart remove your USB thumb, and the installation will continue from the HDD. Wait until installation finishes.

  10. When you will be finally on your desktop, on the installed OS plug your USB go to the ABR folder and click on restore.exe. It will restore your license and your copy of windows will be activated.

  11. Now you can go in computer management/disk management and shrink the HDD to create your partitioning scheme. Make sure to leave enough space to your windows os. (30gb or more for extra programs you will install at your choice)

  12. Download from lenovo.com thinkvantage system update and update your system. Windows update too can install all the necessary drivers, if you need only basic drivers support.

From now on, you can install windows 7 in UEFI mode with your special USB without changing your partition scheme anymore. If you have a data partition beside your os partition (see the example above), when you reinstall the system using your USB thumb drive, at the disk partition window chose the partition where windows is installed, delete it, and reinstall windows to the unformatted area. Your partition with your data will be intact and the installation will automatically mount your data partition to the system. And, all the scope of this procedure, you will always have a pure UEFI installation of the system, with all its benefits.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .