From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 04:33:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0D86106564A for ; Thu, 4 Mar 2010 04:33:17 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505e.appriver.com [98.129.35.9]) by mx1.freebsd.org (Postfix) with ESMTP id 82C718FC1D for ; Thu, 4 Mar 2010 04:33:17 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.45 X-Note-Reverse-DNS: ht03.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G179 G180 G181 G182 G186 G187 G198 G285 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.45] (HELO HT03.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 26701479 for freebsd-questions@freebsd.org; Wed, 03 Mar 2010 22:33:18 -0600 Received: from mbx03.exg5.exghost.com ([169.254.1.200]) by HT03.exg5.exghost.com ([10.242.228.75]) with mapi; Wed, 3 Mar 2010 22:33:16 -0600 From: Peter Steele To: "freebsd-questions@freebsd.org" Date: Wed, 3 Mar 2010 22:33:14 -0600 Thread-Topic: fsck cannot determine fstype automatically Thread-Index: Acq7UtZjCHd+QmfKQG6VG1ApAMC33Q== Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3A1A5C31@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: fsck cannot determine fstype automatically X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 04:33:18 -0000 We use gpart to create GPT style partitions. For example: # gpart show ad4 =3D> 34 490234685 ad4 GPT (234G) 34 16 1 freebsd-boot (8.0K) 50 67108864 2 freebsd-swap (32G) 67108914 67108864 3 freebsd-swap (32G) 134217778 10485760 4 freebsd-ufs (5.0G) 144703538 25165824 5 freebsd-ufs (12G) 169869362 11719060 6 freebsd (5.6G) 181588422 200620089 7 freebsd-ufs (96G) 382208511 108026208 8 freebsd-ufs (52G) In this case, partitions 3, 4, and 5 are mirrored with equivalent partition= s on another drive and these appear to be working fine. Partitions 7 and 8 = are strictly data partitions and not mirrored. When I try to run fsck again= st them, I get this: # fsck /dev/ad4p4 =20 fsck: Could not determine filesystem type I have to specify the file system type explicitly: # fsck -t ufs /dev/ad4p7 ** /dev/ad4p7 (NO WRITE) ** Last Mounted on /v0 ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 39 files, 553 used, 48573784 free (24 frags, 6071720 blocks, 0.0% fragmenta= tion) Why do I have to specify the fstype explicitly? I have a similar system con= figured with fdisk/bsdlabel and the fsck command doesn't have any problems = with determining the fstype. Is there something we need to do to allow the = fstype of GPT partitions to be automatically determined by fsck?