Grub error 2 on intrepid

Asked by wsonar

I'm getting an error 2 on boot from grub

Device Boot Start End Blocks Id System
/dev/sda1 * 63 40965749 20482843+ 7 HPFS/NTFS
/dev/sda2 40966144 71686143 15360000 7 HPFS/NTFS
/dev/sda4 71698095 136761344 32531625 5 Extended
/dev/sda5 71698158 78172289 3237066 82 Linux swap / Solaris
/dev/sda6 78172353 136761344 29294496 83 Linux

Things work fine till I try to install GFXBOOT.

Curently I can only boot up using the super grub CD

I try going in and fixing grub

grub> root (hd0,5)

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>

Everything looks good but when I reboot I still have the error 2

Anybody got a fix for this?

I've tried update-grub and completely removing grub and reinstalling grub

worked fine before I tried gfxboot

I used a super grub cd I found and made

It lets me go through some steps then it actually brings me to my grub and

I can choose any of the os's and go into them

I'm in my actuall install of ubuntu intredpid kernal version 2.6.27-11

when I run the grub setup

I had tried using grub-gfxboot_0.97-5_i386.deb

since then have uninstalled and reinstalled grub through synaptic package manager

as well as the terminal

I crashed my grub 3 times tring to get the gfxboot to work before I was able to reinstall grub the do the setup and it brought me back

now it dosen't work for some reason

I've seen where people say error 2 on before the grub menu is related to some HD setting in the bios sometimes but it was working before

GFXBOOT has not worked on intrepid

It did work on this same laptop on Gusty

Question information

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

I can use the super grub cd and boot to any OS but when I go into ubuntu and try updating or setting up grub it looks like it goes through with no problem but still come up to error 2

Revision history for this message
Tom (tom6) said :
#2

Have you been able to edit the "menu.lst" file?

Grub counts from 0 where linux counts from 1 so sda6 will be "hd(0,5)". One problem you might be suffering from is that Operating Systems work much better in Primary partitions rather than inside a Logical Partition inside an Extended Partition. This is also the case for the linux-swap but perhaps not quite so important.

Also Ubuntu prefers being on an ext3 partition rather than hpfs/ntfs and i'm not sure what it means by "Linux" on that line, there are too many different things it could mean. If that's where Ubuntu is going to be then try to make it an ext3 but make sure you save your data elsewhere first as reformatting the partition will destroy all the data on that partition.

The linux-swap / Solaris also sounds a bit non-standard. It looks like a very large partition if it's just a swap partition and if it's running Solaris then presumably the swap space is a swap-file inside Solaris which seems unlikely to be much use to Ubuntu. It would be better for Ubuntu to have a proper linux-swap partition of about 2xRam size. I think Solaris could also use the same partition as swap space and then might not need it's swap-file. If this is running the Solaris OS then it'd be better to try getting that onto a Primary Partition and out of the Extended Partition too - that should improve it's performance too :)

It looks like most of the partitioning was done through a Windows Partitioner as they often create these sort of problems.

Good luck sorting this. Regards from
Tom :)

Revision history for this message
wsonar (wsonar) said :
#3

well it would be pretty easy to just boot up delete my linux partiotns and reinstall I was just wondering why it wasn't working

it was working fine before installing gfxboot

I had installed WindowsXP then WindowsVista, then ubuntu,
sized my ubuntu partion with the ubuntu installer which defaulted to ext2 I noticed later and wondere why it wasn't ext3

every OS booted fine

I installed GFXboot it didn't work so I uninstalled it and reinstalled grub

that worked the first time

then I tried the gfxboot to see if I could get it to work again but it still didn't work

but this time when uninstalling grub and reinstalling the setup goes through fine

but when I reboot I get the error 2....but with the supergrub it will find my /boot/grub/menu.lst and I can choose any os and boot up

I guess I can just delete the linux and reinstall it I can see my other partitions in it so I can copy my data to them
but there's alot of updates after a new install I was trying to avoid that

besides my swap being large I really don't see a problem with my setup and wonder why I can't get gfxboot to workit had worked before with gutsy

it's not really a swap / Solaris that's just how fdisk reads it it's just a large swap

If I delete my linux and make it an ext3 instead of ext2 will ythat make any diffrence in making gfxboot work?

like I said I just don't see how it's a problem when the grub setup goes through no problem and I can boot to my enu.lst using the super grub cd?

Revision history for this message
Tom (tom6) said :
#4

The swap should be fine and ext2 is fine. Ext3 is a bit better but 2 is plenty good enough. It does sound more like a grub problem. My connection is really slow so i couldn't dig around for you but here's where i would have startd looking up error codes in grub
http://www.gnu.org/software/grub/

Sorry, hopefully someone else has a better answer
Good luck and regards from
Tom :)

Revision history for this message
wsonar (wsonar) said :
#5

So I ended up just coping over the little data I had to the ntfs part this was a pretty fresh install of all os's it apears it was ext3 after all

I then booted to the ubuntu 8.04 cd deleted the linux and swap made the sawp 2 gig and the rest for the linux which was ext 3 and primary

after the install grub was back and booted into ubuntu 8.04

before getting any update

I followed the how to for the gfxboot here

http://abhay-techzone.blogspot.com/2007/10/howto-have-grub-like-suse-on-ubuntu.html

rebooted and wolla I had my cool themed bootloader

I tested booting into each os

I then got all critical security updates

after testing was still good then got recomended updates

Revision history for this message
Tom (tom6) said :
#6

Brilliant, nicely done. Good to hear you fixed it. Welcome to Ubuntu :)

Thanks and regards from
Tom :)