Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2003 05:33:03 -0600
From:      Sean Kelly <smkelly@zombie.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        phk@freebsd.org, current@freebsd.org
Subject:   Re: GEOM prevents bootblocks writing
Message-ID:  <20030112113303.GA1056@edgemaster.zombie.org>
In-Reply-To: <20021222003837.GA1855@nagual.pp.ru>
References:  <20021222003837.GA1855@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Since I haven't seen any response to this, I'll "me too" it in hopes that
it will get some attention drawn to it.

Not only do I have seem to somehow broken my bootblocks so boot0 beeps at
me when I select "F1 FreeBSD", I am now no longer able to write new
bootblocks:

edgemaster# disklabel -r ad1s1
=2E..
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1024000  6291456    4.2BSD     2048 16384    90   # (Cyl.  391*-
455*)
  b:  6291456        0      swap                        # (Cyl.    0 -
391*)
  c: 117226242        0    unused        0     0        # (Cyl.    0 -
7296*)
  e: 10485760  7315456    4.2BSD     2048 16384    89   # (Cyl.  455*-
1108*)
  f: 99425026 17801216    4.2BSD     2048 16384    89   # (Cyl. 1108*-
7296*)

edgemaster# disklabel -r ad1s1
=2E..
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1024000  6291519    4.2BSD     2048 16384    90   # (Cyl.  391*-
455*)
  b:  6291456       63      swap                        # (Cyl.    0*-
391*)
  c: 117226242       63    unused        0     0        # (Cyl.    0*-
7296*)
  e: 10485760  7315519    4.2BSD     2048 16384    89   # (Cyl.  455*-
1108*)
  f: 99425026 17801279    4.2BSD     2048 16384    89   # (Cyl. 1108*-
7296*)
partition c: partition extends past end of unit
Warning, partition c doesn't start at 0!
Warning, An incorrect partition c may cause problems for standard system
utiliti
es
partition f: partition extends past end of unit

edgemaster# disklabel -B ad1s1
partition c: partition extends past end of unit
Warning, partition c doesn't start at 0!
Warning, An incorrect partition c may cause problems for standard system ut=
ilities
partition f: partition extends past end of unit
edgemaster#


I'm not even sure what is going on here, but something is clearly not
right. Like I said, I can't even boot this anymore.

  F1  FreeBSD
  F5  Disk 0
Selecting F1 just beeps at me. Fortunately I can still go to disk 0 and
boot via boot2.

Help :(

On Sun, Dec 22, 2002 at 03:38:37AM +0300, Andrey A. Chernov wrote:
> Now I can't update my bootblocks to new ones using 'disklabel -B da0s1',
> checklabel() disklabel function return error preventing actual write with=
=20
> following diagnostic:
>=20
> partition b: partition extends past end of unit
> partition c: partition extends past end of unit
> Warning, partition c doesn't start at 0!
> Warning, An incorrect partition c may cause problems for standard system =
utilities
> Warning, partition d: size 0, but offset 32
> Warning, partition e: size 0, but offset 32
> Warning, partition f: size 0, but offset 32
> Warning, partition g: size 0, but offset 32
> Warning, partition h: size 0, but offset 32
>=20
> In fact, this is exact the same diagnostic as from 'disklabel -r da0s1':
>=20
> # /dev/da0s1c:
> type: SCSI
> disk: da0s1
> label:=20
> flags:
> bytes/sector: 512
> sectors/track: 32
> tracks/cylinder: 64
> sectors/cylinder: 2048
> cylinders: 17500
> sectors/unit: 35842016
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0		# milliseconds
> track-to-track seek: 0	# milliseconds
> drivedata: 0=20
>=20
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   a: 34611200       32    4.2BSD     2048 16384    64 	# (Cyl.    0*- 169=
00)
>   b:  1230816 34611232      swap                    	# (Cyl. 16900*- 1750=
0*)
>   c: 35842016       32    unused        0     0       	# (Cyl.    0*- 175=
00*)
> partition b: partition extends past end of unit
> partition c: partition extends past end of unit
> Warning, partition c doesn't start at 0!
> Warning, An incorrect partition c may cause problems for standard system =
utilities
> Warning, partition d: size 0, but offset 32
> Warning, partition e: size 0, but offset 32
> Warning, partition f: size 0, but offset 32
> Warning, partition g: size 0, but offset 32
> Warning, partition h: size 0, but offset 32
>=20
> For comparison see just 'disklabel da0s1' output which indicate no errors=
=20
> and no mysterious offset 32 in the data:
>=20
> # /dev/da0s1c:
> type: SCSI
> disk: da0s1
> label:=20
> flags:
> bytes/sector: 512
> sectors/track: 32
> tracks/cylinder: 64
> sectors/cylinder: 2048
> cylinders: 17500
> sectors/unit: 35842016
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0		# milliseconds
> track-to-track seek: 0	# milliseconds
> drivedata: 0=20
>=20
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   a: 34611200        0    4.2BSD     2048 16384    64 	# (Cyl.    0 - 168=
99)
>   b:  1230816 34611200      swap                    	# (Cyl. 16900 - 1750=
0*)
>   c: 35842016        0    unused        0     0       	# (Cyl.    0 - 175=
00*)
>=20
> Please fix this GEOM bug, to allow to update bootblocks at least.
>=20
> --=20
> Andrey A. Chernov
> http://ache.pp.ru/
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message

--=20
Sean Kelly         | PGP KeyID: D2E5E296
smkelly@zombie.org | http://www.zombie.org

--X1bOJ3K7DJ5YkBrT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+IVJuPm7A9NLl4pYRAkv8AKCIg+HDRkvh/JMgsicSxnFwzw5rAgCgodM+
SIAmam9WqBCAxsjpktVRPmw=
=4aPR
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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