Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub..we hates it!! Yes we do!! Stuck.Again.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Visceral
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 232
Location: Austin, Texas. USA

PostPosted: Tue Nov 04, 2003 7:59 pm    Post subject: Grub..we hates it!! Yes we do!! Stuck.Again. Reply with quote

Like many others, I've completed my gentoo install only to run smack into the wall of pain that is GRUB.

hda is the 40 gig hard drive Windows is on.
hdb is the 120 gig hard drive I've installed gentoo on as such:

hdb1=Boot
hdb2=Swap
Hdb3=Root


Here's my config:

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=My Gentoo
root (hd1,0)
kernel (hd1,0)/boot/kernel-2.4.20 root=/dev/hdb3 vga=921

initrd (hd1,0)/boot/initrd-2.4.20

title=Windows XP
root (hd0,0)
chainloader (hd0,0)+1
:evil:

So when it boots up I get the word "Grub" on the screen and then everything hangs.

Thoughts?
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Tue Nov 04, 2003 8:09 pm    Post subject: Reply with quote

well... just a guess: shouldn't the splashimage be on hd(1,0)?

Markus
Back to top
View user's profile Send private message
HackerBunny
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2003
Posts: 92
Location: West Covina, Ca

PostPosted: Tue Nov 04, 2003 8:47 pm    Post subject: Reply with quote

True dat, the splash screen is installed in your Linux Boot Partition.
_________________
~I'm not using linux to be cool, I'm using it to show the people wanting to use linux that I'm cool and know their OS better then them.~
Back to top
View user's profile Send private message
Visceral
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 232
Location: Austin, Texas. USA

PostPosted: Tue Nov 04, 2003 8:56 pm    Post subject: Reply with quote

Arg. Ok, so I went back in and tried to fix the splash screen line in grub, however, when I try to nano into it there is nothing there..it's blank. So I create a new grub file but when I try to save it get an error message that says the file system is read only.

I'm really about to lose it. Does this mean I must start totally over from square one?
Back to top
View user's profile Send private message
ed0n
l33t
l33t


Joined: 23 Apr 2003
Posts: 638
Location: Prishtine/Kosove

PostPosted: Tue Nov 04, 2003 9:04 pm    Post subject: Reply with quote

Use lilo
Back to top
View user's profile Send private message
HackerBunny
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2003
Posts: 92
Location: West Covina, Ca

PostPosted: Tue Nov 04, 2003 9:08 pm    Post subject: Reply with quote

Go through your mounting step first.

Then log on the chroot step.

Then fix your grub.


Kinda like sex instructions.
_________________
~I'm not using linux to be cool, I'm using it to show the people wanting to use linux that I'm cool and know their OS better then them.~
Back to top
View user's profile Send private message
kamikaze_gerbil
n00b
n00b


Joined: 08 Feb 2003
Posts: 71
Location: Vancouver, Canada

PostPosted: Wed Nov 05, 2003 7:41 am    Post subject: Reply with quote

I see lots of people have grub problems but very few seem to have lilo probs. Just more people using grub? I've always used lilo and have never had problems.
Back to top
View user's profile Send private message
HackerBunny
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2003
Posts: 92
Location: West Covina, Ca

PostPosted: Thu Nov 06, 2003 1:53 am    Post subject: Reply with quote

The instructions say, Lilo = the tried and true Linux Bootloader. Grub is just an alternative.
_________________
~I'm not using linux to be cool, I'm using it to show the people wanting to use linux that I'm cool and know their OS better then them.~
Back to top
View user's profile Send private message
blight01
n00b
n00b


Joined: 26 Sep 2003
Posts: 24
Location: Belgium

PostPosted: Thu Nov 06, 2003 2:25 am    Post subject: Grub - last chance? Reply with quote

Hello...

I think you have to try again to reinstall a last time Grub before going definitely to Lilo...;-)

In fact, I had the same problem than you...I have reinstalled Grub several times before I realize that I missed something in the Grub installation.

Have you first mounted your windows partition before trying to install Grub?

You have to mount your windows partition first into your /boot directory and after, under the Grub prompt, tell it where is your boot partition (i.e., where you have just mounted your windows partition...In other words, in your /boot directory). This last command can be performed by the "chroot" command. After that, you can simply type the "setup" command, which is the one needed to install effectively Grub onto your MBR.

All this stuff above can be performed only when you have booted from your CD live and you have performed these following commands (see the installation guide):

mkdir /mnt/gentoo
# mount /dev/hdd3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/hdd1 /mnt/gentoo/boot
# mount -t proc proc /mnt/gentoo/proc
# chroot /mnt/gentoo /bin/bash
# env-update
Regenerating /etc/ld.so.cache...
# source /etc/profile


Ciao,

Blight.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Nov 06, 2003 3:07 am    Post subject: Reply with quote

Visceral wrote:
Arg. Ok, so I went back in and tried to fix the splash screen line in grub, however, when I try to nano into it there is nothing there..it's blank. So I create a new grub file but when I try to save it get an error message that says the file system is read only.

I'm really about to lose it. Does this mean I must start totally over from square one?


no. It means that you haven't mounted your /boot. You are seeing in the wrong place.

Boot into your liveCD again. Do your usual mount and chroot steps (mount /dev/hdb3 /mnt/gentoo;mount /dev/hdb1 /mnt/gentoo/boot;mount -t proc proc /mnt/gentoo/proc;chroot /mnt/gentoo /bin/bash).
cd /boot/grub. Then nano grub.conf and make changes.

grub is not as hard as it is made out to be. So, be patient, it will pay off.
Back to top
View user's profile Send private message
alligator421
Apprentice
Apprentice


Joined: 30 Jul 2003
Posts: 191

PostPosted: Thu Nov 06, 2003 3:31 am    Post subject: Reply with quote

Hi, it seems that I have exactly the same config as you.
gentoo is on hdb drive and
hdb1 = boot
hdb2 = swap
hdb3 = root

Here is my grub menu file for loading this excellent distro :)
Code:

 title gentoo 1.4rc_4
          root (hd1,0)
          kernel /bzImage ro root=/dev/hdb3 hdc=ide-cd hdd=ide-scsi


good luck.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Nov 06, 2003 4:03 am    Post subject: Reply with quote

blight01 wrote:
Have you first mounted your windows partition before trying to install Grub?

This is dangerous advice if you value your Windows installation. Installing GRUB into your Windows partition will at least make Windows no longer bootable, and possibly corrupt the filesystem as well.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Nov 06, 2003 6:50 am    Post subject: Reply with quote

I didn't read that one. That's a mistake! Could cost someone their precious data.
Back to top
View user's profile Send private message
blight01
n00b
n00b


Joined: 26 Sep 2003
Posts: 24
Location: Belgium

PostPosted: Thu Nov 06, 2003 9:28 am    Post subject: It is no more an advice... Reply with quote

Hi,

Of course, the "setup" must be "setup (hd0)" (MBR) and not "setup (hd0,0)" which can make unbootable the windows partition (if you have the windows partition on hda1)...That is perhaps you wanted to hear...Is that right? Because I didn't know that to mount the windows partition in the boot directory can be dangerous without installing effectively Grub with the "setup" command on the windows partition...
It becomes important to me to understand because the problem I had could appear suddenly again, like the first time. LOL

Thanks a lot,

Bye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum