* [gentoo-user] system boot
@ 2006-02-26 23:51 Pete
2006-02-26 23:57 ` Brett I. Holcomb
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Pete @ 2006-02-26 23:51 UTC (permalink / raw
To: gentoo-user
Someone has given me a system to configure their printer on it.
yababa root # uname -a
Linux yababa.io.spectraitc.com 2.4.19-gentoo-r10 #3 Tue Feb 25 14:40:41 CST
2003 i686 Pentium III (Katmai) GenuineIntel GNU/Linux
yababa root #
When I connect the printer, I get
Feb 26 02:15:57 yababa /etc/hotplug/usb.agent: ... no modules for USB
product 4e8/326c/100
I figured, the USB support for printer wan not enabled in the kernel. Found
it to be the case. So I rebuilt the kernel.
Now I want to add the new kernel to the existing boot menu and I am baffeled
by some findings.
The boot menu says it is LILO, so I went to /etc/lilo.conf
This is how it looks
----------------
# $Header: /home/cvsroot/gentoo-x86/sys-apps/lilo/files/lilo.conf,v 1.3
2002/09/30 00:55:18 woodchip Exp $
# Author: Ultanium
# Start LILO global section
menu-scheme=Wb
boot = /dev/hda
prompt
#boot=/devices/discs/disc0/disc
map = /boot/System.map
#compact # faster, but won't work on all systems.
lba32
#if lba32 do not work, use linear
#linear
#if you always want to see the prompt with a 15 second timeout:
timeout=90
delay = 50
vga = normal # Normal VGA console
# End LILO global section
# Linux bootable partition config begins
image = /boot/bzImage
root = /dev/hda7
label = Gentoo
read-only # read-only for checking
image = /boot/bzImage.OLD
root = /dev/hda7
label = Gentoo_Old
read-only # read-only for checking
image = /boot/bzImageAR
root = /dev/hda7
label = Gentoo_new
read-only # read-only for checking
#
# Linux bootable partition config ends
----------------
I added the section
-----------
image = /boot/bzImageAR
root = /dev/hda7
label = Gentoo_new
read-only # read-only for checking
-----------
This is what I don't understand
------------------
yababa root # ls -l /boot/
total 1272
-rw-r--r-- 1 root root 483904 Feb 26 04:56 System.map-2.4.19r10AR
lrwxrwxrwx 1 root root 1 Jan 12 2003 boot -> .
-rw-r--r-- 1 root root 814688 Feb 26 04:40 bzImageAR
yababa root #
---------------------
boot points to itself. Before I copied the System.map-2.4.19r10AR and
bzImageAR, there was nothing in there.
How does the system boot? ? ?
Of course if I run /sbin/lilo, the system complains
yababa root # /sbin/lilo
Fatal: open /boot/bzImage: No such file or directory
yababa root #
Any pointers will be greatly appreciated !
Regards
Pete
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] system boot
2006-02-26 23:51 Pete
@ 2006-02-26 23:57 ` Brett I. Holcomb
2006-02-27 0:02 ` Boyd Stephen Smith Jr.
2006-02-27 0:10 ` Iain Buchanan
2 siblings, 0 replies; 6+ messages in thread
From: Brett I. Holcomb @ 2006-02-26 23:57 UTC (permalink / raw
To: gentoo-user
First copy the new kernel to /boot (make sure /boot is mounted) with a new
name like test or something
Then copy this part to the end of lilo.conf.
> image = /boot/bzImage
> root = /dev/hda7
> label = Gentoo
> read-only # read-only for checking
and change these:
image=name of your new kernel (say Test)
label=Test
Then save and exit. Run lilo - t and it will tell you if everything is okay.
If not fix it, then when all is well run lilo. Then reboot and you can test
your new kernel.
Also man lilo and man lilo.conf will help.
On Sunday February 26 2006 18:51, Pete wrote:
> Someone has given me a system to configure their printer on it.
>
> yababa root # uname -a
> The boot menu says it is LILO, so I went to /etc/lilo.conf
>
> This is how it looks
>
> ----------------
> # $Header: /home/cvsroot/gentoo-x86/sys-apps/lilo/files/lilo.conf,v 1.3
> 2002/09/30 00:55:18 woodchip Exp $
> # Author: Ultanium
> # Linux bootable partition config begins
> image = /boot/bzImage
> root = /dev/hda7
> label = Gentoo
> read-only # read-only for checking
> image = /boot/bzImage.OLD
> root = /dev/hda7
> label = Gentoo_Old
> read-only # read-only for checking
> image = /boot/bzImageAR
> root = /dev/hda7
> label = Gentoo_new
> read-only # read-only for checking
> #
> # Linux bootable partition config ends
>
> ----------------
>
> I added the section
> -----------
> image = /boot/bzImageAR
> root = /dev/hda7
> label = Gentoo_new
> read-only # read-only for checking
> -----------
>
> This is what I don't understand
>
> ------------------
>
> yababa root # ls -l /boot/
> total 1272
> -rw-r--r-- 1 root root 483904 Feb 26 04:56
> System.map-2.4.19r10AR lrwxrwxrwx 1 root root 1 Jan 12
> 2003 boot -> .
> -rw-r--r-- 1 root root 814688 Feb 26 04:40 bzImageAR
> yababa root #
>
> ---------------------
>
> boot points to itself. Before I copied the System.map-2.4.19r10AR and
> bzImageAR, there was nothing in there.
>
> How does the system boot? ? ?
>
> Of course if I run /sbin/lilo, the system complains
> yababa root # /sbin/lilo
> Fatal: open /boot/bzImage: No such file or directory
> yababa root #
>
>
> Any pointers will be greatly appreciated !
> Regards
> Pete
--
Brett I. Holcomb
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] system boot
2006-02-26 23:51 Pete
2006-02-26 23:57 ` Brett I. Holcomb
@ 2006-02-27 0:02 ` Boyd Stephen Smith Jr.
2006-02-27 0:10 ` Iain Buchanan
2 siblings, 0 replies; 6+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-02-27 0:02 UTC (permalink / raw
To: gentoo-user
On Sunday 26 February 2006 17:51, "Pete" <pi2list@pi2tech.com> wrote about
'[gentoo-user] system boot':
> This is what I don't understand
>
> ------------------
>
> yababa root # ls -l /boot/
> total 1272
> -rw-r--r-- 1 root root 483904 Feb 26 04:56
> System.map-2.4.19r10AR lrwxrwxrwx 1 root root 1 Jan 12
> 2003 boot -> . -rw-r--r-- 1 root root 814688 Feb 26 04:40
> bzImageAR yababa root #
>
> ---------------------
>
> boot points to itself.
That's pretty standard. From my system:
# mount /boot
# ls /boot/boot -l
lrwxrwxrwx 1 root root 1 Jan 30 10:46 /boot/boot -> .
# umount /boot
# ls /boot -l
total 0
lrwxrwxrwx 1 root root 1 Aug 6 2005 boot -> .
drwxr-xr-x 2 root root 80 Jan 31 09:29 grub
Not really sure why that grub directory is in there...
> Before I copied the System.map-2.4.19r10AR and
> bzImageAR, there was nothing in there.
>
> How does the system boot? ? ?
Could boot be on a separate partition? Check /etc/fstab.
--
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] system boot
2006-02-26 23:51 Pete
2006-02-26 23:57 ` Brett I. Holcomb
2006-02-27 0:02 ` Boyd Stephen Smith Jr.
@ 2006-02-27 0:10 ` Iain Buchanan
2 siblings, 0 replies; 6+ messages in thread
From: Iain Buchanan @ 2006-02-27 0:10 UTC (permalink / raw
To: gentoo-user
Hi,
On Sun, 2006-02-26 at 23:51 +0000, Pete wrote:
> This is what I don't understand
>
> ------------------
>
> yababa root # ls -l /boot/
> total 1272
> -rw-r--r-- 1 root root 483904 Feb 26 04:56 System.map-2.4.19r10AR
> lrwxrwxrwx 1 root root 1 Jan 12 2003 boot -> .
> -rw-r--r-- 1 root root 814688 Feb 26 04:40 bzImageAR
> yababa root #
>
> ---------------------
>
> boot points to itself. Before I copied the System.map-2.4.19r10AR and
> bzImageAR, there was nothing in there.
>
> How does the system boot? ? ?
you need to mount /boot. Before you do that, delete (or move) the files
that you put in (the unmounted) /boot! /boot isn't mounted by default.
Once you've mounted /boot, you should see lots of stuff in there.
HTH,
--
Iain Buchanan <iain at netspace dot net dot au>
If it happens once, it's a bug.
If it happens twice, it's a feature.
If it happens more than twice, it's a design philosophy.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] system boot
@ 2006-02-27 0:27 Pete
0 siblings, 0 replies; 6+ messages in thread
From: Pete @ 2006-02-27 0:27 UTC (permalink / raw
To: gentoo-user
I see your point
Here's /etc/fstab
-----------------------
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot reiserfs
noauto,noatime,notail 1 1
/dev/hda7 / reiserfs noatime
0 0
/dev/hda6 none swap sw
0 0
/dev/hda5 /tmp reiserfs noatime
0 0
/dev/hda2 /home reiserfs noatime
0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,users
0 0
/dev/fd0 /mnt/floppy auto noauto,users
0 0
proc /proc proc defaults
0 0
-----------------------
lilo.conf has
----------------------
image = /boot/bzImage
root = /dev/hda7
label = Gentoo
----------------------
Also, note that
-------------------------
yababa root # /sbin/lilo -t
Fatal: open /boot/bzImage: No such file or directory
yababa root #
-------------------------
If the root for boot was changed, lilo should have found the /boot/bzImage.
Also, I did
---------------------------
yababa root # find / -name bzImage
/usr/src/linux-2.4.19-gentoo-r9/arch/i386/boot/bzImage
/usr/src/linux-2.4.19-gentoo-r10/arch/i386/boot/bzImage
yababa root #
----------------------------
I am not sure where is the /boot/bzImage that shows up in the lilo.conf file.
Appreciate help.
Regards
Pete
-------------------------
On Sun, 26 Feb 2006 18:02:07 -0600, "Boyd Stephen Smith Jr."
<bss03@volumehost.net> wrote :
> On Sunday 26 February 2006 17:51, "Pete" <pi2list@pi2tech.com> wrote about
> '[gentoo-user] system boot':
> > This is what I don't understand
> >
> > ------------------
> >
> > yababa root # ls -l /boot/
> > total 1272
> > -rw-r--r-- 1 root root 483904 Feb 26 04:56
> > System.map-2.4.19r10AR lrwxrwxrwx 1 root root 1 Jan 12
> > 2003 boot -> . -rw-r--r-- 1 root root 814688 Feb 26 04:40
> > bzImageAR yababa root #
> >
> > ---------------------
> >
> > boot points to itself.
>
> That's pretty standard. From my system:
>
> # mount /boot
> # ls /boot/boot -l
> lrwxrwxrwx 1 root root 1 Jan 30 10:46 /boot/boot -> .
> # umount /boot
> # ls /boot -l
> total 0
> lrwxrwxrwx 1 root root 1 Aug 6 2005 boot -> .
> drwxr-xr-x 2 root root 80 Jan 31 09:29 grub
>
> Not really sure why that grub directory is in there...
>
> > Before I copied the System.map-2.4.19r10AR and
> > bzImageAR, there was nothing in there.
> >
> > How does the system boot? ? ?
>
> Could boot be on a separate partition? Check /etc/fstab.
>
> --
> "If there's one thing we've established over the years,
> it's that the vast majority of our users don't have the slightest
> clue what's best for them in terms of package stability."
> -- Gentoo Developer Ciaran McCreesh
> --
> gentoo-user@gentoo.org mailing list
>
>
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] system boot
@ 2006-02-27 0:30 Pete
0 siblings, 0 replies; 6+ messages in thread
From: Pete @ 2006-02-27 0:30 UTC (permalink / raw
To: gentoo-user
Duh ! I didn't notice this. I am working on gentoo for the first time and
the other flavor has /boot auto mounted.
Thanks a ton !
Regards
Pete
On Mon, 27 Feb 2006 09:40:42 +0930, Iain Buchanan <iaindb@netspace.net.au>
wrote :
> Hi,
>
> On Sun, 2006-02-26 at 23:51 +0000, Pete wrote:
> > This is what I don't understand
> >
> > ------------------
> >
> > yababa root # ls -l /boot/
> > total 1272
> > -rw-r--r-- 1 root root 483904 Feb 26 04:56
System.map-2.4.19r10AR
> > lrwxrwxrwx 1 root root 1 Jan 12 2003 boot -> .
> > -rw-r--r-- 1 root root 814688 Feb 26 04:40 bzImageAR
> > yababa root #
> >
> > ---------------------
> >
> > boot points to itself. Before I copied the System.map-2.4.19r10AR and
> > bzImageAR, there was nothing in there.
> >
> > How does the system boot? ? ?
>
> you need to mount /boot. Before you do that, delete (or move) the files
> that you put in (the unmounted) /boot! /boot isn't mounted by default.
>
> Once you've mounted /boot, you should see lots of stuff in there.
>
> HTH,
> --
> Iain Buchanan <iain at netspace dot net dot au>
>
> If it happens once, it's a bug.
> If it happens twice, it's a feature.
> If it happens more than twice, it's a design philosophy.
>
> --
> gentoo-user@gentoo.org mailing list
>
>
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-02-27 0:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 0:27 [gentoo-user] system boot Pete
-- strict thread matches above, loose matches on Subject: below --
2006-02-27 0:30 Pete
2006-02-26 23:51 Pete
2006-02-26 23:57 ` Brett I. Holcomb
2006-02-27 0:02 ` Boyd Stephen Smith Jr.
2006-02-27 0:10 ` Iain Buchanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox