RE: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Michael Kintzios


 -Original Message-
 From: Neil Bothwick [mailto:[EMAIL PROTECTED] 
 Sent: 15 February 2006 10:02
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: Problems with GRUB in the 
 installation of Gentoo
 
 
 On Mon, 13 Feb 2006 00:25:52 +0100, Bo Andresen wrote:
 
  I always copy do:
  cp arch/i386/boot/bzImage /boot/kernel-version-gentoo-r?
  cp System.map /boot/System.map-version-gentoo-r?
  cp .config /boot/config-version-gentoo-r?
 
 make install does exactly the same, and sets up the vmlinuz and
 vmlinuz.old symlinks to point to your new and previous kernel
 respectively, so you don't need to edit grub.conf.

Hmm, it doesn't on my two boxen.  :-(  I do not have a vmlinuz,
System.map and config links.

Do I have to first set up the symlinks manually?
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Neil Bothwick
On Wed, 15 Feb 2006 10:19:36 -, Michael Kintzios wrote:

  make install does exactly the same, and sets up the vmlinuz and
  vmlinuz.old symlinks to point to your new and previous kernel
  respectively, so you don't need to edit grub.conf.
 
 Hmm, it doesn't on my two boxen.  :-(  I do not have a vmlinuz,
 System.map and config links.
 
 Do I have to first set up the symlinks manually?

Looking as /sbin/installkernel, it doesn't appear that you have to create
the links. Of course, you do have to make sure /boot is mounted first :)


-- 
Neil Bothwick

-Come, come, why they couldn't hit an elephant from this dist-


signature.asc
Description: PGP signature


RE: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Michael Kintzios


 -Original Message-
 From: Neil Bothwick [mailto:[EMAIL PROTECTED] 
 Sent: 16 February 2006 16:10
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: Problems with GRUB in the 
 installation of Gentoo
 
   make install does exactly the same, and sets up the vmlinuz and
   vmlinuz.old symlinks to point to your new and previous kernel
   respectively, so you don't need to edit grub.conf.
  
  Hmm, it doesn't on my two boxen.  :-(  I do not have a vmlinuz,
  System.map and config links.
  
  Do I have to first set up the symlinks manually?
 
 Looking as /sbin/installkernel, it doesn't appear that you 
 have to create
 the links. Of course, you do have to make sure /boot is 
 mounted first :)

Yep, /boot is always mounted (just to be sure I won't forget it, I
always mount it before I even cd into /usr/src/linux).  Running make 
make modules_install does *not* create any links in my /boot directory,
ever.  Could it be that there's something wrong with my system(s) - at
least three installations have always behaved like this . . .
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread John Jolet



On 2/16/06 11:05 AM, Michael Kintzios [EMAIL PROTECTED] wrote:

 
 
 -Original Message-
 From: Neil Bothwick [mailto:[EMAIL PROTECTED]
 Sent: 16 February 2006 16:10
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: Problems with GRUB in the
 installation of Gentoo
 
 make install does exactly the same, and sets up the vmlinuz and
 vmlinuz.old symlinks to point to your new and previous kernel
 respectively, so you don't need to edit grub.conf.
 
 Hmm, it doesn't on my two boxen.  :-(  I do not have a vmlinuz,
 System.map and config links.
 
 Do I have to first set up the symlinks manually?
 
 Looking as /sbin/installkernel, it doesn't appear that you
 have to create
 the links. Of course, you do have to make sure /boot is
 mounted first :)
 
 Yep, /boot is always mounted (just to be sure I won't forget it, I
 always mount it before I even cd into /usr/src/linux).  Running make 
 make modules_install does *not* create any links in my /boot directory,
 ever.  Could it be that there's something wrong with my system(s) - at
 least three installations have always behaved like this . . .
No, make makes the bzImage under /usr/src/linux.arch/.boot
And make modules_install installes the modules in /lib, I think.  Neither of
them touches /boot.  I THINK there's a make install that's supposed to do
some stuff for you, but I prefer to do those steps by hand.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Holly Bostick
Michael Kintzios schreef:
 
 -Original Message- From: Neil Bothwick
 [mailto:[EMAIL PROTECTED] Sent: 16 February 2006 16:10 To:
 gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re:
 Problems with GRUB in the installation of Gentoo
 
 make install does exactly the same, and sets up the vmlinuz and
  vmlinuz.old symlinks to point to your new and previous kernel 
 respectively, so you don't need to edit grub.conf.
 Hmm, it doesn't on my two boxen.  :-(  I do not have a vmlinuz, 
 System.map and config links.
 
 Do I have to first set up the symlinks manually?
 Looking as /sbin/installkernel, it doesn't appear that you have to
 create the links. Of course, you do have to make sure /boot is 
 mounted first :)
 
 Yep, /boot is always mounted (just to be sure I won't forget it, I 
 always mount it before I even cd into /usr/src/linux).  Running make
  make modules_install does *not* create any links in my /boot
 directory,

Neither make nor make modules_install is *supposed* to create any links
in your /boot directory.

Make compiles the kernel and static modules, make modules_install
compiles the dynamic modules and installs them in
/lib/modules/kernel-version/wherever_they_belong.

This is why you then have to either copy the compiled kernel (and
supplemental files like .config and system.map, if you want) to /boot.
make install (which is a different command than make modules_install)
does this automatically, and additionally makes symlinks called vmlinuz
and vmlinuz.old (if a previous kernel exists), and updates lilo (if
available). If you use grub, if grub.conf is set to load vmlinuz as the
current kernel, and vmlinuz.old as the previous kernel, you don't then
have to update grub in any way when you have used make install to
install your newly-compiled kernel, because make install changes the
symlink for the previous kernel to vmlinuz.old, and makes the symlink
for the newly installed kernel vmlinuz. Kernels older than the current
and most-recent-previous can be added manually to the menu directly.

