From owner-freebsd-stable@FreeBSD.ORG Thu Mar 29 04:27:47 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF260106564A for ; Thu, 29 Mar 2012 04:27:47 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mail.kirov.so-ups.ru (ns.kirov.so-ups.ru [178.74.170.1]) by mx1.freebsd.org (Postfix) with ESMTP id 2F9088FC0A for ; Thu, 29 Mar 2012 04:27:47 +0000 (UTC) Received: from kas30pipe.localhost (localhost.kirov.so-ups.ru [127.0.0.1]) by mail.kirov.so-ups.ru (Postfix) with SMTP id 9919EB8029; Thu, 29 Mar 2012 08:21:39 +0400 (MSK) Received: from kirov.so-ups.ru (unknown [172.21.81.1]) by mail.kirov.so-ups.ru (Postfix) with ESMTP id 7B98AB8008; Thu, 29 Mar 2012 08:21:39 +0400 (MSK) Received: by ns.kirov.so-ups.ru (Postfix, from userid 1010) id 7807FBA006; Thu, 29 Mar 2012 08:21:39 +0400 (MSK) Received: from [127.0.0.1] (elsukov.kirov.oduur.so [10.118.3.52]) by ns.kirov.so-ups.ru (Postfix) with ESMTP id 3B713B9FF8; Thu, 29 Mar 2012 08:21:39 +0400 (MSK) Message-ID: <4F73E34D.9060302@FreeBSD.org> Date: Thu, 29 Mar 2012 08:21:33 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Nenhum_de_Nos References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8F741C0FA30B1810FC2D6C2D" X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-SpamTest-Info: Not protected Cc: stable@freebsd.org Subject: Re: problem: bsdlabel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 04:27:47 -0000 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--