Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2012 23:59:50 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Norihiko Murase <mur1080224@inter7.jp>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: (8.3-RELEASE,9.1-BETA) Can't mount the partitions created via 4. 11-RELEASE
Message-ID:  <500EFEB6.3040500@yandex.ru>
In-Reply-To: <20120725001857.3a5526b%mur1080224@inter7.jp>
References:  <20120723134658.153fa6c%mur1080224@inter7.jp> <500CE556.10105@yandex.ru> <20120723174321.22c65ae%mur1080224@inter7.jp> <500D3F2B.9090509@yandex.ru> <20120725001857.3a5526b%mur1080224@inter7.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD3F52DC50C45C206E3149E87
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

On 24.07.2012 19:18, Norihiko Murase wrote:
> does have 2 slices (FDISK partitions) as follows:
>   (1) sysid 165=3D0xA5 (FreeBSD)
>       flag  80 (active)
>       start 63, size 14801409 (7227 MB)
>       BSD partitions: a, b, c, e, f, g
>         - 'a' is for "root" of the 4.11-RELEASE system.
>   (2) sysid 165=3D0xA5 (FreeBSD)
>       flag  00
>       start 14801472, size 5242608 (2559 MB)
>       BSD partitions: c, e
>         - 'e' is used for /home
> Is this HDD under "dangerous dedicated" mode?

No, this is not DD mode. Probably, you did sometime `bsdlabel -w ad16`
and it has created metadata on the ad16.

> Before I start to erase (overwrite with zeroes) this, does
> the following (the dump of the second sector of this "old" HDD)
> match what you expect?

It will be good, if you would made backup of the first 16 sectors of the
ad16s1 too.

> Fixit#=20
> Fixit# dd if=3D/dev/ad16 count=3D1 skip=3D1 | hexdump -C
> 1+0 records in
> 1+0 records out
> 512 bytes transferred in 0.000272 secs (1882107 bytes/sec)
> 00000000  57 45 56 82 05 00 00 00  77 64 30 73 31 00 00 00  |WEV.....wd=
0s1...|
> 00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |..........=
=2E.....|
> 00000020  00 00 00 00 00 00 00 00  00 02 00 00 3f 00 00 00  |..........=
=2E.?...|
> 00000030  ff 00 00 00 df 04 00 00  c1 3e 00 00 30 d9 31 01  |.........>=
=2E.0.1.|
> 00000040  00 00 00 00 00 00 00 00  10 0e 01 00 00 00 00 00  |..........=
=2E.....|
> 00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |..........=
=2E.....|
> *
> 00000080  00 00 00 00 57 45 56 82  b4 21 08 00 00 20 00 00  |....WEV..!=
=2E.. ..|
> 00000090  00 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |. ........=
=2E.....|
> 000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |..........=
=2E.....|
> 000000b0  00 00 00 00 30 d9 31 01  00 00 00 00 00 00 00 00  |....0.1...=
=2E.....|
> 000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |..........=
=2E.....|

So, there is only empty bsdlabel with partition 'c'. You can see this
empty BSD label in the your geom config dump.

  <class id=3D"0xc110a460">
    <name>PART</name>
    <geom id=3D"0xc85d9b00">
      <class ref=3D"0xc110a460"/>
      <name>ada0</name>
      <rank>2</rank>
      <config>
        <scheme>BSD</scheme>
        <entries>8</entries>
        <first>0</first>
        <last>20044079</last>
        <fwsectors>63</fwsectors>
        <fwheads>16</fwheads>
        <state>OK</state>
        <modified>false</modified>
      </config>
        <consumer id=3D"0xc8626b40">
          <geom ref=3D"0xc85d9b00"/>
          <provider ref=3D"0xc84b6c80"/>
          <mode>r0w0e0</mode>
          <config>
          </config>
        </consumer>
    </geom>
  </class>

Your MBR contains two slices ad16s1 and ad16s2, ad16s2 contains 2
partitions 'c' and 'e'. So, if you erase second sector of ad16 they all
should appear.

Note, in the FreeBSD 8.0+ partition 'c' is not visible, and default
partitioning tool is now gpart(8).

--=20
WBR, Andrey V. Elsukov


--------------enigD3F52DC50C45C206E3149E87
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJQDv63AAoJEAHF6gQQyKF6opMH/3mx+PdIA3Q/vvTMJNsf6c1c
3Xn4oLrhNuhfDcDGJPtxM0x/M4540QQSwqe3/lDxx+JplRMUKMZota1i0pWcUfDV
keF0uNU+7epxLxIVABGX4qr4AR7wJe+RZ0HCeYX7HcTi5BSDtIsZ2pJhC2BdEcWn
DscrMaFYYq3f9s249592m8J2IdobWl5Mxafdt6nMs/cKY1nuo0R2wu/3hzEfGQBc
APMlO6Bxj6FPYsvuuZkEEn4WhfaHqx8I1JSuzvIRQBfQQwAbWl0oiJY+7x7ta8LP
XW5Keu/KJXAwoHOeVyBZhFoEZnOxFbTWEJTmi5bAxjKz3Q8+rfQHCjhQ6t3k9Z0=
=jDu1
-----END PGP SIGNATURE-----

--------------enigD3F52DC50C45C206E3149E87--



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