My impression is that you haven't yet run make install.

HTH,
Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Frino Klauss

On 2/16/06, Holly Bostick [EMAIL PROTECTED] wrote:
My impression is that you haven't yet run make install.Can't youusegenkernelinstead ?



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Holly Bostick
Frino Klauss schreef:
 On 2/16/06, Holly Bostick [EMAIL PROTECTED] wrote:
 My impression is that you haven't yet run make install.
 
 Can't you use genkernel instead ?
 
I have no idea; I've never used genkernel, and am unlikely to ever do
so. Since it is a mostly automated process (though you can use some sort
of switch to go to a manual menuconfig), I suppose it would compile and
install the kernel to /boot as part of its functioning, but I have no
idea what it actually does, or how to make it do what it does.

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Daniel da Veiga
On 2/16/06, Frino Klauss [EMAIL PROTECTED] wrote:

 On 2/16/06, Holly Bostick [EMAIL PROTECTED] wrote:
  My impression is that you haven't yet run make install.
 
 Can't you use genkernel instead ?


Yes, if you want, if you use it with --install it will copy the latest
kernel, map and initrd to /boot... I only use genkernel, but of course
with --menuconfig.

--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-16 Thread Neil Bothwick
On Thu, 16 Feb 2006 17:05:24 -, Michael Kintzios wrote:

 Yep, /boot is always mounted (just to be sure I won't forget it, I
 always mount it before I even cd into /usr/src/linux).  Running make 
 make modules_install does *not* create any links in my /boot directory,
 ever.  Could it be that there's something wrong with my system(s) - at
 least three installations have always behaved like this . . .

That's because you are not running make install. make modules_install
installs the modules, make install installs the kernel. You need

make  make modules_install  make install


-- 
Neil Bothwick

As a computer, I find your faith in technology amusing.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-15 Thread Neil Bothwick
On Mon, 13 Feb 2006 00:25:52 +0100, Bo Andresen wrote:

 I always copy do:
 cp arch/i386/boot/bzImage /boot/kernel-version-gentoo-r?
 cp System.map /boot/System.map-version-gentoo-r?
 cp .config /boot/config-version-gentoo-r?

make install does exactly the same, and sets up the vmlinuz and
vmlinuz.old symlinks to point to your new and previous kernel
respectively, so you don't need to edit grub.conf.


-- 
Neil Bothwick

I used to live in the real world, but I got evicted.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-15 Thread Bo Andresen
On Wednesday 15 February 2006 11:02, Neil Bothwick wrote:
 On Mon, 13 Feb 2006 00:25:52 +0100, Bo Andresen wrote:
  I always copy do:
  cp arch/i386/boot/bzImage /boot/kernel-version-gentoo-r?
  cp System.map /boot/System.map-version-gentoo-r?
  cp .config /boot/config-version-gentoo-r?

 make install does exactly the same, and sets up the vmlinuz and
 vmlinuz.old symlinks to point to your new and previous kernel
 respectively, so you don't need to edit grub.conf.

Now we are at it is there someone who is willing to explain to me how make 
install works (I do know make i.e the basics)? I mean looking in the Makefile 
I don't see any directives as to how to make install...

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-14 Thread Michael Kintzios


 -Original Message-
 From: Maarten [mailto:[EMAIL PROTECTED] 
 Sent: 13 February 2006 17:49
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: Problems with GRUB in the 
 installation of Gentoo
 
 
 Richard Fish wrote:
 Now, after rebooting, it really went straight, with text menu. It
 starts loading really fast the system,but all of a sudden, a Kernel
 Panic says:
 
 Warning - Unable to open an initial console
 Kernel panic - not suncing: No init found. Try passing 
 init= option to kernel
  
  
  This message usually means you are missing /dev/console on 
 your root filesystem.
 
 That warning, yes.
 But the error right after that means what it says: No init 
 found, ie. it
 has mounted a filesystem (else you get another error-: Kernel panic -
 cannot mount root partition) but it is unable to find 'init' there.
 From that, one can deduce the OP probably pointed the kernel to the
 wrong root partition (ie. /boot, or /usr, etc.)

  . . or, on a multipartition installation they've missed out some
rather important directory which needs to be in / for it to boot, like
e.g. /sbin.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-14 Thread Maarten
Gilberto Martins wrote:

 What is OP ?
 

_O_riginal _P_oster, I believe.

Maarten
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-14 Thread Gilberto Martins
 Not likely to happen during installation, but if you use udev, the
 device nodes may not exist in your backups (depending upon how you do
 your backups...).  So a restore of a backup of your root filesystem
 from a crash recovery or live CD may not restore any device nodes to
 your root filesystem.

Well, I am not using udev. It is a install from scratch. So there is no backup.


 Anyway, ignore my message...I didn't quite understand that the problem
 was resolved.
No way, pal. Now I will read about udev, and see if I can get some
advantage out of it.   8)

Thanks!!!

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-14 Thread Cláudio Henrique
hey, gilberto, how about the grub trouble?

use udev, check this out:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap9

have you heard of RR4? is a live dvd distro based on gentoo:

http://www.lxnaydesign.net/index.php?option=com_contenttask=viewid=16Itemid=27

and so is vida linux:

http://www.vidalinux.com/

[]'s
claudio.


On 2/14/06, Gilberto Martins [EMAIL PROTECTED] wrote:
  Not likely to happen during installation, but if you use udev, the
  device nodes may not exist in your backups (depending upon how you do
  your backups...).  So a restore of a backup of your root filesystem
  from a crash recovery or live CD may not restore any device nodes to
  your root filesystem.

 Well, I am not using udev. It is a install from scratch. So there is no 
 backup.

 
  Anyway, ignore my message...I didn't quite understand that the problem
  was resolved.
 No way, pal. Now I will read about udev, and see if I can get some
 advantage out of it.   8)

 Thanks!!!

 --
 gentoo-user@gentoo.org mailing list



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Maarten
Gilberto Martins wrote:
Most modern BIOS have the option to boot from a lot of devices, you
can check if your BIOS have options to boot from hd1, or primary
slave, whatever your BIOS call it, just enter the SETUP and check for
it.
 
 
 Yeah, it is already configured to start the first Hard Disk.
 
 
 
LILO won't help you, you're installing the boot loader in a slave
disk, whatever you do, your BIOS will still call for the master (in
most cases), check your grub config twice, change it for the slave
drive (hd(1,0)?!) and change your BIOS to boot from the slave...
 
 
 
 I really haven't checked for it, but i did emerge lilo to have a try
 at lilo, anyway. After that, I emerge --unmerge grub it. Hope I
 haven't done something too wrong.
 
 Finally, I did:
 
 cd /usr/src/linux
 make install
 
 
 
 After that, I had the folowing /boot content:
 
 # cd /boot
 # file *
 System.map:  symbolic link to 
 `System.map-2.6.15-gentoo-r1'
 System.map-2.6.15-gentoo-r1: ASCII text
 System.map-2.6.15-gentoo-r1.old: ASCII text
 System.map.old:  symbolic link to
 `System.map-2.6.15-gentoo-r1.old'
 boot:symbolic link to `.'
 boot.0340:   x86 boot sector, code offset 0x48
 config:  symbolic link to `config-2.6.15-gentoo-r1'
 config-2.6.15-gentoo-r1: ASCII English text
 config-2.6.15-gentoo-r1.old: ASCII English text
 config-gentoo-2.6.12-gentoo-r10: ASCII English text
 config.old:  symbolic link to 
 `config-2.6.15-gentoo-r1.old'
 grub:directory
 kernel-gentoo-2.6.12-gentoo-r10: x86 boot sector
 lost+found:  directory
 map: data
 vmlinuz: symbolic link to `vmlinuz-2.6.15-gentoo-r1'
 vmlinuz-2.6.15-gentoo-r1:x86 boot sector
 vmlinuz-2.6.15-gentoo-r1.old:x86 boot sector
 vmlinuz.old: symbolic link to 
 `vmlinuz-2.6.15-gentoo-r1.old'
 
 
 
 Now, after rebooting, it really went straight, with text menu. It
 starts loading really fast the system,but all of a sudden, a Kernel
 Panic says:
 
 Warning - Unable to open an initial console
 Kernel panic - not suncing: No init found. Try passing init= option to kernel
 
 
 
 Which init= I should use ? the problem is the lack of a initrd
 file ? I tried to read mkinitrd man page, but I guess this does not
 apply.
 
 This is the lilo.conf.
 
 
 lba32
 boot = /dev/hdb
 default=gentoo
 menu-scheme=Wb
 prompt
 delay = 50
 vga = 791
 image = /boot/vmlinuz
 root = /dev/hdb1

You're pointing the kernel to hdb1 as the system root partition. I bet
money hdb1 isn't; it's /boot. So point it to the hdb[2|3|4|...] which is
your main / partition, and all will be well.

Maarten

 label = Gentoo
 read-only # read-only for checking
 
 
 
 I adapted it from sample file. I can see that :
 1) there was something missin in grub conf file;
 2) I need to study a little bit more ...  8(
 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Gilberto Martins
2006/2/13, Maarten [EMAIL PROTECTED]:
 You're pointing the kernel to hdb1 as the system root partition. I bet
 money hdb1 isn't; it's /boot. So point it to the hdb[2|3|4|...] which is
 your main / partition, and all will be well.

So good I haven't bet, for I'd loose.  8)
Making this change solved the problem. Seems that grub works, but
there is something I am not doing the right way.

Take care you all

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Bo Andresen
On Monday 13 February 2006 13:04, Gilberto Martins wrote:
 So good I haven't bet, for I'd loose.  8)
 Making this change solved the problem. Seems that grub works, but
 there is something I am not doing the right way.

1) Did you mean Lilo instead of Grub works??

2) Did you try root(hd1,0) with Grub?

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Gilberto Martins
Hi again.

2006/2/13, Bo Andresen [EMAIL PROTECTED]:
 On Monday 13 February 2006 13:04, Gilberto Martins wrote:
  So good I haven't bet, for I'd loose.  8)
  Making this change solved the problem. Seems that grub works, but
  there is something I am not doing the right way.

 1) Did you mean Lilo instead of Grub works??

YES

 2) Did you try root(hd1,0) with Grub?

YES

-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Michael Kintzios


 -Original Message-
 From: Gilberto Martins [mailto:[EMAIL PROTECTED] 
 Sent: 13 February 2006 13:16
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: Problems with GRUB in the 
 installation of Gentoo
 
 
 Hi again.
 
 2006/2/13, Bo Andresen [EMAIL PROTECTED]:
  On Monday 13 February 2006 13:04, Gilberto Martins wrote:
   So good I haven't bet, for I'd loose.  8)
   Making this change solved the problem. Seems that grub works, but
   there is something I am not doing the right way.
 
  1) Did you mean Lilo instead of Grub works??
 
 YES
 
  2) Did you try root(hd1,0) with Grub?
 
 YES

Make sure that /etc/fstab has the correct devices/fs for each partition.
Usual error is that people leave it with the default entry e.g.
/dev/ROOT instead of the correct /dev/hdb3 in your case.

Also, check if you have chosen reiserfs and have not selected this as a
*built-in* option in your kernel (not a module).  The default kernel
config does not select reiserfs.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Richard Fish
 Now, after rebooting, it really went straight, with text menu. It
 starts loading really fast the system,but all of a sudden, a Kernel
 Panic says:

 Warning - Unable to open an initial console
 Kernel panic - not suncing: No init found. Try passing init= option to kernel

This message usually means you are missing /dev/console on your root filesystem.

Boot from the live CD, mount your root, and do:

cp -a /dev/console /dev/null /dev/zero /mnt/gentoo/dev/

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Maarten
Richard Fish wrote:
Now, after rebooting, it really went straight, with text menu. It
starts loading really fast the system,but all of a sudden, a Kernel
Panic says:

Warning - Unable to open an initial console
Kernel panic - not suncing: No init found. Try passing init= option to kernel
 
 
 This message usually means you are missing /dev/console on your root 
 filesystem.

That warning, yes.
But the error right after that means what it says: No init found, ie. it
has mounted a filesystem (else you get another error-: Kernel panic -
cannot mount root partition) but it is unable to find 'init' there.
From that, one can deduce the OP probably pointed the kernel to the
wrong root partition (ie. /boot, or /usr, etc.)

Maarten

 Boot from the live CD, mount your root, and do:
 
 cp -a /dev/console /dev/null /dev/zero /mnt/gentoo/dev/
 
 -Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Gilberto Martins
 That warning, yes.
 But the error right after that means what it says: No init found, ie. it
 has mounted a filesystem (else you get another error-: Kernel panic -
 cannot mount root partition) but it is unable to find 'init' there.
 From that, one can deduce the OP probably pointed the kernel to the
 wrong root partition (ie. /boot, or /usr, etc.)


You are right. I pointed it to hdb1 and not to hdb3. It is working.

What is OP ?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Gilberto Martins
 Boot from the live CD, mount your root, and do:

 cp -a /dev/console /dev/null /dev/zero /mnt/gentoo/dev/

Hum ..
Shouldn`t it already exist ? Why should I have to copy it ? What can
cause this absence ?

Thanks

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-13 Thread Richard Fish
On 2/13/06, Gilberto Martins [EMAIL PROTECTED] wrote:
 Hum ..
 Shouldn`t it already exist ? Why should I have to copy it ? What can
 cause this absence ?

Not likely to happen during installation, but if you use udev, the
device nodes may not exist in your backups (depending upon how you do
your backups...).  So a restore of a backup of your root filesystem
from a crash recovery or live CD may not restore any device nodes to
your root filesystem.

Anyway, ignore my message...I didn't quite understand that the problem
was resolved.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread John Jolet



On 2/12/06 11:21 AM, Gilberto Martins [EMAIL PROTECTED] wrote:

 Hi,
 On Sun, 2006-02-12 at 13:30 -0300, Gilberto Martins wrote:
 Hi again ...
 ---cut---
 Then, kindly selected GRUB, and did this simple /boot/grub.conf file:
 
 default 0
 timeout 0
 splashimage=(dhb0,0)/boot/grub/splash.xpm.gz
 think this is a typo^, mine is:splashimage=(hd0,0)/grub/splash.xpm.gz
 
 You are right, I did it wrong here. But the correct one is as you typed here.
 
 Concerning to Kernel name, does it must have a specific name format ?
 If yes, wich would be the name ?
 No i don't think is *has* to be a fixed name, but most people comply to
 some conventions (e.x. kernel-2.6.15-r3, gentoo-kernel-2.6.15-r4 etc.)
 Using 'genkernel' so don't remember, check install guide if interested.
 Check grub man page  guide as Grub has some strange naming conventions.
 
 I tried not to use genkernel, for I did some changes in kernel. Can
 any buddie confirm wich are the kernel file and others that must be
 copied to \boot after compiling it in hand ?
It can be called anything, but the file name you give it in /boot, of
course, has to be the one you call out in the grub.conf line.  So, you copy
(for instance) arch/i386/boot/bzImage to /boot/kernel-kernelversion (I
usually also copy .config to /boot/config-kernelversion).
 
 Thanks for all help you are giving. I was in other list many years
 ago, and left for I haven`t received help, but RTFM as answers. I just
 came here after reading gentoo handbook and Grub Manual and many
 relative docs.
 
 Thanks for help.
 
 Thanks again.
 
 HTH.Rumen


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Gilberto Martins
 It can be called anything, but the file name you give it in /boot, of
 course, has to be the one you call out in the grub.conf line.  So, you copy
 (for instance) arch/i386/boot/bzImage to /boot/kernel-kernelversion (I
 usually also copy .config to /boot/config-kernelversion).

That`s what I thought. The .config tip, I wil do the same. What I
have to change in grub.conf ?

thanx

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread John Jolet



On 2/12/06 12:12 PM, Gilberto Martins [EMAIL PROTECTED] wrote:

 It can be called anything, but the file name you give it in /boot, of
 course, has to be the one you call out in the grub.conf line.  So, you copy
 (for instance) arch/i386/boot/bzImage to /boot/kernel-kernelversion (I
 usually also copy .config to /boot/config-kernelversion).
 
 That`s what I thought. The .config tip, I wil do the same. What I
 have to change in grub.conf ?
Okay, so you compile gentoo-sources.2.6.15-r4 (just as a made-up example).
So you copy arch/boot/bzImage to /boot/kernel-gentoo-2.6.15-r4, and copy
.config to /boot/config-gentoo-2.6.15-r4.  Then edit your
/boot/grub/grub.conf and copy the whole stanza that was already there,
including:
title  Linux-2.6.14-r2-2 win4lin enabled
root (hd0,0)
kernel /boot/kernel-2.6.14.2-w4l-2 root=/dev/hda2

