From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 13:57:11 2004 Return-Path: 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 226C116A4DD for ; Mon, 19 Jul 2004 13:57:11 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A732643D1D for ; Mon, 19 Jul 2004 13:57:10 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i6JDrLO17557; Mon, 19 Jul 2004 09:53:22 -0400 (EDT) From: Jerry McAllister Message-Id: <200407191353.i6JDrLO17557@clunix.cl.msu.edu> To: henrik.w.lund@broadpark.no (Henrik W Lund) Date: Mon, 19 Jul 2004 09:53:21 -0400 (EDT) In-Reply-To: <40FC142A.8090605@broadpark.no> from "Henrik W Lund" at Jul 19, 2004 11:34:18 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: pura life CR cc: freebsd-questions@freebsd.org Subject: Re: priority on rc script caused panic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 13:57:11 -0000 > > pura life CR wrote: > > > Hi. > > > > I added a process with high priority (nice -20) to be loaded each time > > system boots. It is located in /usr/local/etc/rc.d. > > > > Apparently, the process consume too much cpu time which make it > > imposible to log in. > > > > I cant do anything from the boot loader, because i cant cd to /usr to > > remove the script. > > > > Any suggestion?. > > > > The system is on a virtual machine. > > > > thanks. > > > > eugene tooms. > > > > > Greetings! > > Have you tried this? > > 1. When the countdown starts, right after the BTX loader has finished, > press any key other than for the prompt. > 2. Type boot -s to boot into single user mode. > 3. When asked for a shell for root, hit (this will give you the > sh shell). Alternatively, type /bin/csh, then . This will give > you the C shell, and tab completion. Essential if you are to do much of > anything, IMO. > 4. fsck -y >>>> mount -u / > 5. mount /usr > 6. Do whatever it is you want to do in /usr, and reboot. > > You may have to provide the absolute paths for fsck and mount, I don't > recall at the moment if PATH is set in single user mode. First, I am not sure what you mean by 'virtual machine'. That may throw a monkey wrench in things if it means that literally. But, the main thing I would add is before you do the mount /usr you probably want to cause root to be remounted read/write so you can edit rc.conf. To do this, do mount -u / (or even just mount -a I think will cause it to happen nowdays) Otherwise root will be mount read only and you won't be able to change rc.conf ////jerry > > Hope this helps! > -Henrik W Lund