LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-03-2010, 01:56 AM   #1
AllShk
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Rep: Reputation: 0
Cannot boot ubuntu, stuck in GRUB line-editing


Hey, guys!
After my last update in my ubuntu, I had a problem. (As almost everytime that I update it)
When I select to boot ubuntu, it doesn't work.
It shows something like:

"GNU GRUB version 1.97"beta 4
[ Minimal BASH-like line editing is supported.For the first word, TAB lists possible command completions.
Anywhere else TAB lists possible device/file completions]
sh:grub> "

And I don't know how to make it work.
I tried to follow this tutorial:
https://help.ubuntu.com/community/Grub2#Rescue%20Mode
but in the line "insmod /boot/grub/linux.mod" I got an error message saying that the file couldn't be found. And if I skip it, when I type "boot" the system reboots and comes to the same place I was before.
I've also tried to set another partitions like
(hd0, 1), (hd0,2) in the line "set prefix ..." but the same error occured

Can anyone help me?
 
Old 09-03-2010, 02:12 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,849

Rep: Reputation: Disabled
Hi Allshk,
Is there any particular reason you want to edit the grub menu item rather than simply selecting a menu item to boot into? I'm not quite sure what you're trying to do.
cheers,
jdk
 
Old 09-03-2010, 02:22 AM   #3
AllShk
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
hey, buddy...
thanks for answering

well... :S
I guess not.
I just wanted to make it boot normally, like it was before.
you know, graphic interface and stuff...
So how do I just boot into it?

I thought the update manager failed to download some stuff and the installation got corrupted
 
Old 09-03-2010, 02:30 AM   #4
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 866

Rep: Reputation: 110Reputation: 110
What Version of ubuntu are you using?
What version of grub is installed or are you sure grub2 is installed?
If you have grub please post the /boot/grub/menu.lst
If you have grub2 post /boot/grub/grub.cfg.
What hard drives and/or partitioning is your system installed. Ex /dev/sda1.
Post the UUID of your partition(s) your system is installed on. You can run
Code:
sudo vol_id partition
EX: sudo vol_id /dev/sda4

You can use your live CD to boot your system since grub isn't working.

I don't know much about grub2 if you have that installed but I can look into it.
 
Old 09-03-2010, 03:44 AM   #5
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 55
Agreed, jmc1987. The OP needs to tell us what version of Ubuntu they have installed and, more specifically, what version of GRUB they have installed.
 
Old 09-04-2010, 08:17 AM   #6
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
Hi Allshk,

Had you instlled ubuntu using wubi ? If yes please note that the steps to restore grub will be different, which are mentioned specifically in the page that you have refered to. Make sure you use (loop0) instead of (hd0,0).

bas
 
Old 09-08-2010, 02:37 PM   #7
AllShk
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Hey, guys!
Thank you for answering. I'm sorry for the delay.
Well...

Quote:
Originally Posted by bsat View Post
Hi Allshk,

Had you instlled ubuntu using wubi ? If yes please note that the steps to restore grub will be different, which are mentioned specifically in the page that you have refered to. Make sure you use (loop0) instead of (hd0,0).

bas
Yes, I had installed ubuntu using wubi, but I noticed these different steps and followed them correctly. Thanks.


Quote:
Originally Posted by jmc1987 View Post
What Version of ubuntu are you using?
What version of grub is installed or are you sure grub2 is installed?
If you have grub please post the /boot/grub/menu.lst
If you have grub2 post /boot/grub/grub.cfg.
What hard drives and/or partitioning is your system installed. Ex /dev/sda1.
Post the UUID of your partition(s) your system is installed on. You can run
Code:
sudo vol_id partition
EX: sudo vol_id /dev/sda4

You can use your live CD to boot your system since grub isn't working.

I don't know much about grub2 if you have that installed but I can look into it.
Hey, bro...
I'm not sure about some answers. Anyway...

I think ubuntu version was 9.10 before my updating attempt.
I don't know how to tell you the grub version, cause these files menu.lst, grub.cfg don't seem to be found. If it helps, the title is "GNU GRUB version 1.97"beta 4")
about the partitioning, I don't know cause I can't run these commands in this "grub line editing".
ls returns:
(loop0) hd0 hd(0,1) hd(0,2) hd(0,3)

for additional information, I have a Dell Inspiron that comes with the Vista OS in the C: drive and a restoring partition (E. I've installed ubuntu using wubi and I didn't change system stuff... I didn't even know what grub was. The only thing I did was some updating.

sorry for the lack of information

how about it now? =/
 
Old 09-08-2010, 09:00 PM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,359

Rep: Reputation: 184Reputation: 184
What you type in should look similar to what is below. The partition number should match the disk partition number that windows is installed on. windows will be on C drive regardless of what disk partition number windows is installed on. Your windows system might be on partitions 2 or 3.
Quote:
1. ls

2. set prefix=(hd0,1)/boot/grub #note maybe (hd0,2) or (hd0,3)

3. set root=(loop0)

4. set

5. ls /boot

6. insmod /boot/grub/linux.mod

7. linux /vmlinuz root=/dev/sda1 loop=/ubuntu/disks/root.disk ro #note maybe sda2 or sda3 to match #2 above.

8. initrd /initrd.img

9. boot
When you get ubuntu booted running update-grub should fix the problem.

Last edited by colorpurple21859; 09-08-2010 at 09:16 PM.
 
Old 09-12-2010, 05:06 PM   #9
AllShk
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Hey, dude!

Thanks for the tip.
I've tried again following your instructions

but the same problem occured
when I type "boot" the system goes back to the POST screen and then to the screen where you choose the OS to boot from (Vista or Ubuntu)

I think it happens because this line
6. insmod /boot/grub/linux.mod
returns: "error: file not found"

What am I supposed to do?

Format and reinstall the OS again? =/
 
Old 09-12-2010, 08:44 PM   #10
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,359

Rep: Reputation: 184Reputation: 184
here is a link to something you can try.
http://www.omaregan.com/?p=608
 
1 members found this post helpful.
Old 09-13-2010, 01:31 PM   #11
AllShk
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Wooow!
It worked perfectly!
Thank you, bro!

It couldn't be easier than that.
=]
 
Old 09-13-2010, 08:23 PM   #12
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,359

Rep: Reputation: 184Reputation: 184
glad it worked. please marked thread solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error of GRUB: Minimal BASH-like line editing is supported................. change_my_way2010 Linux - Newbie 18 01-12-2014 12:46 AM
Ubuntu 9.10 - Grub 2 editing dreamweaver547 Ubuntu 6 11-10-2009 03:54 PM
Stuck on grub prompt on boot Turner27 Ubuntu 1 03-26-2007 08:22 PM
First Ubuntu try: Stuck on Grub svar Ubuntu 4 06-14-2006 12:12 PM
mandrake 10 command line to gui boot, then stuck at boot with hour glass chris008 Linux - Laptop and Netbook 1 11-14-2004 06:29 PM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration