Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-24-2010, 05:28 AM   #1
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133
Blog Entries: 1

Rep: Reputation: 18
Trouble with Grub 2 on Ubuntu 10.04 install

I have been asked to install Ubuntu 10.04 onto a friends machine but appear to be having some very basic problems. I think it may be related to the Grub 2. I do not consider myself a newbie but I am very inexperienced with Grub 2. I know a lot of the tricks of Grub Legacy, but this is driving me daft.

It should be simple; a new hard drive, 500GB SATA, has been put into the computer, there are no other hard disks installed and the drive went in as empty. Ubuntu booted fine into live CD mode without any issues, all of the hardware appeared to be working properly. I then installed it onto the machine, taking up the entire disk as per my friends request.

When the installation finsihed everything seemed as normal, but upon startup I am greeted with a grub rescue prompt.

Upon a bit of internet research I discovered that it may be simply that the 500GB is simply too big and that a seperate partition should be made for /boot This was done however now I do not even get to the grub rescue prompt after checking the DVD drive for bootable media the computer simply sits at a blinking cursor.

I have made sure that grub 2 was installed and setup to look for the /boot partition but these all check out and I am still stuck with the same problem.

I am considering simply installing 8.04 LTS and then updating and that should solve my issue of Grub 2, but I know that is avoiding the problem and I will need to learn about Grub 2 at some point.
Old 06-24-2010, 06:40 AM   #2
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Normally GrUB2 is installed in MBR ,
What is the contains of grub.cfg , as you know you'll find it /boot/grub/grub.cfg
Is grub.cfg correct ?
And does it exist ?
Old 06-24-2010, 07:33 AM   #3
Fred Caro
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166

I too will have to learn about G2 and I am at a loss to see the advantages for a pc user.
Perhaps, a simple solution (if not already tried) would be to use the cd/dvd to boot from the first hard drive? If it will boot to the command line update it from there; is it a beta version?

Old 06-24-2010, 07:41 AM   #4
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
By default in Lucid, you will not see the grub prompt if there is only one OS. You can change the behavior by editing /etc/default/grub file. You should defer from editing grub.cfg file as much as possible.
Old 06-24-2010, 08:00 AM   #5
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Come on guys, Grub2 can boot to the end of a 2TB disk. I tried it on both MSdos and gpt disks with the maximum 128 partitions.

Grub1 may have a problem if asked to boot a partition at about 1.2TB location where it will report "Number of cylinders exceeds that supported by the Bios".

500Gb is fine for both Grub.

If you get a Grubrescue then the partition holding core.img could not be linked to the MBR.

The normal cure

(1) Boot up the Ubuntu as a Live CD and check the partition where it has been installed by command
fdisk -l
(2) Say the partition is /dev/sda1 then make a mounting point, mount /dev/sda1 and do a grub-install
mkdir /mnt/sda1
ls /mnt/sda1/boot/grub
mount /dev/sda1 /mnt/sda1
mount --bind /dev  /mnt/sda1/dev
grub-install --root-directory=/mnt/sda1 /dev/sda
The sda1 is the correct partition if it has Grub2 system files containing many files including core.img

Last edited by saikee; 06-26-2010 at 05:26 PM.
Old 06-24-2010, 08:08 AM   #6
jone kim
Registered: Apr 2010
Posts: 185

Rep: Reputation: 16
refer to this site

see it;

I hope it will help you.
Old 06-24-2010, 05:45 PM   #7
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
GRUB2 works fine with 500Mb disk. I have several such installations.

From the GRUB2 rescue prompt what is the output of:
ls /grub
cat /grub/grub.cfg
Old 06-26-2010, 04:45 PM   #8
Registered: Jan 2009
Location: Isle of Lewis
Distribution: Gentoo, Crunchbang (XFCE)
Posts: 133
Blog Entries: 1

Original Poster
Rep: Reputation: 18
Thanks everybody for your help. Saikee: reinstalling grub2 from the liveCD environment did the trick, however using the Ubuntu liveCD in the code one of your lines needed to be altered from:
bind /dev//mnt/sda1/dev
mount --bind /dev/ /mnt/sda1/dev
This at least allowed me to boot into the grub menu but I was then faced with another problem. One selecting Ubuntu I was greeted with the message:
error: no such device: xxxxxxxxxxxxxxxx
Having searched a variety of forums via Google a solution that worked for me was found here

I needed to remove the search line from grub.cfg , once again thanks to everybody for their help, I hope that this will also help other with similar problems
Old 06-26-2010, 05:27 PM   #9
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112

Glad you got it sorted.

Yep it was a mistake on the bind statement. Thanks for point it out. I have since updated my post.


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
Trouble with Ubuntu, fdisk & grub roro1993 Linux - Newbie 8 02-29-2008 12:53 PM
trouble dual booting Ubuntu and Fedora Core 4 with GRUB. bgryderclock Linux - Software 5 04-04-2007 12:46 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
trouble install boot loader grub or lilo tilley Linux - Software 10 10-24-2003 04:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 AM.

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