LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   grub rescue, no command woking (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/grub-rescue-no-command-woking-879326/)

oudekerk 05-07-2011 07:06 AM

grub rescue, no command woking
 
I use a Asus Eee PCnotebook.
I installed Ubuntu 11.04, but somehow corrupted the partition it is in. At restarting the pc I get the message:
error: no such partition
grub rescue>

However no command works. I have a USB stick to start Ubuntu with. But as I start the pc it does not work. Only he error message is showing.
How can I boot from my USB stick?

peter

EDDY1 05-07-2011 08:35 AM

Did grub fail to install? You can try installing using this tutorial.
https://help.ubuntu.com/community/Grub2#Reinstalling GRUB 2
I had the same problem with debian wheezy not wanting to install grub, went back into bios and enabled D2D and it wrote. I don't know if that made the difference but grub installed.

T3RM1NVT0R 05-07-2011 08:40 AM

@ Reply
 
Hi there,

You can give this a try:

1. At grub rescue> type root.

if

If it does not come up with any output which is quite rare

{
then the boot partition is gone or there is something terribly wrong with the boot partition. In that case you have use Ubuntu 11.04 live CD to re-create the boot partition. Just re-create the boot partition, use this documentation for reference: https://help.ubuntu.com/community/Cr...onAfterInstall make sure you create it on the same partition as it was before and make sure that you use less space this time for creating boot partition just to make sure that you do not over write any existing partition boundries.
}

else

{

2. If it show you any output say hd(0,0) or something like that it means your boot partition does exist.

3. At grub rescue> type root (hd0,0) (I have taken this from above output if the above output says hd(0,1) then use root (hd0,1) ). In short you have to use the output from the above command accordingly.

So your command will at grub rescue> root (hd0,0)

4. Type linux /boot/vmlinuz and then hit a tab it should auto complete the line then put a space and type root=/dev/hda1 (Here I am just giving an example where the root partition is located. You should know where your / partition is located and you have to put it accordingly. Suppose your root partition is on /dev/sdb2 then you have to use root=/dev/sdb2)

So you above line should look like this at the end:

grub rescue> linux /boot/vmlinuz-kernelversion root=/dev/hda1 ro quiet splash

5. Type initrd /boot/initrd and then hit a tab it should auto complete the line and should look like this:

grub rescue> initrd /boot/initrd.img-kernelversion-generic

6. Type boot at grub rescue.

grub rescue> boot

}

The above mentioned command should complete successfully if the information related to boot partition and root partitions are provided correctly.


All times are GMT -5. The time now is 02:27 AM.