Raspberry Pi stability improved

Warner Losh imp at bsdimp.com
Sun Jan 18 21:41:40 UTC 2015


> On Jan 18, 2015, at 11:29 AM, Michael Tuexen <tuexen at freebsd.org> wrote:
> 
> On 18 Jan 2015, at 16:51, Daisuke Aoyama <aoyama at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150118/40eeb511/attachment.sig>


More information about the freebsd-arm mailing list