From owner-freebsd-questions@FreeBSD.ORG Sat May 7 03:30:36 2011 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 912D4106566C for ; Sat, 7 May 2011 03:30:36 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9F58FC22 for ; Sat, 7 May 2011 03:30:35 +0000 (UTC) Received: by bwz12 with SMTP id 12so4290218bwz.13 for ; Fri, 06 May 2011 20:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:x-authentication-warning:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=qULLPo/gUKGLncC62fu6huP8WLI0m6fHTbstffKaqBo=; b=TGlD8d6T9K0fZ9jLqLdZARcyD6V6HhWh1PpuukDa6NWrhzWaYzUOEAkaZXdEjjQqqx P+SzFJJWgcibz+AIri6ogseJ9/9V8jSvyvgKruDev0NIRs9pAwjRKzA1zb7VqZTe3Ium 9TyCe/jFD7/ZuaYUfR6n8d1u0xT0uEqhSjD5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=lCrCSJIq30nbsQvvEnKY9eCrhqe0UPnlzNw3T9KrdKe6nUOIWUrRPlGYdd8kh3rLzV QN+88K0ByIyeKL4C7DmNJpAiwymeCNZDLXgTTfo8H+ihA2LNFVyx87IHsiPukwxIRN9q UnpRmk3K4rOkha73C2jT11EMGoPckFp7rAcjI= Received: by 10.204.154.194 with SMTP id p2mr3781040bkw.58.1304739034844; Fri, 06 May 2011 20:30:34 -0700 (PDT) Received: from procyon.xvoid.org ([213.132.76.142]) by mx.google.com with ESMTPS id 16sm2352403bkm.6.2011.05.06.20.30.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 May 2011 20:30:34 -0700 (PDT) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.4/8.14.4) with ESMTP id p473UVDp014446; Sat, 7 May 2011 07:30:31 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.4/8.14.4/Submit) id p473UVZX014445; Sat, 7 May 2011 07:30:31 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: procyon.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Sat, 7 May 2011 07:30:31 +0400 From: Yuri Pankov To: Henry Olyer Message-ID: <20110507033031.GD1222@procyon.xvoid.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List Subject: Re: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab 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, 07 May 2011 03:30:36 -0000 On Fri, May 06, 2011 at 10:06:31PM -0400, Henry Olyer wrote: > Woe is me. > > First, I simply messed up, happens to us all from time to time. I lost > power on an laptop running 8.2. > > Restarted it but for some reason the fsck didn't run and I lost some /usr > files. > > I tried to do an fsck manually but because it's mounted I got nowhere. So I > put a comment ("#") in front of the /usr line for the /etc/fstab file. > > Now, I can't boot. > > I need what's on my disk -- of course! Boot to single user mode (4 in the boot menu), remount / read-write - mount -u -o rw /, edit /etc/fstab (you'll probably need to mount /usr manually if what's in /rescue doesn't work for you), reboot. You can run fsck from single user mode, as well. HTH, Yuri