From owner-freebsd-questions@FreeBSD.ORG Thu Jan 30 10:40:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FDEEED7 for ; Thu, 30 Jan 2014 10:40:34 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 422451E16 for ; Thu, 30 Jan 2014 10:40:33 +0000 (UTC) Received: from r56.edvax.de (port-92-195-45-52.dynamic.qsc.de [92.195.45.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 9AFA63CBC9; Thu, 30 Jan 2014 11:40:25 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s0UAe0XY003514; Thu, 30 Jan 2014 11:40:00 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 30 Jan 2014 11:40:00 +0100 From: Polytropon To: "Christoph P.U. Kukulies" Subject: Re: fsck doesn't recognize FreeBSD filesystems (9.2) Message-Id: <20140130114000.e04f922a.freebsd@edvax.de> In-Reply-To: <52EA27F6.2030308@kukulies.org> References: <52EA27F6.2030308@kukulies.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jan 2014 10:40:34 -0000 On Thu, 30 Jan 2014 11:22:46 +0100, Christoph P.U. Kukulies wrote: > I just was wondering why the following did not work: > > root@isdn:/dev # mount /dev/ad6s1a /mnt/ad6s1a > mount: /dev/ad6s1a: R/W mount of / denied. Filesystem is not clean - run > fsck.: Operation not permitted > root@isdn:/dev # fsck /dev/ad6s1a > fsck: Could not determine filesystem type <<<<<<<<<<<<<<<<<<<<<<<< > root@isdn:/dev # fsck -t ufs /dev/ad6s1a > ** /dev/ad6s1a > ** Last Mounted on / > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 1867 files, 82726 used, 423761 free (3385 frags, 52547 blocks, 0.7% > fragmentation) > > ***** FILE SYSTEM MARKED CLEAN ***** > > > I had thought that FreeBSD could recognize its own filesystems (though > this one is from an earlier version of FreeBSD) What you're experiencing is fully normal and intended. The detection mechanism is not based upon actual file system types, but instead relies on what /etc/fstab defines (either by reference of the mount point or the device file or associated label). See "man fsck": The fsck utility invokes file system-specific programs to check the spe- cial devices listed in the fstab(5) file or in the command line for con- sistency. If your /etc/fstab has an entry for /dev/ad6s1a or /mnt/ad6s1a with the ufs file system specifier, both # fsck /dev/ad6s1a and # fsck /mnt/ad6s1a should work as you intend. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...