Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2001 00:58:54 -0600
From:      "Stephen Hilton" <nospam@hiltonbsd.com>
To:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Cc:        "Jonas Fornander" <jonas@netwood.net>
Subject:   RE: Can't mv my custom kernel
Message-ID:  <KPEMJADBBBFPDEDOIOMBIENCDNAA.nospam@hiltonbsd.com>
In-Reply-To: <00f101c17e21$08648330$0800a8c0@master>

next in thread | previous in thread | raw e-mail | index | archive | help
Jonas Fornander wrote on Thursday, December 06, 2001 12:41 AM

> I built my own kernel but want to boot up again with kernel.old. However
> I get a permission denied error
> when I try to:
> #mv kernel.old kernel

The kernel file has the schg flag set, to see this:
cd /
ls -lao | more

man chflags

Do you have kern_securelevel_enable="YES" in your /etc/rc.conf, if so change
it to
kern_securelevel_enable="NO" and reboot, then cd / ; chflags noschg kernel ;
mv kernel.old kernel ; chflags schg kernel
Then edit your /etc/rc.conf and turn securelevel back on.

If you only want to boot the kernel.old file once in a while rename it to
kernel.XXX and at the boot loader hit space bar, then at the ok prompt use:
unload
boot kernel.XXX

Regards,

Stephen Hilton


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KPEMJADBBBFPDEDOIOMBIENCDNAA.nospam>