So basically I had Windows 10 and Ubuntu 14.04 installed on a dual boot using grub. I decided I didn't want ubuntu any more so I deleted the Linux hard drive partitions out of my disk manger on windows 10. Now I rebooted my pc hoping to skip grub and go straight to windows but I'm stuck on this error. I have an HP Pavilion Desktop. I've tried booting into the HP system recovery and startup manager but it goes straight to this error on grub. The error is "Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions." Also whenever I type into the grub thing I get random letters instead of the ones I press. PLEASE HELP ME!!
Ubuntu – PC Stuck on GRUB screen
14.04dual-bootgrub2system-installation
Best Answer
I had the exact same problem. Stuck on the GRUB screen. No Windows, no Ubuntu! How I reached there? I wanted to remove Ubuntu, so I logged into Windows, deleted the Ubuntu partitions using
Disk Management
, then restarted my PC and got stuck at the GRUB screen.All solutions that involve a Windows Recovery Disk (
bootrec.exe
andbootsect.exe
) and those involving an Ubuntu live CD (boot-repair
andgrub-install
) did not work. Should I have runbootrec
orbootsect
before I had deleted the partitions and restarted? I don't know. But it was too late now! Not until I found this hidden comment that saved my day.I simply typed
exit
at the GRUB command prompt and was finally booted into Windows 10. As simple as that! If you want a "clean" boot into Windows, directly without having to typeexit
each time, then this is the procedure to follow. Once logged into Windows (after theexit
from the grub loader), runcmd.exe
with administrator privileges and use theDISKPART
utility. No recovery disk needed. The procedure is detailed here, which is copied from here. I also copy it briefly down here in case any links are lost in the future.cmd.exe
with administrator privileges.diskpart
utility.DISKPART>
prompt, type:list disk
thensel disk X
whereX
is the drive your boot files reside on. To make sure which drive to choose, you can open theDisk Management
GUI tool in Windows (since we are running full Windows version) not a rescue disk. InDisk Management
, you will find Disk 0 is usually the boot C drive, and hence the one to choose. You can also recognize it from within the command lineDISKPART>
from its size. In modern systems, it is usually the smaller (or the only) drive, the SSD one.list vol
to see all partitions (volumes) on the disk.sel vol Y
whereY
is theSystem
volume (you findSystem
written in theInfo
column in the previous listing). There is very good chance it is the onlyFAT32
partition. InDisk Management
, it is clearly marked asEFI System Partition
. You can match the size with the one that appears inDISKPART>
.assign letter=Z:
whereZ
is a free (unused) drive letter. This is all what we needDISKPART>
for.DISKPART>
. Now we're back to the Windows (DOS) prompt.cmd
prompt, type:Z:
and hit enter, where Z was the drive letter you just created.dir
to list the directories on this mounted EFI partition.EFI
.cd EFI
and thendir
to list the child directories insideEFI
.rmdir /S ubuntu
to delete the Ubuntu boot directory.