Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD-BETA2: will boot, won't root from bootloader's dev hd0h: ??

Here's one for the books.

I've got a number of partitions on my test machine (cterm).  It has
one drive, wd0.  wd0a contains NetBSD-BETA and a bunch of pkgsrc from
last year, compiled pkgsrc stuff from 5.99.  I want to keep wd0a in
place, and do new work in other partitions.

Which I have done.  I have wd0j, wd0k, and wd0l loaded up with various
builds of netbsd and pkgsrc, and have no trouble booting these
partions, say like doing:

  In the bootloader:  dev hd0j, then

and the bootloader merrily boots the netbsd kernel (NetBSD-BETA
original ) from partition j, and the kernel notes that the root file
system is wd0j, uses the fstab from /etc/fstab on wd0j, mounts wd0j,
and all is well within the little world of wd0j.

Now I've compiled NetBSD-BETA2 (actually picked up from daily -- 2 August) from source, and made a partition
wd0h upgraded with the NetBSD-BETA2 distribution I just compiled.  Now
if I do:

  In the bootloader:  dev hd0h, then

then the bootloader boots the NetBSD-BETA2 kernel, but the kernel
forgets all about the fact that the root system's supposed to be wd0h,
and reads wd0a as the root partition.  If I do:

  In the bootloader:  dev hd0h, then
                      boot -s

the kernel most definitely thinks that the root system is wd0a.

However, I have a NetBSD-BETA original kernal named n also in wd0j,
and if I do:

  In the bootloader:  dev hd0h, then
                      boot n -s

then this NetBSD-BETA original kernal boots just fine, and recognises
wd0h as the root file system.

So in desperation (i.e. I RTFM) I tried:

  In the bootloader:  dev hd0h, then
                      boot -a

The kernel did ask for the root file system, dump, etc, which it
iterated a couple of times, apparently not believing me the first
time.  But it did work, and I was able to boot both NetBSD-BETA2
and root it to wd0h.

So, am I missing something here, such as a new and secret way
to pass the root partition from the bootloader to the NetBSD
kernel, or have I got a bug, and is it PR worthy?

BTW, I did _not_ upgrade boot.



Kind Regards, I am

 /s/ Michael L. Riechers

Michael L. Riechers,
Owner,                                  M L Riechers Systems Engineering
513/844-2220 (voice)                    530 Main Street
513/205-5589 (cell)                     Hamilton, Ohio 45013
513/844-2279 (fax)  (internet)  (WEB)

Systems Programming: The three most adverse malignancies in life are:
  1)signed numbers,  2)floating point numbers, and  3)little endians.

Adams wrote to his fellow founding father Thomas Jefferson in 1816:
"Britain will never be our Friend, till We are her Master"
So I propose:
"MicroSoft will never be our Friend, till We are her Master"

Home | Main Index | Thread Index | Old Index