From owner-freebsd-current@FreeBSD.ORG Tue Jun 12 04:00:49 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EED0E16A41F for ; Tue, 12 Jun 2007 04:00:49 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 5F60013C46E for ; Tue, 12 Jun 2007 04:00:49 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so67611uge for ; Mon, 11 Jun 2007 21:00:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pMAzwpVSRpw59/d7dnMFzfs/lrL1cX9geFZUrLzHnH+PzUqbaNU0TlDy9Q6NO96TjOgav5RUeorZHVwhT7A8WACRtOZ/ZzVYJo5V48StaOVBvwUQgwFcSFj2HNrcJiC3DxcRnrBMuGQhMmwFDffKt9Bh9w10z7NNNrVFof1Uk4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aL6LQoon6aNctpftSCd3PXdx3qGP6mp8i1KnrrTHp1O5tfp/0ruHaEjZoFIMZbYf08ivP8EMcuMkTth4to1s7ekxdALnv+rc9y+flnxL1v//CodE5eHp38Okq2ZGCJKRGIVVDzRAYFkDxsqtehaDlYVGiC2QfTZbwqHSfMvsgoc= Received: by 10.82.123.16 with SMTP id v16mr12292798buc.1181620848088; Mon, 11 Jun 2007 21:00:48 -0700 (PDT) Received: by 10.82.187.12 with HTTP; Mon, 11 Jun 2007 21:00:48 -0700 (PDT) Message-ID: Date: Mon, 11 Jun 2007 23:00:48 -0500 From: "illoai@gmail.com" To: "Niki Denev" In-Reply-To: <466D1B2E.5020800@totalterror.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4666D696.4080908@totalterror.net> <20070607091739.GJ7666@obelix.dsto.defence.gov.au> <46682F9F.9090204@totalterror.net> <466D1B2E.5020800@totalterror.net> Cc: freebsd-current@freebsd.org Subject: Re: gjournal + WARNING: R/W mount of / denied. Filesystem not clean - run fsck. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 04:00:50 -0000 On 11/06/07, Niki Denev wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Niki Denev wrote: > > Wilkinson, Alex wrote: > >> 0n Wed, Jun 06, 2007 at 06:45:26PM +0300, Niki Denev wrote: > > > >> > I have the following problem when using gjournal for the root filesystem on my laptop (Sony VAIO PCG-U3) > >> > If there is a unclean shutdown (hard poweroff/ kernel panic) on the next boot the machine starts to load normally, > >> > i have messages as : > >> > > >> > GEOM_JOURNAL: Journal ad0s1a consistent. > >> > Trying to mount root from ufs:/dev/ad0s1a.journal > >> > WARNING: / was not properly dismounted > >> > > >> > Then the system continues with executing fsck in preen mode (fsck -p), > >> > which reports : > >> > /dev/ad0s1a.journal: FILESYSTEM CLEAN; SKIPPING CHECKS > >> > and fsck returns with zero, but after this when a read/write mount is tried the > >> > system barfs this : > >> > > >> > WARNING: R/W mount of / denied. Filesystem not clean - run fsck. > >> > mount: : Operation not permitted > > > >> Make sure your "Pass" column is correct in fstab(5). > > > > What do you mean by correct? Right now it's the default for root > > filesystems "1". Is there a special setting needed for gjournaled > > filesystems? > > > > > > Well, i still can't find a way to make my system skip fsck on unclean > shutdown/reboot. > The strange thing is that "fsck -p" reports that the filesystem is > clean, but the kernel refuses to mount it r/w with the message "WARNING: > R/W mount of / denied. Filesystem is not clean - run fsck" > > I guess i'm doing something wrong.. just can't see what it is.. any > ideas are appreciated. Have you tried fsck without the -p flag? I don't know if fixit mode from the CDROM would do any good on gjournal, though I don't see why the module couldn't be loaded if it existed there. As a last resort you might be able to blow the journal away without mangling your / (I will play with gjournal some to-night, perhaps). -- --