Past it at the end.  Change the title line to match the name you gave on the
copy (Linux-2.6.15-r4), and the kernel line (/boot/kernel-2.6.15-r4).  At
the top of the file is the line:
default 0 (or whichever one is active).  Change the number to match the
stanza you just added (remember they are numbered from zero, not one).  Then
save the file.
 
 thanx


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Bo Andresen
On Sunday 12 February 2006 18:12, Gilberto Martins wrote:
 But it does not work yet ...   8(


Perhaps you should post the output of:

#ls -l /boot
#cat /boot/grup/grub.conf

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Patrick Bloy

Bo Andresen schrieb:


On Sunday 12 February 2006 18:12, Gilberto Martins wrote:
 


But it does not work yet ...   8(

   



Perhaps you should post the output of:

#ls -l /boot
#cat /boot/grup/grub.conf

 



#cat /boot/grub/grub.conf ?!

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Bo Andresen
On Sunday 12 February 2006 22:59, Patrick Bloy wrote:
 Perhaps you should post the output of:
 
 #ls -l /boot
 #cat /boot/grup/grub.conf

 #cat /boot/grub/grub.conf ?!

Eeh yes ??

[EMAIL PROTECTED]:~# ls -l /boot/grub/menu.lst
lrwxrwxrwx  1 root root 9 Jun  1  2005 /boot/grub/menu.lst - grub.conf

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Gilberto Martins
Hi again !!!

 Perhaps you should post the output of:

 #ls -l /boot
 #cat /boot/grup/grub.conf

There it goes:

livecd / # ls -l /boot
total 2231
lrwxrwxrwx  1 root root   1 Feb 11 09:22 boot - .
-rw-r--r--  1 root root   32414 Feb 12 16:06 config-gentoo-2.6.12-gentoo-r10
drwxr-xr-x  2 root root1024 Feb 12 13:16 grub
-rw-r--r--  1 root root 2227076 Feb 12 16:01 kernel-gentoo-2.6.12-gentoo-r10
drwx--  2 root root   12288 Feb 10 22:44 lost+found
livecd / # cat /boot/grub/grub.conf
default 0
timeout 0
#splashimage=(hd0,0)/grub/splash.xpm.gz

title Gentoo Linux 2.6.12.gentoo-r10
root (hd0,0)
kernel /kernel-gentoo-2.6.12-gentoo-r10 root=/dev/hdb3

#title Linux Testing
#rootnoverify (hd0,4)
#makeactive
#chainloader +1

livecd / #

Note that I started the gentoo boot disk, mounted it all, using the
folowing commands:

mount /dev/hdb3 /mnt/gentoo
mount /dev/hdb1 /mnt/gentoo/boot
swapon /dev/hdb2
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev

and also chroot-ed it ...

chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile


I appreciate your help a lot.
Thanx.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Bo Andresen
On Sunday 12 February 2006 23:23, Gilberto Martins wrote:
 livecd / # cat /boot/grub/grub.conf
[SNIP]
 root (hd0,0)
 kernel /kernel-gentoo-2.6.12-gentoo-r10 root=/dev/hdb3
[SNIP]
 mount /dev/hdb1 /mnt/gentoo/boot

I'm not really certain about this but isn't hdb in Linux syntax supposed to be 
equivalent to hd1 in Grub syntax? Have you tried root(hd1,0)?

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Maarten
Gilberto Martins wrote:

 livecd / # cat /boot/grub/grub.conf
 default 0
 timeout 0
 #splashimage=(hd0,0)/grub/splash.xpm.gz
 
 title Gentoo Linux 2.6.12.gentoo-r10
 root (hd0,0)
 kernel /kernel-gentoo-2.6.12-gentoo-r10 root=/dev/hdb3

You say /dev/hdB, and above (hd0,0). Therefore implying that there is no
 /dev/hdA in the system.  Is that correct ?  If not, and you do have a
hda device, the (hd0,0) is wrong and should probably be (hd1,0).
But in that case your BIOS will probably boot from hda anyway so grub
will never even be launched in the first place.  What lives on hda,
windows ?

You can trivially check this by running 'grub' and, within grub, say
'root (hd0,0)'. It should then reply by saying Filesystem type is XXX
where XXX is ext2 or ext3 or whatever you used. If it says something
like FAT or yields an error (Selected disk does not exist | No such
partition) you have the wrong mapping. Trying 'root (hd1,0)' will then
be more successful probably. However, your BIOS would still boot hda in
most cases, so you had better look into installing grub on /dev/hda (but
without breaking whatever lives on hda)
If you have no hda, or if hda is the CDrom, it may be prudent to change
the cabling so that linux is on the /dev/hda device.  Altough it is
possible to boot from the slave drive, but it is more straightforward to
boot from the master, and you may save yourself some headaches.

Maarten
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Holly Bostick
Gilberto Martins schreef:
 Hi again !!!
 
 Perhaps you should post the output of:
 
 #ls -l /boot
 #cat /boot/grup/grub.conf
 
 There it goes:
 
 livecd / # ls -l /boot total 2231 lrwxrwxrwx  1 root root   1 Feb
  11 09:22 boot - . -rw-r--r--  1 root root   32414 Feb 12 16:06 
 config-gentoo-2.6.12-gentoo-r10 drwxr-xr-x  2 root root1024 Feb 
 12 13:16 grub -rw-r--r--  1 root root 2227076 Feb 12 16:01 
 kernel-gentoo-2.6.12-gentoo-r10 drwx--  2 root root   12288 Feb 
 10 22:44 lost+found

Ummm... isn't there supposed to be a system.map for the kernel as well?

I myself don't manually copy my kernels after compiling it; I use make
install to do so, and I have the following files in /boot for all my
kernels:

 la /boot
totaal 22M
-rw-r--r-- 1 root  512 apr 27 2005 14:23 backup_mbr
lrwxrwxrwx 1 root1 apr 27 2005 18:52 boot - .
lrwxrwxrwx 1 root   20 jan 07 2006 02:44 config - config-2.6.15-gentoo
-rw-r--r-- 1 root  60K mrt 24 2005 01:31 config-2.6.11.4-20a-default
-rw-r--r-- 1 root  33K okt 13 2005 15:06 config-2.6.13-gentoo-r4
-rw-r--r-- 1 root  35K nov 07 2005 18:40 config-2.6.14-gentoo
-rw-r--r-- 1 root  35K jan 06 2006 21:34 config-2.6.14-gentoo-r7
-rw-r--r-- 1 root  36K jan 07 2006 02:44 config-2.6.15-gentoo
lrwxrwxrwx 1 root   23 jan 06 2006 21:34 config.old -
config-2.6.14-gentoo-r7
drwxr-xr-x 2 root 1,0K jan 15 2006 06:06 grub
lrwxrwxrwx 1 root   27 apr 27 2005 14:23 initrd -
initrd-2.6.11.4-20a-default
-rw-r--r-- 1 root 1,4M apr 27 2005 14:23 initrd-2.6.11.4-20a-default
-rw-r--r-- 1 root0 apr 29 2005 00:47 .keep
drwx-- 2 root  12K apr 27 2005 14:13 lost+found
-rw-r--r-- 1 root 135K apr 27 2005 14:23 message
-rw-r--r-- 1 root  121 mrt 24 2005 01:31
README.vmlinux-2.6.11.4-20a-default.gz
-rw-r--r-- 1 root  67K mrt 24 2005 01:32
symvers-2.6.11.4-20a-i386-default.gz
lrwxrwxrwx 1 root   24 jan 07 2006 02:43 System.map -
System.map-2.6.15-gentoo
-rw-r--r-- 1 root 693K mrt 24 2005 01:26 System.map-2.6.11.4-20a-default
-rw-r--r-- 1 root 948K okt 13 2005 15:06 System.map-2.6.13-gentoo-r4
-rw-r--r-- 1 root 736K nov 07 2005 18:40 System.map-2.6.14-gentoo
-rw-r--r-- 1 root 736K jan 06 2006 21:34 System.map-2.6.14-gentoo-r7
-rw-r--r-- 1 root 748K jan 07 2006 02:43 System.map-2.6.15-gentoo
lrwxrwxrwx 1 root   27 jan 06 2006 21:34 System.map.old -
System.map-2.6.14-gentoo-r7
drwx-- 2 root 1,0K apr 29 2005 15:52 .Trash-root
lrwxrwxrwx 1 root   21 jan 07 2006 02:43 vmlinuz - vmlinuz-2.6.15-gentoo
-rw-r--r-- 1 root 1,4M mrt 24 2005 01:26 vmlinuz-2.6.11.4-20a-default
-rw-r--r-- 1 root 3,6M okt 13 2005 15:06 vmlinuz-2.6.13-gentoo-r4
-rw-r--r-- 1 root 3,7M nov 07 2005 18:40 vmlinuz-2.6.14-gentoo
-rw-r--r-- 1 root 3,7M jan 06 2006 21:34 vmlinuz-2.6.14-gentoo-r7
-rw-r--r-- 1 root 3,4M jan 07 2006 02:43 vmlinuz-2.6.15-gentoo
lrwxrwxrwx 1 root   24 jan 06 2006 21:34 vmlinuz.old -
vmlinuz-2.6.14-gentoo-r7

(ignore the 2.6.11.4-20a kernels, those are from my dual-boot SUSE install.)

In any case, for each available kernel, make install copies 3 files (and
makes 3 symlinks):

config-kernel.version
system.map-kernel.version
vmlinuz-kernel.version

the config file is just a convenience, but the vmlinuz and system.map
are, afaik, required to boot the kernel.

I don't know where system.map is copied from (the original compiled file
name), but if I was you (which I of course am not), I would cd to
/usr/src/linux and run make install to copy the kernel
files properly to boot, because I suspect this is not happening however
you're doing it.

Just my €0.02

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread John Jolet


 
 Ummm... isn't there supposed to be a system.map for the kernel as well?
 
 I myself don't manually copy my kernels after compiling it; I use make
 install to do so, and I have the following files in /boot for all my
 kernels:
I've never done anything with a system.map.  I manually copy it myself to
allow me to name them whatever I want.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Bo Andresen
On Monday 13 February 2006 00:07, Holly Bostick wrote:
 Gilberto Martins schreef:
 In any case, for each available kernel, make install copies 3 files (and
 makes 3 symlinks):

 config-kernel.version
 system.map-kernel.version
 vmlinuz-kernel.version

 the config file is just a convenience, but the vmlinuz and system.map
 are, afaik, required to boot the kernel.

 I don't know where system.map is copied from (the original compiled file
 name), but if I was you (which I of course am not), I would cd to
 /usr/src/linux and run make install to copy the kernel
 files properly to boot, because I suspect this is not happening however
 you're doing it.

