Skip site navigation (1)Skip section navigation (2)
Date:      10 Jul 2000 20:16:50 -0700
From:      Harry Putnam <reader@newsguy.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   disklabel output confusing or meaningless
Message-ID:  <m2bt058ifx.fsf@reader.ptw.com>

next in thread | raw e-mail | index | archive | help

Coming from a linux background I'm used to using fdisk to get
important info such as what device names are attache to what partition.

Linux fdisk gives a clear precise output, formated in a sensible easy
to read fashion.  Usable to write fstab or create mount commands etc.

FreeBSD's `fdisk' gives a poorly formatted jumble of information most of
which is nearly useless since it is not related to any device names.
Just uses a numbering system, completely different than used by the
OS.

Someone told me to use `disklabel' to get information about disks.

Using disklabel -r  /dev/ad0s4e  ( a recently created
`anex' partition)

I see what appears to be at best confusing and at worst nonsense
information.

[...] snip
 8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:  3213000        0    unused        0     0         # (Cyl.    0 - 199)
  e:  3213000        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 199)
root@satellite /


This is one partition but it is reported as 8.

Apparentluy two of those 8 are displayed, but wait, they are both at
the same offset, span the same cylinders and are the same size. That
size is twice what I partitioned.

Wait again, one is unused and the other is 4.2bsd.  

Hopeless gibberish apparently.

Is there an aftermarket or ported or whatever util that gives usabel
readable information about the disk setup?





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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