Sony VAIO with Insyde H2O EFI bios Ubuntu 12.04 Dual Boot

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

If you have a Sony VAIO laptop (it could be E series or S series), there is a strong chance that your laptop’s MOBO uses Insyde H2O EFI bios. Getting Ubuntu dual booting with Windows 7 is not as straight forward as it usually is for most systems. I won’t go in to the details of partitioning and installation of Ubuntu alongside Windows 7. The procedure is straightforward, except that you should be careful to install Grub bootloader in /dev/sda3

The step by step procedure to achieve dual boot with Windows 7 is:

1. Install Ubuntu 12.04 from USB alongside Win 7 choosing the boot partition /dev/sda3 (in most likelihood). To confirm this you can take a look at the partition table of your laptop by booting using a Ubuntu Live CD/USB and then running GParted. It might look somewhat like this:

Check the flags column to find out your boot partition.

2. Now we mount /dev/sda3 from the live session. To do so open a terminal and do the following

sudo mkdir /media/fat32
sudo mount /dev/sda3 /media/fat32

Now the boot partition is mounted.

3. Copy EFI/ubuntu/grubx64.efi to EFI/Boot/ followed by renaming EFI/Boot/bootx64.efi to bootx64.efi.old and then renaming EFI/Boot/grubx64.efi to bootx64.efi

You can achieve these by doing:

cd /media/fat32
sudo cp EFI/ubuntu/grubx64.efi EFI/Boot/
cd EFI/Boot
sudo mv bootx64.efi bootx64.efi.old
sudo mv grubx64.efi bootx64.efi

On most machines this should be enough and if you reboot you would get the grub menu, but it won’t have a Windows 7 entry, which we would create by booting in to Ubuntu. However, on my laptop this was not enough and I needed to make another change in EFI/Microsoft folder as given below

cd ../ sudo mv Microsoft/boot/bootmgfw.efi Microsoft/boot/bootmgfw.efi.old
sudo cp ubuntu/grubx64.efi Microsoft/boot/bootmgfw.efi

now reboot.

4. Now from the Grub menu that you see, boot into Ubuntu and then using text editor of your choice, edit the following file to add an Entry for Windows 7.

sudo gedit /etc/grub.d/40_custom
menuentry "Windows 7" {
set root='(hd0,gpt3)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi.old

Save the file and on reboot you would get a new entry for Windows, which would boot Win 7 for you.

You might also like

Best NiMH Rechargeable Batteries: Sanyo Eneloop I have used...
Fixed Grub error: “symbol not found: ‘grub_efi_secure_boot'” If you have...
Why Should You Build Your Own PC? Recently I...
TV Episode / Media Renamer for Linux (Ubuntu 10.04) If you download...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

7 Comments on “Sony VAIO with Insyde H2O EFI bios Ubuntu 12.04 Dual Boot”

  • Wim Vander Schelden wrote on 10 September, 2012, 7:26

    Sweet, worked perfectly for me! Thanks!

    You wouldn’t also have any idea about how to get that touchpad to work as it should? (right click, two finger scrolling, etc)

    Like or Dislike: Thumb up 0 Thumb down 0


    lifehacker Reply:

    @Wim Vander Schelden, I haven’t yet figuered out how to get two finger scrolling, but right click works fine with two finger tap and scrolling works fine if you use single finger near right edge of the touchpad.

    Like or Dislike: Thumb up 0 Thumb down 0


  • Artisanoeu wrote on 29 February, 2020, 6:35

    удалите,пожалуйста! .

    Like or Dislike: Thumb up 0 Thumb down 0


  • Milwaukeellu wrote on 2 November, 2020, 15:46

    удалите,пожалуйста! .

    Like or Dislike: Thumb up 0 Thumb down 0


  • Leupoldspp wrote on 13 December, 2020, 8:39

    The most common form

    Like or Dislike: Thumb up 0 Thumb down 0


  • Keypadadry wrote on 7 January, 2021, 13:57

    Many calligraphers have acquired

    Like or Dislike: Thumb up 0 Thumb down 0


  • Flukeoev wrote on 3 February, 2021, 11:22

    (palimpsests). In the XIII-XV centuries in

    Like or Dislike: Thumb up 0 Thumb down 0


Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!


Copyright © 2021 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes