From owner-freebsd-questions@FreeBSD.ORG Sat Sep 6 00:44:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8E131065673 for ; Sat, 6 Sep 2008 00:44:20 +0000 (UTC) (envelope-from freebsd_user@guice.ath.cx) Received: from guice.ath.cx (cpe-72-225-169-69.nyc.res.rr.com [72.225.169.69]) by mx1.freebsd.org (Postfix) with ESMTP id 871DD8FC19 for ; Sat, 6 Sep 2008 00:44:20 +0000 (UTC) (envelope-from freebsd_user@guice.ath.cx) Received: from [192.168.1.3] (cpe-72-225-169-69.nyc.res.rr.com [72.225.169.69]) (authenticated bits=0) by guice.ath.cx (8.14.2/8.14.2) with ESMTP id m860hXqV015815; Fri, 5 Sep 2008 20:43:34 -0400 (EDT) (envelope-from freebsd_user@guice.ath.cx) Message-ID: <48C1D24A.9030500@guice.ath.cx> Date: Fri, 05 Sep 2008 20:43:54 -0400 From: freebsd_user@guice.ath.cx User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <48C1522C.4050201@guice.ath.cx> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ivan Voras Subject: Re: Starting and using services -- Single-user mode -- TECRA_A9-S9017 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2008 00:44:21 -0000 Ivan Voras wrote: > freebsd_user@guice.ath.cx wrote: >> I have the need to start and use service while in single_user mode. To >> this point I'm not able to use 'top' or 'ps' respectively. In > > ps is in /bin, top is in /usr/bin ; unless you a) have your PATH wrong > or b) commonly put /bin on separate file systems, you should be able to > use ps and others in /bin and /sbin. > >> addition,from the CLI; when I attempt to start services such as >> 'portmap' and 'sshd' nothing is shown running via 'ps'. All I see are >> the headers when I issue th 'ps aux' command. > > Are your world and kernel matched? This is a failed 4.x to 5.x upgrade which I really don't want to address any further. Currently, as a last effort to save this 'current' install I'm doing a 'make buildworld, buildkernel, installkernel and installworld as we speak. Should this fail I'll continue with the topic of this discussion = "while in single-user mode, start enough services to use 'scp' and 'mv' curcial files over to another machine thereafter do a fresh install on the failed box in question. > >> I'm sure its possible to do what I'm attempting, but given the crippled >> situation of this box, I'm stuck in Single-user mode and need to start >> enough services that will allow the use of 'scp' in order to move some >> zipped/crucial files from the crippled box to another machine on the >> same network. Until now I've tried fsck -p ; mount -u / ; mount -a -t ufs ; swapon -a We will try your suggestions once the building finishes (on it own) to first see if the new build process has fixed everything (multi-user) that was broken and if not, we'll follow your recommendation(s). > > When you enter single user mode, root file system is mounted read-only > so one of the first things you need to do is "mount -u -o rw /". Next, > you need to mount your other file systems (/usr is usually a separate > file system and that's where ssh lives) so do "mount -a". At this point > you might as well cancel the single-user mode by exiting the shell and > go multi-user. > > If there are file system errors. "mount -a" will fail and you'll need to > mount other file systems by hand. The only errors or warnings we've experienced where listed in the 4.x to 5.x section of the 5.5 /usr/src/UPDATING file with reference to 'userland' The UPDATING said to ignore these errors. Obviously something is seriously wrong with that section on updating from 4.x to 5.x Enough said, we'll post one way or the other once the build is done. >