From owner-freebsd-questions@FreeBSD.ORG Tue Aug 2 22:10:04 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B7C8C16A41F for ; Tue, 2 Aug 2005 22:10:04 +0000 (GMT) (envelope-from bryan.maynard@reallm.com) Received: from hosting.sourcit.net (mail3.eitsolutions.net [68.23.20.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B6E843D46 for ; Tue, 2 Aug 2005 22:10:03 +0000 (GMT) (envelope-from bryan.maynard@reallm.com) Received: (qmail 23635 invoked from network); 2 Aug 2005 17:10:03 -0500 Received: from al1-24.207.169.154.charter-stl.com (HELO ?192.168.1.101?) (24.207.169.154) by sourcit.net with SMTP; 2 Aug 2005 17:10:03 -0500 From: Bryan Maynard Organization: Sofos Nikitis To: freebsd-questions@freebsd.org Date: Tue, 2 Aug 2005 17:09:05 +0000 User-Agent: KMail/1.8.1 References: <080220052008.22881.42EFD2C2000192A70000596121602813029C9B9C0704D39D0A020207990B@att.net> In-Reply-To: <080220052008.22881.42EFD2C2000192A70000596121602813029C9B9C0704D39D0A020207990B@att.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508021709.05608.bryan.maynard@reallm.com> Subject: Re: hard drive not properly dismounted 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: Tue, 02 Aug 2005 22:10:04 -0000 On Tuesday 02 August 2005 08:08 pm, dwinner-lists@att.net wrote: >Hello, > >I have a second hard drive in my docking station that gets mounted at > each boot as /hd2. > >For the past few weeks, everytime I boot, I get the message > >"/hd2 not properly dismounted" > >I have a script in /usr/local/etc/rc.d that automatically mounts and > unmounts /hd2 at boot and shutdown. > >Also, if I just unmount /hd2 manually, I still get that message. > >I've run fsck on it, can still access when booted, and don't see > anything wrong. > >Why am I getting that message? If the laptop (or docking station) lost power or was forcably powered off the drive will be left in an inconsistant state - causing the error message you're seeing. I have had this happen to me a few times. I booted into single-user mode by entering "boot -s" at the boot countdown (after pressing "space"). Once the system is up (and before I mount any drives) I run "fsck -y". This runs fsck and answers "yes" to all questions. Check the man-page for all availible options. If you want to run fsck interactively, leave "-y" off. >Any ideas? Hope that helps :-D >Thanks, >DW Thanks, Bryan -- Open Source: by the people, for the people.