I have removed Windows 7 using GParted, and want my computer to boot straight into Ubuntu, but I still get the dual boot screen, how can I fix this?
Got it working eventuall. I'm sure that the below involves a lot of unnecessary steps but it worked and maybe someone can point out what's not needed?
sudo mount /dev/sda5 /mnt
sudo mount --bind /dev /mnt/dev
sudo chroot /mnt
sudo grub-install /dev/sda
At this point, grub was loading but displaying the rescue prompt (error: no such partition)
sudo mkdir /media/sda5
sudo mount /dev/sda5 /media/sda5
sudo grub-install --root-directory=/media/sda5 /dev/sda
And it works!!
I have Surface Pro 1 with Windows 8.1. I resized the Windows partition and installed Ubuntu 13.10, but, like the person who posted the question (Steffen Christensen) I found the driver support very bad and WiFi always freeze my tablet .
So, I just formatted the Ubuntu partition, and could not remove Grub 2 boot loader. I did some research online and made this solution myself and fixed my tablet with it, and it is working great:
When tablet is powered off, put the Windows 8.1 Recovery USB drive in the USB port, hold down
volume down and
power for some seconds till it powers on. You'll see the Surface logo. It will take few minutes till the bios / UEFI menu starts.
Choose language and keyboard as English. Go to
Command Prompt. Enter these commands:
(If you have more than one physical disk, choose the disk with Windows installation on it. In my case, only one disk was in the list: disk 0.)
select disk 0
select partition x
x is the number of the partition listed by the list partition command. You must choose the partition with type marked as the System ( EFI partition ), which in my case was number 2.)
U is the drive letter you wish to assign to the EFI partition.)
(This will exit the
diskpart command. You will still be on the command prompt window.)
(Take you to the U: drive.)
(Shows list of directories in drive U: - you must see a directory named
(Shows list of directories in folder
efi - you must see a directory named
Now we must delete GRUB in its official/proper location
EFI/ubuntu/grubx64.efi for Ubuntu. If Secure Boot was active, deleting
EFI/ubuntu/shimx64.efi would be necessary instead. In fact, deleting the whole
EFI/ubuntu directory, or at least renaming it, would do the job in any case. We will delete the entire directory:
rd /s /q u:\efi\ubuntu
Done. Now the command prompt window is closed. Now choose 'Turn off your PC' and then restart. It should be back normal.