From owner-freebsd-fs@FreeBSD.ORG Sun Jan 4 02:19:03 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B912B16A4CE; Sun, 4 Jan 2004 02:19:03 -0800 (PST) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2B1543D5E; Sun, 4 Jan 2004 02:18:52 -0800 (PST) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id C31E0FFF7; Sun, 4 Jan 2004 11:18:51 +0100 (CET) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i04AIoFO001743; Sun, 4 Jan 2004 11:18:50 +0100 (CET) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost)i04AIoC9001742; Sun, 4 Jan 2004 11:18:50 +0100 (CET) (envelope-from schweikh) Date: Sun, 4 Jan 2004 11:18:50 +0100 From: Jens Schweikhardt To: "Greg 'groggy' Lehey" Message-ID: <20040104101850.GA1169@schweikhardt.net> References: <20040103160313.GA54680@schweikhardt.net> <20040104031138.GE7617@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040104031138.GE7617@wantadilla.lemis.com> User-Agent: Mutt/1.5.5.1i cc: fs@freebsd.org Subject: Re: fsck(8), /etc/fstab and vinum X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2004 10:19:03 -0000 Grog, On Sun, Jan 04, 2004 at 01:41:38PM +1030, Greg 'groggy' Lehey wrote: # On Saturday, 3 January 2004 at 17:03:13 +0100, Jens Schweikhardt wrote: # > hello, world\n # > # > it appears fsck can't determine the file system type for ufs on vinum # > partitions if there is no entry in /etc/fstab, # # Yes, there are difficulties, depending on the name of the volume. /dev/vinum/Ports in this case. # > even when I use fsck -T ufs:ro /dev/vinum/foo. # # Hmm. I haven't tried this. It works fine with -t ufs, at least on # -CURRENT. Do you have trouble with that? Yes. On -CURRENT -T ufs: only works when /etc/fstab already has an entry for /dev/vinum/Ports. Starting without an entry in /etc/fstab: root@hal9000: # uname -a FreeBSD hal9000.schweikhardt.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Dec 22 15:03:45 CET 2003 toor@hal9000.schweikhardt.net:/usr/obj/usr/src/sys/HAL9000 i386 root@hal9000: # fsck -T ufs /dev/vinum/Ports fsck: Invalid option string root@hal9000: 1 # fsck -T ufs: /dev/vinum/Ports fsck: Could not determine filesystem type root@hal9000: 1 # fsck -T ufs:ro /dev/vinum/Ports fsck: Could not determine filesystem type root@hal9000: 1 # mount /dev/vinum/Ports /mnt root@hal9000: # df /dev/vinum/Ports Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/vinum/Ports 8131083 1 7480596 0% /mnt root@hal9000: # echo '/dev/vinum/Ports /mnt ufs rw,noatime,noauto 0 2' >> /etc/fstab root@hal9000: # umount /dev/vinum/Ports root@hal9000: # fsck /dev/vinum/Ports ** /dev/vinum/Ports ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 1 files, 1 used, 8131082 free (18 frags, 1016383 blocks, 0.0% fragmentation) root@hal9000: # fsck -T ufs /dev/vinum/Ports fsck: Invalid option string root@hal9000: 1 # fsck -T ufs: /dev/vinum/Ports ** /dev/vinum/Ports ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 1 files, 1 used, 8131082 free (18 frags, 1016383 blocks, 0.0% fragmentation) root@hal9000: # fsck -T ufs:ro /dev/vinum/Ports fsck_ufs: illegal option -- o usage: fsck_ufs [-BFpfny] [-b block] [-c level] [-m mode] file system ... Hmm. The last usage message looks suspicious. Is something wrong with fsck's option parsing or passing to fsck_ufs? Thanks for any input, and, before it's over, happy new year! Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)