I always copy do:
cp arch/i386/boot/bzImage /boot/kernel-version-gentoo-r?
cp System.map /boot/System.map-version-gentoo-r?
cp .config /boot/config-version-gentoo-r?

System.map is a memory map of the kernel. It is quite informative in that 
respect but it is certainly not necessary to boot. I just think it's 
interesting to have.

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Holly Bostick
John Jolet schreef:
 
 Ummm... isn't there supposed to be a system.map for the kernel as
 well?
 
 I myself don't manually copy my kernels after compiling it; I use
 make install to do so, and I have the following files in /boot for
 all my kernels:
 I've never done anything with a system.map.  I manually copy it
 myself to allow me to name them whatever I want.
 
 
Well, that's my point, sort of... what exactly do you copy, and has that
file been copied to Gilberto's /boot folder? From my /boot listing
previously, you can see that even SUSE creates a system.map in the /boot
folder, and that's a precompiled kernel (so it's not like it's copying
manually or via make install). So I kinda suspect that it's a needed
file across all distros, whatever it may be called and, looking in
/usr/src/linux, it is a separate file from the bzImage file, which is
the actual compiled kernel. The fact that the make install command also
finds it necessary to copy this file from /usr/src/linux to /boot is not
to be sneezed at either, imo.

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread John Jolet



