Sony VAIO with Insyde H2O EFI bios Ubuntu 12.04 Dual Boot

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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.

If you found this useful, please consider leaving a comment or liking us on Facebook or following us on Twitter or subscribing to the RSS feed to have future articles delivered to your feed reader.

You might also like

$654: VAIO VPCP111KX/B 8-Inch Laptop (Black Amazon has...
$499: Sony Alpha NEX-3 Interchangeable Lens Digital Camera w/18-55mm Lens (Black)-14.2 Mpix Amazon offers...
$469: Sony Alpha NEX-3 Interchangeable Lens Digital Camera w/18-55mm Lens (Black)-14.2 Mpix Focus camera...
The Man from U.N.C.L.E.: The Complete Series (1964) Amazon offers...

About the Author

has written 1318 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.

2 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

    [Reply]

    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

    [Reply]

Write a Comment

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

*
Your Ad Here

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