From owner-freebsd-questions Thu Jan 23 08:38:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA27995 for questions-outgoing; Thu, 23 Jan 1997 08:38:28 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA27970 for ; Thu, 23 Jan 1997 08:38:19 -0800 (PST) Received: (from nadav@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id SAA24272; Thu, 23 Jan 1997 18:36:23 +0200 (IST) Date: Thu, 23 Jan 1997 18:36:22 +0200 (IST) From: Nadav Eiron To: Stan Brown cc: Free BSD Questions list Subject: Re: How to replace curretn (bad) kernel with old (good) one? In-Reply-To: <199701231558.KAA29126@netcom16.netcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 23 Jan 1997, Stan Brown wrote: > I realize that this sounds simple, but I haven't managed to do it. > > Here is to situation. I have a new kernel that won;t boot. I have the > old (working) kernel in kernel.working. > > I can boot by typing kernel.working at the boot prompt. Once I do that > i want to put the old working kernel back in place as /kernel. > Everything I try fails(cp mv chmod). /kernel -s mode 555, why can't I > chmod it and overwrite it with the good kernel? > > How do I acomplish this? > > > -- > Stan Brown stanb@netcom.com 404-996-6955 > Factory Automation Systems > Atlanta Ga. > -- > Look, look, see Windows 95. Buy, lemmings, buy! > Pay no attention to that cliff ahead... Henry Spencer > (c) 1997 Stan Brown. Redistribution via the Microsoft Network is prohibited. > The kernel file is protected by flags, not just chmod. Do man chflags. Basically, you'll have to do: chflags noschg /kernel on the old kernel to allow you to move it, and after you move the new kernel to /kernel, do: chflags schg /kernel Nadav