Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lilo/ Grub Issue
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Sat Mar 01, 2003 1:21 am    Post subject: Lilo/ Grub Issue Reply with quote

Not sure what I am doing wrong, at this point, but .........

I prefer to use LILO, but have attempted GRUB, am losing what little sanity I have left.

Under LILO, the preferred boot loader, IMHO

Prompt............command not found
lba32................command not found
read-only..........command not found.
/sbin/lilo............no such file or directory


...............................help?

Assistance? (please?)

TIA
Back to top
View user's profile Send private message
meekrob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 81
Location: Tempe, AZ USA

PostPosted: Sat Mar 01, 2003 1:28 am    Post subject: emerge lilo Reply with quote

Have you tried emerging lilo? It's not there until you do:

Code:
emerge -p lilo
emerge lilo


I think this is in the install doc ...
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Sat Mar 01, 2003 1:37 am    Post subject: Reply with quote

Have been there and "done that" with the install doc., not saying I haven't missed something, but, the -p in the following

emerge -p lilo, is new to me.

now I am getting:

[ebuild R ] sys-apps/lilo-22.3.3-rl

do you mind "stepping me through this one" 8O


I am all ears....oops, eyes!

Thanks!
Back to top
View user's profile Send private message
Yeric
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 150

PostPosted: Sat Mar 01, 2003 1:37 am    Post subject: Reply with quote

A Silly question maybe, but you did emerge lilo first ?

Lilo is not installed unless you emerge it

Grub

I prefer to do this to a floppy

follow install instructions to make grub floppy disk

then

mount floppy

cp /boot/grub/splash.xpm.gz /mnt/floppy/boot/grub/splash.xpm.gz


then do
ln -s /mnt/floppy/boot/grub/grub.conf /mnt/floppy/boot/grub/menu.lst

then suppose /boot is on hda

default 0
timeout 60
splashimage=(fd0)/boot/grub/splash.xpm.gz

title=<put what you want here for linux>
root (hd0,<whatever /boot partition is -1>
e.g /boot is hda2

above = (hd0,1)
kernel (hd0,1)/boot/bzImage root=/dev/hda<whatever your / partition is>

e.g / is on hda3 so above would be hda3


if you want widows aswell

and it is on hda5 then you would do this

title=widows
root (hd0,0)
chainloder (hd0,0)+1


hope this helps
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Sat Mar 01, 2003 1:40 am    Post subject: Reply with quote

Thanks Yeric......

I do want windows as well............let me give that a try, am kinda partial to LILO, seems I have never had ANY problem with it in the past.


Always a first time, wish it wasn't NOW


Thanks,

renegade
Back to top
View user's profile Send private message
Yeric
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 150

PostPosted: Sat Mar 01, 2003 1:43 am    Post subject: Reply with quote

renegade34237 wrote:
Thanks Yeric......

I do want windows as well............let me give that a try, am kinda partial to LILO, seems I have never had ANY problem with it in the past.


Always a first time, wish it wasn't NOW


Thanks,

renegade


sok forgot to mention you have to do
nano -w /mnt/floppy/boot/grub/grub.conf
to make the grub.conf file with the instructions

default
timeout etc

Good Luck

believe me it is not that painful ;)
Back to top
View user's profile Send private message
meekrob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 81
Location: Tempe, AZ USA

PostPosted: Sat Mar 01, 2003 1:53 am    Post subject: emerge -p Reply with quote

The -p stands for pretend. Always run emerge -p before you emerge something as it shows you exactly what it is about to emerge.

Code:
[ebuild R ] sys-apps/lilo-22.3.3-rl


The "R" means rebuild, which lets us know that yes, you have already installed lilo.

I highly recommend grub, if you read up on it you'll see it has some advantages.
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Sat Mar 01, 2003 2:27 am    Post subject: Reply with quote

ok...ok

I have GRUB "snowed". (meaning I have something right........whew!)

Question:

For /boot/grub/brub.conf, as per the install instructions, do those values for need ANY modification, or do I use those given as "gospel"?

Thought I had better ask.........it has been a long day!

TIA
Back to top
View user's profile Send private message
cbreaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2003
Posts: 105
Location: Pawtucket, RI

PostPosted: Sat Mar 01, 2003 8:52 am    Post subject: Reply with quote

Good to see you're giving grub a chance. It's so much nicer then Lilo in so many ways. One of the nice things about grub is that you don't have to update it every time you install a new kernel. (well, that is if you're replacing your old bzImage file with a new one. Otherwise, you just need to make a new entry in grub.conf)

You need to update grub.conf to suit your system. For the most part, if you are booting off the first hard disk and installing grub onto a little boot partition, you can pretty much just follow the gentoo installation instructions.

There's a discontinuity with the sample grub.conf in the gentoo installation doc though. The entire document has /boot is a seperate partition, yet the example grub.conf shows /boot as a normal directory off of your root partition. You need to remove the /boot from the paths if using a seperate /boot partition. This is mentioned in a Note below the sample but it's still confusing.

Also, like it says in the docs, make a symlink to menu.lst from grub.conf to ensure everything works properly.

I've had very good luck with grub, it boots anything.
Back to top
View user's profile Send private message
ravenq
Apprentice
Apprentice


Joined: 19 Feb 2003
Posts: 161

PostPosted: Sat Mar 01, 2003 9:25 am    Post subject: Reply with quote

This may be off topic, but apart from not having to rerun grub if you have a new kernel, what are the advantages of it?
_________________
--
The Game is Nothing,
the Playing of it Everything.
Back to top
View user's profile Send private message
Yeric
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 150

PostPosted: Sat Mar 01, 2003 11:30 am    Post subject: Reply with quote

renegade34237 wrote:
ok...ok

I have GRUB "snowed". (meaning I have something right........whew!)

Question:

For /boot/grub/brub.conf, as per the install instructions, do those values for need ANY modification, or do I use those given as "gospel"?

Thought I had better ask.........it has been a long day!

TIA


Renegade :)

post your hard drive config

i.e where windows is installed, /boot / etc

Is windows installed to C: ?

if not, do you have ana initial primary partition (C:) in windows world

post this, and Iwill post a grub.conf fopr you

l8rs
Back to top
View user's profile Send private message
cbreaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2003
Posts: 105
Location: Pawtucket, RI

PostPosted: Sun Mar 02, 2003 1:12 am    Post subject: Reply with quote

ravenq wrote:
This may be off topic, but apart from not having to rerun grub if you have a new kernel, what are the advantages of it?


Well, both LiLO and Grub boot the system. Theoretically, they can both do a lot of the same stuff.

Configuring grub is a bit easier then LiLO, you use the bios's view of the drives in the system (which makes sense, since you're dealing with a bootloader.) Also, it seems to have less trouble booting off of large volumes, it's easy to make a flexible boot floppy, and best of all you can put in some fancy boot logos really easily =)

Grub also has some network support; you can boot off a floppy and load the kernel from a TFTP server. You can also use it as a bootloader with etherboot and such.

Anyways, it's up to you, but for me, I put grub on my linux boxes now. It Just Works.
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Mon Mar 03, 2003 12:58 am    Post subject: Reply with quote

Now, this is my problem........

Thanks all for your help (earlier)

I have this:

hda 1 is BOOT
hda 3 is SWAP
hda 4 is ROOT
hda 5 is XP,

grub> root (hd0,0) My Boot Partition
grub> setup (hd0) Where My Boot Record is Installed

Grub.conf for GRUB:

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

title=My example Gentoo Linux
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3

Dual-boot for XP:

