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?
Ubuntu – How to remove Windows from grub menu and boot straight to ubuntu
bootgrub2
Related Solutions
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
sudo update-grub
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 Troubleshoot
->Advanced Options
->Command Prompt
. Enter these commands:
diskpart
list disk
(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
list partition
select partition x
(Where 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.)
assign letter=u
(U
is the drive letter you wish to assign to the EFI partition.)
exit
(This will exit the diskpart
command. You will still be on the command prompt window.)
u:
(Take you to the U: drive.)
dir
(Shows list of directories in drive U: - you must see a directory named efi
.)
cd efi
dir
(Shows list of directories in folder efi
- you must see a directory named ubuntu
.)
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
cd c:\windows\system32
Bootrec/fixmbr
Bootrec/fixboot
exit
Done. Now the command prompt window is closed. Now choose 'Turn off your PC' and then restart. It should be back normal.
Best Answer
In the Ubuntu system, run this command in the Terminal:
That will rebuild the list of available operating systems, and Windows will no longer appear on the list.
There still may be a list, since you can choose between different kernel versions, or to test your system's RAM.
So if you find you still don't like the menu, you can make it appear for a shorter time.
You can even make it appear for no time at all, by setting the timeout to
0
. Then, if you find you do need to access it, hold down Shift while booting, and it will appear.