problem: bsdlabel

Andrey V. Elsukov ae at FreeBSD.org
Thu Mar 29 04:27:47 UTC 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120329/aa230b7d/signature.pgp


More information about the freebsd-stable mailing list