Re: Going back to generic kernel

2008-12-23 Thread Jason C. Wells

Zbigniew Szalbot wrote:

Hi friends,

I have a test machine with a custom kernel, which I copied (as the
handbook suggests) to /root/kernels/. However, I do not really need
it.

My question is how do I switch back to the generic kernel? Many thanks
and all the best to you all!

  
/root/kernels is not booted by default.  I doubt this is the kernel that 
is running.


To run generic again, simply install the generic kernel much the same 
way you did the custon kernel.


cd /usr/src
make buildkernel KERNCONF=GENERIC
make installkernel KERNCONF=GENERIC

or set KERNCONF in /etc/make.conf

If you tweaked /boot/loader.conf to load something other than 
/boot/kernel/kernel then you'll need to untweak it.



Later,
Jason
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Going back to generic kernel

2008-12-23 Thread Zbigniew Szalbot
Hello,

 My question is how do I switch back to the generic kernel? Many thanks

 /root/kernels is not booted by default.  I doubt this is the kernel that is
 running.
It is as I symlinked it.

 To run generic again, simply install the generic kernel much the same way
 you did the custon kernel.

 cd /usr/src
 make buildkernel KERNCONF=GENERIC
 make installkernel KERNCONF=GENERIC

That was all that I needed. I just failed to realize I need to compile
it one more time and specify a generic one! Thanks!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Going back to generic kernel

2008-12-23 Thread Glen Barber
On Tue, Dec 23, 2008 at 2:45 PM, Zbigniew Szalbot zszal...@gmail.com wrote:
 Hi friends,

 I have a test machine with a custom kernel, which I copied (as the
 handbook suggests) to /root/kernels/. However, I do not really need
 it.

 My question is how do I switch back to the generic kernel? Many thanks
 and all the best to you all!


cd /usr/src; make kernel; reboot

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Going back to generic kernel

2008-12-23 Thread Manolis Kiagias
Zbigniew Szalbot wrote:
 Hi friends,

 I have a test machine with a custom kernel, which I copied (as the
 handbook suggests) to /root/kernels/. However, I do not really need
 it.

 My question is how do I switch back to the generic kernel? Many thanks
 and all the best to you all!

   
If you don't have a copy of your previous GENERIC kernel, you can still
get one from the CD.
Here is an example, using a FreeBSD 7.0-RELEASE CD:

# mount /cdrom
# cd /cdrom/7.0-RELEASE/kernels
# ./install.sh GENERIC

This will install it to /boot/GENERIC and you can copy it to
/boot/kernel if you wish. Or you can use nextboot(8) to boot it once and
see what happens.  Keep in mind that if you have updated your system
(e.g. freebsd-update), this kernel may not be in sync with the rest of
the system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org