From owner-freebsd-questions Thu Feb 20 9:21: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCFBC37B401 for ; Thu, 20 Feb 2003 09:21:01 -0800 (PST) Received: from post-21.mail.nl.demon.net (post-21.mail.nl.demon.net [194.159.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1F443F75 for ; Thu, 20 Feb 2003 09:21:00 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18luNX-0002pw-00 for freebsd-questions@FreeBSD.ORG; Thu, 20 Feb 2003 17:20:59 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 82D83C643 for ; Thu, 20 Feb 2003 18:20:58 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 77774E7A for ; Thu, 20 Feb 2003 18:20:48 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 7F9142259B; Thu, 20 Feb 2003 18:20:48 +0100 (CET) Date: Thu, 20 Feb 2003 18:20:48 +0100 From: Cliff Sarginson To: freebsd-questions@FreeBSD.ORG Subject: Re: installkernel first? [ a few additions to this reply ] Message-ID: <20030220172048.GC1944@raggedclown.net> References: <1045718989.3e5467cdd1dee@webmail.adam.com.au> <20030220153710.GA19633@fif.office.inext.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030220153710.GA19633@fif.office.inext.hu> User-Agent: Mutt/1.5.3i X-Virus-Scanned: by AMaViS 0.3.12pre8 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 20, 2003 at 04:37:10PM +0100, Peter Hollaubek wrote: > On Feb 20, 2003, bastill@adam.com.au wrote: > > I'm tracking 4.7 stable. > > The handbook asks me to: > > go to single user mode and fsck -p (etc ...) > > Can't. > > "/dev/ad2s1a: NO WRITE ACCESS > > /dev/ad2s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY." > > (Mounted RW according to fstab). > > > > after "make buildworld" as single user and reboot also to single user could not > > "cd /usr/src" - ls shows the /usr directory containing only /usr/local and no > > other directories. > > I CAN find /usr/src (and a number of other useful directories ) as root or user. > > > > I am next supposed to "make buildkernel # make installkernel". This appeared to --------------------------------------------^ A "#" turns the rest of the line into a comment, I think you mean "&&". So if you did this, you will not have a new kernel. > > work ok (I didn't monitor), but no new kernel appeared in the / directory (I > > still had my 'old' one). > > > > The next step was to be "make installworld" but I have not done this in view of > > the earlier errors. > > > > Can someone figure this out for me and point me in the right direction? > > Thanks. > > > > -- > > Brian > > > > As of /usr/src/UPDATING: > > To update from 4.0-RELEASE or later to the most current > 4.x-STABLE > ---------- > make buildworld > make buildkernel KERNCONF=YOUR_KERNEL_HERE > make installkernel KERNCONF=YOUR_KERNEL_HERE > reboot (in single user) [1] Here first do.. mount -a mergemaster -p > make installworld > mergemaster [2] > reboot > > In single user mode only the root fs is mounted by default. So for making installworld > you have to mount all the slices affected by such a process (usually all other slices like > /usr, /var), and also, only the system itself boots up, nothing else is started > preventing any problem caused by installing something new under a running old task > in memory. If the new kernel fails you can return to the old one without risking > incompatibility with the old kernel and the new world. Everything in this order has a > reason :). > -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message