Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Can not boot: no such partition. USB will not boot either. Stuck in gr

linux grub repair boot

Best Answer Linux Loser , 11 January 2018 - 02:33 AM

Okay, I toiled over my laptop and I found a solution! I entered ls at the grub rescue> prompt and went through the list to see where the file system was located at. What I typed to do this... Go to the full post »


  • Please log in to reply

#1
Linux Loser

Linux Loser

    New Member

  • Member
  • Pip
  • 8 posts

Message:

 

error: no such partition. Entering rescue mode ...

 

I entered the command ls and went through the list . Two of then  gave the result Filesystem is ext2. Neither of them worked.

 

prefix= (hd0,msdos6)/boot/grub

root= hd0,msdos6

set boot=(hd0,msdos6)

set prefix=(hd0,msdos6)/boot/grub

insmod normal

 

no such partition grub ./ ../ lost+found/ user/

 

Anyway, I can not boot from a USB either.

 

I have Linux LXLE installed as my main OS (sda 1, 2, and 5). I put Linux KDE Neon on sda7 and sda8. I Deleted KDE Neon using gparted, and now here I am with no OS.

 

I need the computer for studying, although all my notes are on an external HD, lucky for me. I did that much right.

 

Any way I need help because I am fairly clueless.


  • 0

Advertisements


#2
Linux Loser

Linux Loser

    New Member

  • Topic Starter
  • Member
  • Pip
  • 8 posts
✓  Best Answer

Okay, I toiled over my laptop and I found a solution!

 

I entered ls at the grub rescue> prompt and went through the list to see where the file system was located at. What I typed to do this was:
ls
ls (hd0,msdos1)
File system is
ext2
set boot=(hd0,msdos1)
set prefix=(
hd0,msdos1)/boot/grub
insmod normal
ls (
hd0,msdos1)/
Error: no such partition.
hd0,msdos1

Then:

ls (
hd0,msdos6) : File system is ext2.
set boot=(
hd0,msdos6)
set prefix=(
hd0,msdos6)/boot/grub
insmod normal
ls (
hd0,msdos6)/
no such partition grub ./ ../ lost+found/ user/



So in summary, there were two that the file system was ext2 but only one of them was the real deal.

So in rescue mode at the prompt, which looks like this ...

Error: no such partition.
Entering rescue mode...
grub rescue>


• Type ls and hit enter.
• You will now see many partitions which are present on your PC. [e.g. (hd0),(hd0,msdos1)(hd0,msdos2)]. Select the partition in which your linux distro is installed.
• Assuming that you have installed distro in 2nd option, enter this command set prefix= (hd0,msdos6)/boot/grub (Tip: - if you don’t remember the partition, try entering the command with every option. If wrong you will get an error message. If right you will proceed)
• After you've found the drive, enter this command insmod normal and then normal.

Now your PC/Laptop will reboot and you will be on your desktop. Now hit Ctrl+Alt+T and open terminal and type sudo update-grub and then sudo grub-install /dev/sda. You may be asked for your password, type it, the password will remain invisible and this is normal.

You may be asked for data connection if GRUB files are lost and the system wants to download them. Your error is fixed and distro is back. :spoton:


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP