Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-02-2006, 05:42 AM   #1
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Rep: Reputation: 30
I've broken grub

I have kanotix installed to hard drive and it came with grub-gfxboot installed.
It's been working fine but on a whim I decided to remove it and install
regular grub so I could use my custom grubsplash.
I removed gfxboot first, then removed my /boot/grub directory then installed grub and did update-grub to let it generate a menu.lst.
I then edited menu.lst and ran grub-install.
After rebooting I am presented with a grub prompt and nothing else. I don't know what I've done wrong since I've removed lilo and installed grub the same way before with no problems.
I installed grub to my root partiton where grub-gfxboot was installed and it is chainloaded from another primary grub on the mbr.
I have been through my menu.lst very carefully and can't find any problems with that.
Could grub-gfxboot have left something behind that is interfering?

Another thing, this happened with both gfboot and now with regular grub - when I do update-grub it keeps removing my other custom entries
which it doesn't do on any other distros.

Last edited by shame; 05-02-2006 at 05:44 AM.
Old 05-02-2006, 06:05 AM   #2
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
OK, you have replaced the copy of GRUB package installed by kanotix by another GRUB package you got from elsewhere. Hmm.. doesn't make sense why would you do so. As far as installing your own grubsplash is concerned, you could do it without uninstalling the distro's GRUB package ! All you needed was the gfxboot package. Even with currently installed GRUB, you are going to need gfxboot package !

You need to understand and differentiate between GRUB package install and GRUB bootloader install. What you installed was a GRUB package install followed by re-installation of GRUB boot loader which, gets written to the MBR and boot (or other) partition.

If booting displays GRUB prompt and there're no error messages, GRUB probably cannot find menu.lst. Are you sure, you do have menu.lst under /boot/grub/ directory and its contents are correct.

If you are not sure, post the contents of /boot/grub/menu.lst and the out put of command "fdisk -l /dev/hda". Make sure, you replace hda with whatever disk device file you have/are using.

EDIT: I missed a word here and there while reading thru' your post, the first time. You say, you uninstalled a GRUB with gfxboot support and replaced it with a GRUB without gfxboot ??!!&^&*(*& And, yet wanna use a custom grubsplash ??! gfxboot is what GRUB uses to display grubsplash !! Er.. !!#$

Last edited by kevkim55; 05-02-2006 at 06:09 AM.
Old 05-02-2006, 07:19 AM   #3
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Original Poster
Rep: Reputation: 30
I removed the kanotix grub-gfxboot and replaced it with the debian sid regular grub (kanotix is basically debian sid once installed).
The custom grubsplash I'm wanting to use is a .xpm.gz image in the grub directory and is different thing from the splash used in grub-gfxboot and, according to a script I used to check compatiblity with the grubsplash, gfxboot isn't compatible with .xpm.gz grubsplash.
I also wanted to try regular grub to see if that was the reason my custom entries kept being removed.
Incidentally, I've worked out why they were being removed now so that's no longer an issue.

I have suse's grub installed to the mbr and use chainloader entries in that to point to other distros, which have their grubs installed to their own root partitions, this is so I don't have to keep updating suse's grub everytime a kernel is upgraded on one of the other distros.

My menu.lst

default		0
timeout		1

# Pretty colours
color cyan/blue white/blue


# kopt=root=/dev/hda6 ro
# groot=(hd0,5)

# alternative=true
# lockalternative=false

# defoptions=quiet splash vga=795
# altoptions=(recovery mode) single

# howmany=all

# memtest86=false

## ## End Default Options ##


title		Debian GNU/Linux, kernel 2.6.16-1-k7
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.16-1-k7 root=/dev/hda6 ro quiet splash vga=795 
initrd		/boot/initrd.img-2.6.16-1-k7

title		Debian GNU/Linux, kernel 2.6.16-1-686
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.16-1-686 root=/dev/hda6 ro quiet splash vga=795
initrd		/boot/initrd.img-2.6.16-1-686

I've copied the actual boot options from this menu.lst into suse's grub temporarily and it boots fine so there is no problem with those.

Last edited by shame; 05-02-2006 at 07:34 AM.


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
Broken GRUB on primary HDD? d4w50n Linux - Newbie 1 04-09-2006 12:04 PM
can some fc4 user mail his grub.conf and tell me how can i make this grub read this amolgupta Linux - Software 1 03-15-2006 04:04 AM
GRUB Loading stage2 Error, hard-disk broken ??? jdevitt Fedora 5 09-15-2005 08:54 AM
broken grub gravesb Linux - Software 5 06-13-2005 11:19 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 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
Open Source Consulting | Domain Registration