On 2/12/06 5:28 PM, Holly Bostick [EMAIL PROTECTED] wrote:

 I've never done anything with a system.map.  I manually copy it
 myself to allow me to name them whatever I want.
 
 
 Well, that's my point, sort of... what exactly do you copy, and has that
 file been copied to Gilberto's /boot folder? From my /boot listing
 previously, you can see that even SUSE creates a system.map in the /boot
 folder, and that's a precompiled kernel (so it's not like it's copying
 manually or via make install). So I kinda suspect that it's a needed
 file across all distros, whatever it may be called and, looking in
 /usr/src/linux, it is a separate file from the bzImage file, which is
 the actual compiled kernel. The fact that the make install command also
 finds it necessary to copy this file from /usr/src/linux to /boot is not
 to be sneezed at either, imo.
I see your point.  However, how critical can it be, if I have 10 versions of
kernels in /boot and in /boot/grub/grub.conf, and NEVER copied that file?
It gets created in /usr/src/linux-, but NOT in /boot.  And is not
referenced anywhere in my grub.conf.  If it's to be used, it needs to be
called on the kernel line of the grub.conf.  And I've got 30 gentoo servers
running, without a one having the system.map file copied.
 
 Holly


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread CapSel
On 2/13/06, Holly Bostick [EMAIL PROTECTED] wrote:
 John Jolet schreef:
 
  Ummm... isn't there supposed to be a system.map for the kernel as
  well?
 
  I myself don't manually copy my kernels after compiling it; I use
  make install to do so, and I have the following files in /boot for
  all my kernels:
  I've never done anything with a system.map.  I manually copy it
  myself to allow me to name them whatever I want.
 
 
 Well, that's my point, sort of... what exactly do you copy, and has that
 file been copied to Gilberto's /boot folder? From my /boot listing
 previously, you can see that even SUSE creates a system.map in the /boot
 folder, and that's a precompiled kernel (so it's not like it's copying
 manually or via make install). So I kinda suspect that it's a needed
 file across all distros, whatever it may be called and, looking in
 /usr/src/linux, it is a separate file from the bzImage file, which is
 the actual compiled kernel. The fact that the make install command also
 finds it necessary to copy this file from /usr/src/linux to /boot is not
 to be sneezed at either, imo.

 Holly
 --
 gentoo-user@gentoo.org mailing list


OT??
AFAIK system.map is not needed for lilo and not for grub. I don't have
it and all works without any errors or warnings about it.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Bo Andresen
On Monday 13 February 2006 00:28, Holly Bostick wrote:
 From my /boot listing 
 previously, you can see that even SUSE creates a system.map in the /boot
 folder, and that's a precompiled kernel (so it's not like it's copying
 manually or via make install). So I kinda suspect that it's a needed
 file across all distros, whatever it may be called and, looking in
 /usr/src/linux, it is a separate file from the bzImage file, which is
 the actual compiled kernel. The fact that the make install command also
 finds it necessary to copy this file from /usr/src/linux to /boot is not
 to be sneezed at either, imo.

http://www.google.com/linux?hl=enq=system.mapbtnI

This is getting a bit off topic, however, what you can read from the above 
link is that there are programs which use System.map to resolve symbols from 
the kernel. It just lists the addresses of where in the memory symbols are 
located. But Grub certainly isn't one of those programs and unless you use 
one of those programs it really isn't necessary.

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Holly Bostick
CapSel schreef:
 On 2/13/06, Holly Bostick [EMAIL PROTECTED] wrote:
 Ummm... isn't there supposed to be a system.map for the kernel
 as well?

 snip OT?? AFAIK system.map is not needed for lilo and not for grub.
 I don't have it and all works without any errors or warnings about
 it.
 
No, it's not OT, it was a question (is the absence of system.map in
Gilberto's /boot folder possibly relevant to the problems booting the
kernel?)
which you, among others, have answered (No).

Thanks.

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Gilberto Martins
That's amazing, and that's what I am telling my wife as I read (with
her) all this messages, and show her how important is that we support
Free Software. The need of knowing more, by teaching the newbies.
Thanks for all interest of each one who helped.


Maarten:

If you have no hda, or if hda is the CDrom, it may be prudent to change
the cabling so that linux is on the /dev/hda device.  Altough it is
possible to boot from the slave drive, but it is more straightforward to
boot from the master, and you may save yourself some headaches.

Yes, I have a CDROM as /dev/hda, and I really thought it would bring
me some troubles. Of course I can change it. But, I know (as you also
said) it is possible to boot from a slave hard disk. I haven't tested,
but it is like a poor solution, for I wouldn't be learning. I honestly
am almost considering going back to LILO and try after, but that would
not be learning.


Holly Bostick:

Ummm... isn't there supposed to be a system.map for the kernel as well?

Yes, I think. Should I hen modificate grub config file, as in LILO ?
if yes, how and where to make this change ?
In addition, there is a very good article about the topic system.map
in http://www.dirac.org/linux/system.map/. Mostly for debugging. also,
the command ps make some use of it.

I copied the following:

# cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-gentoo-2.6.12-gentoo-r10

PS.: thanks for this valuable €0.02 !!8)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Daniel da Veiga
On 2/12/06, Gilberto Martins [EMAIL PROTECTED] wrote:
 That's amazing, and that's what I am telling my wife as I read (with
 her) all this messages, and show her how important is that we support
 Free Software. The need of knowing more, by teaching the newbies.
 Thanks for all interest of each one who helped.


 Maarten:

 If you have no hda, or if hda is the CDrom, it may be prudent to change
 the cabling so that linux is on the /dev/hda device.  Altough it is
 possible to boot from the slave drive, but it is more straightforward to
 boot from the master, and you may save yourself some headaches.

 Yes, I have a CDROM as /dev/hda, and I really thought it would bring
 me some troubles. Of course I can change it. But, I know (as you also
 said) it is possible to boot from a slave hard disk. I haven't tested,

Most modern BIOS have the option to boot from a lot of devices, you
can check if your BIOS have options to boot from hd1, or primary
slave, whatever your BIOS call it, just enter the SETUP and check for
it.

 but it is like a poor solution, for I wouldn't be learning. I honestly
 am almost considering going back to LILO and try after, but that would
 not be learning.

LILO won't help you, you're installing the boot loader in a slave
disk, whatever you do, your BIOS will still call for the master (in
most cases), check your grub config twice, change it for the slave
drive (hd(1,0)?!) and change your BIOS to boot from the slave...

Or, better, change the slave/master jumpers to a config where your HD
is the master, OR EVEN BETTER, make it so your CD/DVD drives go at the
secondary IDE (if your're using IDE, I suppose so from your posts).
When different drives with different speeds are in the same IDE one
may interfer and even slow down performance of the other.



 Holly Bostick:

 Ummm... isn't there supposed to be a system.map for the kernel as well?

 Yes, I think. Should I hen modificate grub config file, as in LILO ?
 if yes, how and where to make this change ?
 In addition, there is a very good article about the topic system.map
 in http://www.dirac.org/linux/system.map/. Mostly for debugging. also,
 the command ps make some use of it.

 I copied the following:

 # cp /usr/src/linux/arch/i386/boot/bzImage 
 /boot/kernel-gentoo-2.6.12-gentoo-r10

 PS.: thanks for this valuable €0.02 !!8)

 --
 gentoo-user@gentoo.org mailing list




--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Problems with GRUB in the installation of Gentoo

2006-02-12 Thread Gilberto Martins
 Most modern BIOS have the option to boot from a lot of devices, you
 can check if your BIOS have options to boot from hd1, or primary
 slave, whatever your BIOS call it, just enter the SETUP and check for
 it.

Yeah, it is already configured to start the first Hard Disk.


 LILO won't help you, you're installing the boot loader in a slave
 disk, whatever you do, your BIOS will still call for the master (in
 most cases), check your grub config twice, change it for the slave
 drive (hd(1,0)?!) and change your BIOS to boot from the slave...


I really haven't checked for it, but i did emerge lilo to have a try
at lilo, anyway. After that, I emerge --unmerge grub it. Hope I
haven't done something too wrong.

Finally, I did:

cd /usr/src/linux
make install



After that, I had the folowing /boot content:

# cd /boot
# file *
System.map:  symbolic link to `System.map-2.6.15-gentoo-r1'
System.map-2.6.15-gentoo-r1: ASCII text
System.map-2.6.15-gentoo-r1.old: ASCII text
System.map.old:  symbolic link to
`System.map-2.6.15-gentoo-r1.old'
boot:symbolic link to `.'
boot.0340:   x86 boot sector, code offset 0x48
config:  symbolic link to `config-2.6.15-gentoo-r1'
config-2.6.15-gentoo-r1: ASCII English text
config-2.6.15-gentoo-r1.old: ASCII English text
config-gentoo-2.6.12-gentoo-r10: ASCII English text
config.old:  symbolic link to `config-2.6.15-gentoo-r1.old'
grub:directory
kernel-gentoo-2.6.12-gentoo-r10: x86 boot sector
lost+found:  directory
map: data
vmlinuz: symbolic link to `vmlinuz-2.6.15-gentoo-r1'
vmlinuz-2.6.15-gentoo-r1:x86 boot sector
vmlinuz-2.6.15-gentoo-r1.old:x86 boot sector
vmlinuz.old: symbolic link to `vmlinuz-2.6.15-gentoo-r1.old'



Now, after rebooting, it really went straight, with text menu. It
starts loading really fast the system,but all of a sudden, a Kernel
Panic says:

Warning - Unable to open an initial console
Kernel panic - not suncing: No init found. Try passing init= option to kernel



Which init= I should use ? the problem is the lack of a initrd
file ? I tried to read mkinitrd man page, but I guess this does not
apply.

This is the lilo.conf.


lba32
boot = /dev/hdb
default=gentoo
menu-scheme=Wb
prompt
delay = 50
vga = 791
image = /boot/vmlinuz
root = /dev/hdb1
label = Gentoo
read-only # read-only for checking



I adapted it from sample file. I can see that :
1) there was something missin in grub conf file;
2) I need to study a little bit more ...  8(

-- 
gentoo-user@gentoo.org mailing list