From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 16 22:45:58 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 AC9D116A4CE for ; Sat, 16 Apr 2005 22:45:58 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4613143D48 for ; Sat, 16 Apr 2005 22:45:58 +0000 (GMT) (envelope-from mrparsons@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so845359rng for ; Sat, 16 Apr 2005 15:45:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=a4u+vZUpHmyFoNahNmxOCbSkODWNGwCmhUlnLsia6irTZtFfDTS/D+IDFambqXASptD3cNqAJ9fkd0MbIp/zCLtWaR9mpx1vFF8tUv7MAuCBXxD0vKqXb9QR66uELK+IUE0VF2xEfTcDBUI2uJT3N4pJhNREAoEK4qZ4+FL6Nhk= Received: by 10.38.125.64 with SMTP id x64mr3451260rnc; Sat, 16 Apr 2005 15:45:57 -0700 (PDT) Received: from ?192.168.0.2? ([70.49.41.137]) by mx.gmail.com with ESMTP id 75sm850869rnb.2005.04.16.15.45.57; Sat, 16 Apr 2005 15:45:57 -0700 (PDT) Message-ID: <426195AB.7010302@gmail.com> Date: Sat, 16 Apr 2005 18:46:03 -0400 From: "M. Parsons" User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <426173A4.90200@gmail.com> <20050416170356.E70414@eleanor.us1.wmi.uvac.net> In-Reply-To: <20050416170356.E70414@eleanor.us1.wmi.uvac.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 16 Apr 2005 22:45:58 -0000 c0ldbyte wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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 Well, I just said screw it, backed up the files I needed, then converted the whole disk to UFS. Time to wash my hands clean of linux anywas. :-) Still sort of worried that reboot wasnt unmounting the linux drive, but oh well, no more worries now. :) Mark