Can't access since last updates ver 10.04

Asked by David P. Mitchell

I updated to ver 10.04 in April 2010. All has been well till the last update installed about two weeks ago. I have a dual boot for Win XP and Ubuntu 10.04. When I now select Ubuntu it comes with GNU GRUB version 1.97~beta4 at the top of the screen instead of the next screen which asked for the type of Ubuntu, i.e. normal, safe etc. I now see the above on the screen and a heading of "[Minimal BASH-like line editing supported. (Then how to get a help screen and other stuff.)] And a prompt of "sh:grub>_(underscore blinking). Do I need to reinstall or is there a way of removing the last list of updates or do you have another idea.
I appreciate your help, I am not well aquainted with Ubuntu but like it far better.

Thank you,
David P. Mitchell
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Goh Lip
Solved:
Last query:
Last reply:
Revision history for this message
Goh Lip (gohlip) said :
#1

David, in your update, you have not done completely the conversion from grub-legacy to grub2, but try out the following steps when you reached the "sh:grub>" prompt.
sh:grub>search -f /vmlinuz
This will give you an output in hd0,x and lets say, as an example, hd0,5.
then type the following
sh:grub>linux (hd0,5)/vmlinuz root=/dev/sda5 ro
sh:grub>initrd (hd0,5)/initrd.img
sh:grub>boot

note: sda5 is in example above, please modify to whatever your hd0,x is in output
When booted up, at terminal, install grub2 completely by
sudo install grub-pc

follow further instructions completely and carefully including installing to 'sda'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Boot to liveCD and reinstall grub

Revision history for this message
Goh Lip (gohlip) said :
#3

That can also work but will be much tougher and he needs to chroot and that is dangerous for a new user. But perhaps you could show him step by step how to do that instead of just referencing the web page or just telling him to "Boot to liveCD and reinstall grub"?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Reinstalling GRUB 2
There may be times when a user needs to either move or reinstall a GRUB 2 installation. GRUB 2 needs to be reinstalled when a user is presented with a blank screen with only the word "GRUB", no prompt, and no ability to enter commands. This often happens when the MBR of the booting device is altered and GRUB 2 is removed, such as when Windows is installed after Ubuntu. Additionally, if a user cannot boot into an operating system at all, even using the rescue mode mode, a complete reinstallation of GRUB 2 may be necessary.

Reinstalling from LiveCD
If you cannot boot from GRUB 2 review the section Boot Problems and Rescue Mode. If a reinstall becomes necessary follow these instructions. Two methods are presented; both require booting from a LiveCD (Ubuntu 9.10, Karmic Koala or later version). If the first method does not work, follow the second method, which is more complex and contains more options and instructions.

SIMPLEST - Copy GRUB 2 Files from the LiveCD
This is a quick and simple method of restoring a broken system's GRUB 2 files. The terminal is used for entering commands and the user must know the device name/partition of the installed system (sda1, sdb5, etc). The problem partition is located and mounted from the LiveCD. The files are then copied from the LiveCD libraries to the proper locations and MBR. It requires the least steps and fewer command line entries than the following methods.

Boot to the LiveCD Desktop (Ubuntu 9.10 or later).
Open a terminal by selecting Applications, Accessories, Terminal from the menu bar.
Determine the partition with the Ubuntu installation. The fdisk option "-l" is a lowercase "L".
sudo fdisk -l
If the user isn't sure of the partition, look for one of the appropriate size or formatting.
Running sudo blkid may provide more information to help locate the proper partition, especially if the partitions are labeled. The device/drive is designated by sdX, with X being the device designation. sda is the first device, sdb is the second, etc. For most users the MBR will be installed to sda, the first drive on their system. The partition is designated by the Y. The first partition is 1, the second is 2. Note the devices and partitions are counted differently.
Mount the partition containing the Ubuntu installation.
sudo mount /dev/sdXY /mnt
Example: sudo mount /dev/sda1 Note: If the user has a separate /boot partition, this must be mounted to /mnt/boot
Run the grub-install command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.
sudo grub-install --root-directory=/mnt/ /dev/sdX
Example: sudo grub-install --root-directory=/mnt/ /dev/sda
Reboot
Refresh the GRUB 2 menu with sudo update-grub
If the user wishes to explore why the system failed, refer to Post-Restoration Commands section below.

Revision history for this message
Goh Lip (gohlip) said :
#5

Good one, parsnip; glad to see your message. But of course, I am biased towards my way. Many ways to skin a cat, as they say. Take care.

To David, after all he's the one who needs help, please follow what you deem comfortable, you won't offend any of us, I think.... but if you need further help, just yell.

Revision history for this message
Goh Lip (gohlip) said :
#6

Good one, parsnip; glad to see your message. But of course, I am biased towards my way. Many ways to skin a cat, as they say. Take care.

To David, after all he's the one who needs help, please follow what you deem comfortable, you won't offend any of us, I think.... but if you need further help, just yell.

Revision history for this message
David P. Mitchell (dave-mitchell-juno) said :
#7

OK, followed your advice and don't know that I got the response I needed.
On the "search -f /vmlinuz" the response was "loop 0". Is this the number I install in the "hd0.x" for x?
I tried that and got "error:unknown filesystem.

I really appreciate your help.

Dave Mitchell

Your question #116576 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/116576

    Status: Open => Answered

Goh Lip proposed the following answer:
David, in your update, you have not done completely the conversion from grub-legacy to
grub2, but try out the following steps when you reached the "sh:grub>"
prompt.
sh:grub>search -f /vmlinuz
This will give you an output in hd0,x and lets say, as an example, hd0,5.
then type the following
sh:grub>linux (hd0,5)/vmlinuz root=/dev/sda5 ro
sh:grub>initrd (hd0,5)/initrd.img
sh:grub>boot

note: sda5 is in example above, please modify to whatever your hd0,x is in output
When booted up, at terminal, install grub2 completely by
sudo install grub-pc

follow further instructions completely and carefully including
installing to 'sda'

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/116576/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/116576

You received this question notification because you are a direct
subscriber of the question.
____________________________________________________________
Penny Stock Jumping 2000%
Sign up to the #1 voted penny stock newsletter for free today!
http://thirdpartyoffers.juno.com/TGL3131/4c3657fd9359b1e3f78st06duc

Revision history for this message
David P. Mitchell (dave-mitchell-juno) said :
#8

Ok, the previous question which you did not answer was:
On the "search -f /vmlinuz" the response was "loop 0". Is this the
number I install in the "hd0.x" for x?

What I need to know is how do I get the .x portion for hd0?

Either I'm missing something, or you need to remember that I'm newbie in Linux.
command line entries are no problem but please do not leave any holes.

Thanks,
____________________________________________________________
Free Credit Score
A bad credit score is below 598. Click here to see yours for $0. Checking won't affect your score. By Experian&#174
http://thirdpartyoffers.juno.com/TGL3131/4c37c203cc0ac209e0est06duc

Revision history for this message
Best Goh Lip (gohlip) said :
#9

David, frankly, I do not know what the 'loop 0' is. If you are using livecd instead of the normal install, you may get this type of output. But then, you said you updated to 10.04 and all is well until some updates kick in. So I can only suggest you reinstall again using the 10.04 install cd.

Revision history for this message
David P. Mitchell (dave-mitchell-juno) said :
#10

Yeah, I kind of figured that out. Oh well, I still like Ubuntu better than Blinders, er, I mean winders.

Thanks for your help.