Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2010 22:33:14 -0600
From:      Peter Steele <psteele@maxiscale.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   fsck cannot determine fstype automatically
Message-ID:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB3A1A5C31@MBX03.exg5.exghost.com>

next in thread | raw e-mail | index | archive | help
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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B9397B189EB6E46A5EE7B4C8A4BB7CB3A1A5C31>