Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2012 08:21:33 +0400
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        Nenhum_de_Nos <matheus@eternamente.info>
Cc:        stable@freebsd.org
Subject:   Re: problem: bsdlabel
Message-ID:  <4F73E34D.9060302@FreeBSD.org>
In-Reply-To: <e64ad987dca84010c969bc3eae222179.squirrel@109.169.62.232>
References:  <e64ad987dca84010c969bc3eae222179.squirrel@109.169.62.232>

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

On 28.03.2012 20:41, Nenhum_de_Nos wrote:
> hail,
>=20
> I partitioned the disk this way:
>=20
>  fdisk da0
> ******* Working on device /dev/da0 *******
> parameters extracted from in-core disklabel are:
> cylinders=3D12161 heads=3D255 sectors/track=3D63 (16065 blks/cyl)
>=20
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=3D12161 heads=3D255 sectors/track=3D63 (16065 blks/cyl)
>=20
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 166 (0xa6),(OpenBSD)
>     start 126, size 20964699 (10236 Meg), flag 0
>         beg: cyl 0/ head 2/ sector 1;
>         end: cyl 280/ head 254/ sector 63
> The data for partition 2 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
>     start 20971629, size 8379126 (4091 Meg), flag 0
>         beg: cyl 281/ head 108/ sector 1;
>         end: cyl 802/ head 254/ sector 63
> The data for partition 3 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
>     start 29350755, size 41929650 (20473 Meg), flag 0
>         beg: cyl 803/ head 0/ sector 1;
>         end: cyl 340/ head 254/ sector 63
> The data for partition 4 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
>     start 71280405, size 124086060 (60588 Meg), flag 80 (active)
>         beg: cyl 341/ head 0/ sector 1;
>         end: cyl 896/ head 254/ sector 63
>=20
>=20
> but when was time to label it, I did it wrong:
>=20
> bsdlabel -w da0
>=20
> should have aimed slice 2
>=20
> now, I just get da0 on /dev and sysinstall only sees da0 also. but fdis=
k sees it all (as showed
> above)
>=20
> how can I erase all label info from da0 (not da0s1 or da0s2).
> I tried to rewrite fdisk and all mbr info, but label info is still ther=
e.
> I'd like not to have to reinstall OpenBSD, if possible.

First of in the future you should use gpart(8) utility to manage partitio=
ns and slices.
bsdlabel keeps metadata in the second sector. Therefore you should rewrit=
e it to destroy
label. But to be sure please show output of this command:

# gpart show

--=20
WBR, Andrey V. Elsukov


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJPc+NTAAoJEAHF6gQQyKF68dIH/it0Vf1yRv3jXTPms8Ls94M/
Sa5NGX2SfZpfIEIODwPBequTVnUUw8AEkl8tCSG3aH+zTtoYr3Fkmm1JWZKMe0zZ
hzSl8LxsqcZH/Nry96EwtdBFsmE7l7L6h/31CHhf2zOhEDLKu53jyCsAZJwH9PqK
/lGz3dAJn+GJFgckRfqXCZy806WceGeIwcFTmJNN7sn/klT+IsE9HbXv0j4eaa8Z
f6R0g5CBFwWQpPHnEVIRo00qX1c08kubX73iigCWDdetzQn3h4qtkMYngCmpQiqA
HoVjFTwiX2W+DSYy3NYI7u6/jfIUHFm3IlKTUG5h9Xg77T0jCVa9o92CvwFdbYQ=
=C/iX
-----END PGP SIGNATURE-----

--------------enig8F741C0FA30B1810FC2D6C2D--



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