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

[-- Attachment #1 --]
On 28.03.2012 20:41, Nenhum_de_Nos wrote:
> hail,
> 
> I partitioned the disk this way:
> 
>  fdisk da0
> ******* Working on device /dev/da0 *******
> parameters extracted from in-core disklabel are:
> cylinders=12161 heads=255 sectors/track=63 (16065 blks/cyl)
> 
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=12161 heads=255 sectors/track=63 (16065 blks/cyl)
> 
> 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
> 
> 
> but when was time to label it, I did it wrong:
> 
> bsdlabel -w da0
> 
> should have aimed slice 2
> 
> now, I just get da0 on /dev and sysinstall only sees da0 also. but fdisk sees it all (as showed
> above)
> 
> 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 there.
> I'd like not to have to reinstall OpenBSD, if possible.

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

# gpart show

-- 
WBR, Andrey V. Elsukov


[-- Attachment #2 --]
-----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-----

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