From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 18 11:32:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6156E16A4CE for ; Mon, 18 Apr 2005 11:32:40 +0000 (GMT) Received: from mxsf33.cluster1.charter.net (mxsf33.cluster1.charter.net [209.225.28.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id D68B343D46 for ; Mon, 18 Apr 2005 11:32:39 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip08.cluster1.charter.net (mxip08a.cluster1.charter.net [209.225.28.138])j3IBWcEU025140 for ; Mon, 18 Apr 2005 07:32:38 -0400 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip08.cluster1.charter.net with ESMTP; 18 Apr 2005 07:32:38 -0400 X-Ironport-AV: i="3.92,109,1112587200"; d="scan'208"; a="863007995:sNHT13658580" Date: Mon, 18 Apr 2005 07:32:37 -0400 (EDT) From: c0ldbyte To: Andriy Tkachuk In-Reply-To: <200504181046.35243.ant@emict.com> Message-ID: <20050418073040.X36802@eleanor.us1.wmi.uvac.net> References: <426173A4.90200@gmail.com> <20050416170356.E70414@eleanor.us1.wmi.uvac.net> <200504181046.35243.ant@emict.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: "M. Parsons" Subject: Re: ext2 drives under 5.3 not umounting on reboots X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 11:32:40 -0000 On Mon, 18 Apr 2005, Andriy Tkachuk wrote: > I've had the same problem on 5.3. > now on my FreeBSD 5.4-RC2 #0: Fri Apr 15 11:28:48 EEST 2005 i386 > it seems that problem gone. I would advise once more changing the "Dump" & "Pass#" number fields to "0" for both as I showed on the line below, you would have found out that was causing if any most of your problem with your filesystems being mounted/unmounted properly. > On Sunday 17 April 2005 00:07, c0ldbyte wrote: >> On Sat, 16 Apr 2005, M. Parsons wrote: >> >>> I have a ext2 linux partition mounted under /linux via the fstab line: >>> >>> /dev/ad2s1 /linux ext2fs rw 1 2 >>> >>> It will automount on bootup, but if I do a reboot or shutdown -h now, it >>> doesnt get umounted properly. In fact, if this /linux is mounted, then /, >>> /usr, /var, and /tmp (all seperate ufs slices on another hard drive) also get >>> tainted during a reboot. And on the next startup I get the good ole: >>> WARNING: /usr was not properly dismounted, leaving me to fsck the drives in >>> single mode (which sucks, as the fbsd machine is a headless NAT machine). >>> Running fsck in single mode does fix everything. >>> >>> So whats going on here? reboot aint properly umounting partitions, and fsck >>> doesnt seem to be properly running during bootup if it detects tainted >>> filesystems. >>> >>> Any ideas? >>> >>> Freebsd 5.3 SMP kernel. >> >> Try this line: >> /dev/ad2s1 /linux ext2fs rw 0 0 >> >> But remember the ext2 code has been buggy for a while and is not allways >> a good choice to try and do writes on it. Might be a better choice to >> change rw to ro and to also check that drive/partition for errors with >> its original fsck to fix any errors if there is any then it will most >> likely mount properly and umount properly. >> >> Best of luck, >> --c0ldbyte >> > -- ( When in doubt, use brute force. -- Ken Thompson 1998 )