Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 1997 13:29:10 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        Cliff Addy <fbsdlist@revelstone.jvm.com>, questions@freebsd.org
Subject:   Re: URGENT: Cannot delete kernel
Message-ID:  <3.0.32.19970124132909.00a28350@sentex.net>

next in thread | raw e-mail | index | archive | help
At 01:05 PM 1/24/97 -0500, Cliff Addy wrote:
>Help!  We installed a new kernel this morning and it didn't work.  Ran for
>about an hour before crashing.  I rebooted with the old kernel, but now I
>can't get rid of the old one.  I'm logged in as root, but the kernel is
>marked no write for everyone and I can't rm or mv it, I can't even chmod
>it, I get "permission denied".  I need to get the "kernel.old" renamed to
>"kernel"  so that this system will boot on it's own. 

Take a look at what make install does in the kernel compile directory...

install:
        @if [ ! -f kernel ] ; then \
                echo "You must first build your kernel before trying to
install." ; \
                exit 1 ; \
        fi
        chflags noschg /kernel
        mv /kernel /kernel.old
        install -c -m 555 -o root -g wheel -fschg kernel /

and do a man chflags...

	---Mike



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