Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2010 15:07:03 +0200
From:      Reinhard Haller <reinhard.haller@interactive-net.de>
To:        freebsd-questions@freebsd.org
Cc:        xcllnt@mac.com
Subject:   8.0 upgrade & geometry does not match label
Message-ID:  <4BD98477.10003@interactive-net.de>

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

as far as I know my disk is not operating in dangerously dedicated mode.
Despite this I'm unable to upgrade to freebsd 8.0. Here is what the
gpart, mount, bsdlabel say.

gpart show
=>       63  488397105  ad4  MBR  (233G)
         63  488392002    1  freebsd  [active]  (233G)
  488392065       5103       - free -  (2.5M)

=>        0  488392002  ad4s1  BSD  (233G)
          0    2097152      1  freebsd-ufs  (1.0G)
    2097152   16777216      2  freebsd-swap  (8.0G)
   18874368   16777216      4  freebsd-ufs  (8.0G)
   35651584    4194304      5  freebsd-ufs  (2.0G)
   39845888   83886080      6  freebsd-ufs  (40G)
  123731968  188743680      7  freebsd-ufs  (90G)
  312475648  175916354         - free -  (84G)

mount
/dev/ad4s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad4s1g on /jails (ufs, local, soft-updates)
/dev/ad4s1e on /tmp (ufs, local, soft-updates)
/dev/ad4s1f on /usr (ufs, local, soft-updates)
/dev/ad4s1d on /var (ufs, local, soft-updates)

bsdlabel ad4
bsdlabel: /dev/ad4: no valid label found

bsdlabel ad4s1
# /dev/ad4s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  2097152       63    4.2BSD        0     0     0
  b: 16777216  2097215      swap
  c: 488392002       63    unused        0     0         # "raw" part,
don't edit
  d: 16777216 18874431    4.2BSD        0     0     0
  e:  4194304 35651647    4.2BSD        0     0     0
  f: 83886080 39845951    4.2BSD        0     0     0
  g: 188743680 123732031    4.2BSD        0     0     0
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities

I remember problems with the initial sysinstall because of geometry
problems -- the only way to get FreeBSD installed was to dedicate all of
the available space to FreeBSD.

I've found a suggested solution to repair the mbr/label problem with

dd if=/dev/zero of=/dev/ad4 count=1 oseek=1

and a warning not trying it on boot disks.

Is there a better / safer solution around?

Thanks
Reinhard




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