title=Windows XP
root (hd0,5)
chainloader (hd0,5)+1 (I have NO IDEA about this, pulled it outta my a**, I guess

I have gotten my self so confused at this point!

Upon system boot:

Gentoo: root (0,0)
kernel (hd0,0)/boot/bzImage root=/dev/had4

Error 15: File not found

XP: root (hd0,5)

Error 22: No such partition.

:?

Anyone willing to assist, I would really appreciate it, I have come this far in 5 attempts. Letting me have Gentoo at this point....would enable someone else to monopolize the forum for a change. LMAO

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


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

PostPosted: Mon Mar 03, 2003 1:43 am    Post subject: Reply with quote

From a GRUB prompt :
Code:
> find /bzImage
or
> find /boot/bzImage

One of these should tell you where the kernel is located

As far as WINXP goes, it is no longer bootable because Windows can only boot from a primary partition and it looks like you erased your other Windows partition (probably hda1)
Back to top
View user's profile Send private message
flying_monkey
n00b
n00b


Joined: 22 Jul 2002
Posts: 33
Location: New Jersey

PostPosted: Mon Mar 03, 2003 2:46 pm    Post subject: Reply with quote

That's strange. I was all set to chastise cbreaker for not performing the step in the instructions where you creat a symbolic link from /boot to itself
cd /boot
ln -s /boot . (or something like that)

But, when I went to the instructions to find the exact paragraph where the instruction was, I couldn't find it. Was it removed? Because without that, then the sample grub.conf file won't work. One of you experts should get this part of the instructions right and fix it on the main web site.

And, renegade34237, about 6 lines down in the grub.conf file you posted below, the one that begins with kernel, you refer to /dev/hda3. If what you said in the beginning of your post is correct, that should be /dev/hda4.

Hope this helps,
Ed
_________________
"Pay no attention to that man behind the curtain!"
Back to top
View user's profile Send private message
ceuric01
n00b
n00b


Joined: 03 Mar 2003
Posts: 8
Location: West Virginia

PostPosted: Mon Mar 03, 2003 4:32 pm    Post subject: grub Error 15 Reply with quote

I am having a similar problem configuring grub.

My Hard Drive is partitioned as follows listed in order:

hda1=boot .....ext3
hda2=/ .....ReiserFS
hda4=home .....ReiserFS
hda3=swap ......swap

At the grub prompt I type:
Code:

grub> root (hd0,0)
  Filesystem type is ext2fs , partition type 0x83
grub> setup (hd0)
  Checking if "/boot/grub/stage1" exists... no
  Checking if "/grub/stage1" exists... no

Error 15: File not Found

So I searched for "/boot/grub/stage1" and "/grub/stage1". I found "/boot/grub/stage1" at /boot/grub/stage1 . The only other place I found a /grub directory was in usr/share/grub and there was no stage1 file there. I also noticed that the whereis command couldnt find stage1 either. I will admit I am a noob at Linux especially gentoo, so the fact that whereis doesn't find stage1 may not be important.

I took the flying monkey's advice
Quote:
creat a symbolic link from /boot to itself
cd /boot
ln -s /boot . (or something like that)

and excuted the root (hd0,0) and setup (hd0) commands and am still getting Error 15

Then I checked for bzImage (thanks Cyrillic):
Code:

> find /bzImage

Error 15: File not found
 
> find /boot/bzImage

Error 15: File not found


and also got Error 15
_________________
They say that God takes care of fools and drunks and children ... two out of thre aint bad
Back to top
View user's profile Send private message
undrwater
Guru
Guru


Joined: 28 Jan 2003
Posts: 312
Location: Caucasia

PostPosted: Mon Mar 03, 2003 6:38 pm    Post subject: Reply with quote

Hi!
Are you making that link from grub.conf to menu.lst? (that lst with an "L") :wink:

I have a different grub problem.

hda 1,2,3 are win2k partitions
hdc 1,5,6 are gentoo partitions

grub boots gentoo fine, but when win2k is selected from the menu, screen blanks and grub screen reappears!
grub.conf looks like this for win2k:

Code:
title=Windows 2k
root (hd0,0)
chainloader +1


setup was done like this:
Code:
grub>root (hd0,0)
grub>setup (hd1,0)


What happens next is win2k is now unbootable even with fdsik /mbr or the repair console :P

Can anyone tell if i'm missing something? I'm using BootMagic now...but i'd rather use grub.

Thanks,
Russell
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Tue Mar 04, 2003 12:14 am    Post subject: Reply with quote

I scrapped my last install 'cause I didn't know wnough about going in and correcting the problem with re-installing XP & Gentoo.

I am back tonight with a question:

When establishing the grub.conf There exista a note that reads:

Note: The path to the kernel image is relative to the boot partition. If for example you have seperate boot partition and root partition, all paths in the grub.conf become /bxImage.

(?)..................This is what I have (again)

XP/hda1 (primary)

BOOT/hda2 (primary)

SWAP/hda5 (logical)

ROOT/hda6 (logical)

Please...with some consensus: instruct me on how to Config Grub & Grub Conf. File

I know this is taking the slackers way out, but damn if I can understand this.

grub> root (X,X) Is the designation of my BOOT partition (?)
grub> setup (hdX) Is where the BOOT record is installed. ( I would think BOOT was installed in BOOT, on my system that would be (0,1) Right/wrong?

What would be the location of the splashimage on my system, to complete :

splashimage=(hdX,X)/boot/splash.xpm.gz (?)

HELP!!!!

TIA,

renegade
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Tue Mar 04, 2003 12:52 am    Post subject: Reply with quote

renegade, this should start you off in the right direction :
Code:
# nano -w /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo
root (hd0,1)
kernel /bzImage

title=WINXP
chainloader (hd0,0)+1

Code:
# grub
> root (hd0,1)
> setup (hd0)
> quit

footnotes :
grub 0.92 no longer needs the menu.lst -> grub.conf symlink
grub 0.92 works properly with reiserfs in case you want to use it without -o notail
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Tue Mar 04, 2003 1:18 am    Post subject: Reply with quote

Cryllic.......

Most excellent, appreciate your help!

However, without sounding too spoiled, XP booted fine, geez, I haven't seen THAT in awhile!

But, Gentoo did not boot, could you please take another look at it for me? Either I have success with this install, or I am , not happy, with re-installing redhat with all it's dependencies.

If I happen not to hear from you, your support was very appreciated.

Renegade
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Tue Mar 04, 2003 1:19 am    Post subject: Reply with quote

Ooops...that was an error 15, btw.

File not found.


Thanks again.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Tue Mar 04, 2003 1:25 am    Post subject: Reply with quote

Is your kernel (bzImage) in the correct location ?
It should be /bzImage on your BOOT partition.
Viewed from your ROOT partition, it would appear as /boot/bzImage when your BOOT partition is mounted.

btw. grub can boot your kernel from anywhere you put it, you just have to tell grub where to find it.


Last edited by cyrillic on Tue Mar 04, 2003 1:32 am; edited 1 time in total
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Tue Mar 04, 2003 1:32 am    Post subject: Reply with quote

I am sorry,

But I do not have the savy to even answer that question.

I followed the install instructions, I can only imagine it would be where "it is supposed to be"

(Feeling like a heel 'bout now)

Renegade

Thanks guy.............................
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Tue Mar 04, 2003 1:47 am    Post subject: Reply with quote

You can always re-copy your kernel to the location of your choice :
Code:
cdroot# mount /dev/hda6 /mnt/gentoo
cdroot# mount /dev/hda2 /mnt/gentoo/boot
cdroot# cp /mnt/gentoo/usr/src/linux/arch/i386/boot/bzImage /mnt/gentoo/boot/bzImage
cdroot# umount /mnt/gentoo/boot
cdroot# umount /mnt/gentoo
Back to top
View user's profile Send private message
renegade34237
n00b
n00b


Joined: 28 Feb 2003
Posts: 25

PostPosted: Tue Mar 04, 2003 1:51 am    Post subject: Reply with quote

So, I am assuming that I reboot with the install CD

Do as you instructed above, and

try to boot Gentoo again?

Think that should do it?

Renegade
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
Goto page 1, 2  Next
Page 1 of 2

 
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