From owner-freebsd-current@FreeBSD.ORG Sun Feb 3 12:15:17 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C80216A420 for ; Sun, 3 Feb 2008 12:15:17 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id AE89313C459 for ; Sun, 3 Feb 2008 12:15:16 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id m13CFEJa040513 for ; Sun, 3 Feb 2008 15:15:14 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id m13CFEff040512 for freebsd-current@freebsd.org; Sun, 3 Feb 2008 15:15:14 +0300 (MSK) (envelope-from yar) Date: Sun, 3 Feb 2008 15:15:14 +0300 From: Yar Tikhiy To: freebsd-current@freebsd.org Message-ID: <20080203121514.GI3539@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: fsck remounts / read-write? 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: Sun, 03 Feb 2008 12:15:17 -0000 Hi all, Has anybody else noticed the following strangeness: running fsck on the read-only / (from single user) results in the / mount upgraded to read-write? E.g.: Trying to mount root from ufs:/dev/ad0s3a WARNING: / was not properly dismounted start_init: trying /sbin/init Enter full pathname of shell or RETURN for /bin/sh: # mount /dev/ad0s3a on / (ufs, local, read-only) devfs on /dev (devfs, local) # fsck / ** /dev/ad0s3a ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 3850 files, 189623 used, 64192 free (680 frags, 7939 blocks, 0.3% fragmentation) ***** FILE SYSTEM MARKED CLEAN ***** # mount /dev/ad0s3a on / (ufs, local) devfs on /dev (devfs, local) I guess that `fsck /' issues a mount reload after modifying the FS, but IMHO it shouldn't remount the FS read-write, should it? -- Yar