Date: Sun, 18 Jan 2015 14:41:36 -0700 From: Warner Losh <imp@bsdimp.com> To: Michael Tuexen <tuexen@freebsd.org> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Raspberry Pi stability improved Message-ID: <DBE5557E-81E3-42E2-8F1F-A0865E9AC477@bsdimp.com> In-Reply-To: <DB7CB7F1-79A7-4F0D-8C99-8A62AFC74D6A@freebsd.org> References: <DE1783C0-C19F-448D-92EF-A51826D7FE2B@freebsd.org> <B1DA56CBB1774BB4ACE66D69BB9A662F@ad.peach.ne.jp> <DB7CB7F1-79A7-4F0D-8C99-8A62AFC74D6A@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
> On Jan 18, 2015, at 11:29 AM, Michael Tuexen <tuexen@freebsd.org> wrote:
>
> On 18 Jan 2015, at 16:51, Daisuke Aoyama <aoyama@peach.ne.jp> wrote:
>>
>> Hi Michael,
>>
>> Did you use /etc/rc.d/autosize ("option AutoSize" in crochet-freebsd)?
> No, I used (for a year or so) the script from
> git://github.com/daveish/freebsd-arm-tools.git
> and did a manual resize after the system got up.
If you reside with gpart, you may hit a frustratingly stupid gpart bug.
We tell a lie about the CHS of the SD cards. This lie works its way into the alignment of the partitions.
The md and da devices also lie about the CHS of SD cards. They tell different lies (and often times
different USB adapters tell different lies) so that screws up gpart. It assumes that the CHS is The Truth
and The One True Way to create partitions is to have them cylinder group sized and aligned, even when
resizing an existing partition. However, since the CHS is a lie, and nobody can get their story straight,
gpart expresses its displeasure by starting the partition at a new location, effectively killing your
filesystem which now starts at the wrong place on the disk...
That’s what’s killing the autoresize. :( Sadly, I have no fix for this, but it is a problem I hit about 6-9 months
ago… I talked about the problem then, but I can’t recall if it was on a public mailing list or just private
email to part’s author.
Warner
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJUvCiQAAoJEGwc0Sh9sBEApfkP/jG57gmTb3pwanxHDIEixo6u
ePjNoxI6vsrNYuqojrhcfnwMErMNEk1z69UGiXKmtzbr3jXjZCZv7EZWrnDFBFps
kPiVhnI9OGkmQD6vBg5em6x4i0GYR7CnoFKXmTuWrpE8dGTOzxVjihkPdJKBryJB
gBjIJX8spApHDzTafH0u0m5qPT8NuAOrMb7fb7YTwlbopXvRGd3Kz2ufSCeH4wlD
x4/mYTjYCSrR1lLHUhelwclgTEoH8BPmd3RE5KkQO+npOcFiBpmrvF3kvSVtHN9i
8aczq0Z6q9BnZqVdOKDsQld4iwGCSlKCtoXfAXz5L6ARkGi4Dz4wJt2/LEsEq+vv
RJqa/cvLXo0i4jFIAD1j22mWHfbi1zjGTgxTRBYN7DDfEymNoIlc37o89cEsf4x7
uNLj6RdQ4Y0GWZ+BVea6avl2Jeh2NdrczS0KLNk1Qp4GtWEobqStRQ24FjpkTX3z
5+/udKvYqvb/qUetlqLC8ZVsjYM4PmNKPk4qAnbvQnVpOCZQTV9ssz7gWG6S3yub
BFy+C4q9ernyrt1wIkvs/qd+6gki5p9Z9hx7WSP0PY/yVGwSu5GaoYdjA0XhDYD7
d237ZyvTdit1UZUmdAsOwqkl3NhqsYgjyxwDZYyLepnObR2/rqlgYHYtkxuU6cME
DOCKW9PPrGQHN3yo/Hh/
=aZ+j
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBE5557E-81E3-42E2-8F1F-A0865E9AC477>
