booting a different kernel each time

FBSD_User FBSD_User at
Wed May 28 08:23:16 PDT 2003

Copy /kernel to different name, say kernela, and then recompile
kernel source containing changes and it will replace /kernel, then
copy /kernel to different name, say kernelb.  When you want to
return kernela copy kernela to kernel and reboot. You will have to
change the flag on /kernel before you can overwrite it.  Use
commands like this

chflags noschg /kernel
cp /kernela /kernel
chflags schg /kernel

-----Original Message-----
From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at]On Behalf Of Fernan
Sent: Wednesday, May 28, 2003 10:58 AM
To: questions at
Subject: booting a different kernel each time


I need to send my everyday machine (pentiumIII) to repair. I will
take the disks and move them to a spare pentiumI so I can
keep working meanwhile.

The problem is I need to have a kernel that will work with a
different processor and with a different ethernet card.

My question: are there any issues in having two different
kernels and booting from the alternatively? I mean switching
kernels before booting so I don't have to 'unload' a kernel
at boot time and then load a diffent one.

And: should I backup both the kernel and the kernel modules
under a different name (kernel.p3, modules.p3/) so I can
then boot from it later?

Thanks in advance,


PS: please CC me since I'm not subscribed to the list

F e r n a n   A g u e r o
freebsd-questions at mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list