LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-07-2011, 07:06 AM   #1
oudekerk
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
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
 
Old 05-07-2011, 08:35 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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.
 
Old 05-07-2011, 08:40 AM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ 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.

Last edited by T3RM1NVT0R; 05-07-2011 at 08:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB error: unknown filesystem, grub rescue magnecticfield Linux - Newbie 28 07-30-2013 03:35 AM
[SOLVED] Recurring Grub rescue mode after update-grub harris4got Linux - Software 6 04-23-2012 09:30 AM
Problem with GRUB: partition not found. Grub Rescue?? genoboss Ubuntu 117 01-04-2011 07:56 PM
Grub Rescue No such partition, No command except ls and set working amolgupta Linux - General 1 09-27-2010 06:08 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration