2003-01-14 21:04:43

by Rusty Lynch

[permalink] [raw]
Subject: Unable to boot off kernel built on different machine

I am having the strange problem (that I suspect is embarrassingly simple)
where I can only boot a kernel built on the same machine. For example
my setup looks like:

* machine 'A' (RH 8.0 P4 system):
- contains a 2.5 kernel tree on an exported NFS drive
- this is the machine where I do all my real work, and
do not want to run test kernels on
* machine 'B' (RH 8.0 P3 system):
- mounts the kernel tree on 'A' to make it easy to
install new kernels on for testing

If I 'make clean', 'make', install kernel and rerun lilo from the kernel
tree from 'B' then I can boot the new kernel with no issues.

If I 'make clean' and 'make' from the kernel tree from 'A' and then install
from 'B' then I get a boot failure when the kernel attempts to mount the
root partition with an error message complaining "LABEL=/" is not valid.

This has got to be something really basic.

--rustyl

Here is my lilo.conf ==>

prompt
timeout=50
default=linux-orig
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/hack
label=hack
read-only
append="hdc=ide-scsi root=LABEL=/"

image=/boot/vmlinuz-2.4.18-14smp
label=linux-orig
initrd=/boot/initrd-2.4.18-14smp.img
read-only
append="hdc=ide-scsi root=LABEL=/"


2003-01-15 00:52:30

by Bruce Harada

[permalink] [raw]
Subject: Re: Unable to boot off kernel built on different machine

On Tue, 14 Jan 2003 11:38:36 -0800
Rusty Lynch <[email protected]> wrote:

> I am having the strange problem (that I suspect is embarrassingly simple)
> where I can only boot a kernel built on the same machine. For example
> my setup looks like:
>
> * machine 'A' (RH 8.0 P4 system):
> - contains a 2.5 kernel tree on an exported NFS drive
> - this is the machine where I do all my real work, and
> do not want to run test kernels on
> * machine 'B' (RH 8.0 P3 system):
> - mounts the kernel tree on 'A' to make it easy to
> install new kernels on for testing
[SNIP]

Check /etc/fstab on machines A and B - what do they contain?

2003-01-15 01:08:13

by Rusty Lynch

[permalink] [raw]
Subject: Re: Unable to boot off kernel built on different machine

I figured it out. All I had to do was use 'rdev' to set the root
correctly. Machine 'A' was setting the root as /dev/hda1 and
Machine 'B' was setting the root as /dev/hdb1.

The kernel README gave me the clue.

--rustyl

On Tue, 2003-01-14 at 17:01, Bruce Harada wrote:
> On Tue, 14 Jan 2003 11:38:36 -0800
> Rusty Lynch <[email protected]> wrote:
>
> > I am having the strange problem (that I suspect is embarrassingly simple)
> > where I can only boot a kernel built on the same machine. For example
> > my setup looks like:
> >
> > * machine 'A' (RH 8.0 P4 system):
> > - contains a 2.5 kernel tree on an exported NFS drive
> > - this is the machine where I do all my real work, and
> > do not want to run test kernels on
> > * machine 'B' (RH 8.0 P3 system):
> > - mounts the kernel tree on 'A' to make it easy to
> > install new kernels on for testing
> [SNIP]
>
> Check /etc/fstab on machines A and B - what do they contain?