Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2017 17:38:27 +0000
From:      Guangyuan Yang <yzgyyang@outlook.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: RaspberryPi 3 freezes on single user mode (init 1)
Message-ID:  <SG2PR0301MB12211DFFEF063A0C9171DC1FD0AD0@SG2PR0301MB1221.apcprd03.prod.outlook.com>
In-Reply-To: <20170713163403.10ef76b0@unixbase>
References:  <20170713163403.10ef76b0@unixbase>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, July 13, 2017 10:34:03 AM EDT sVx wrote:
> Hi,
>=20
> I've installed RaspBSD (FreeBSD-aarch64-12.0-GENERIC-320146M.img) on an
> 4 GB microSD-Card for a RaspberryPi 3. So far it boots and runs fine but =
I
> would like to expand the root slice (the only slice) over the full disk
> space but I cannot enter single user mode.
>=20
> Un-commenting in /etc/rc.conf 'growfs_enable=3D"YES"' and rebooting has n=
o
> effect. So I tried the manual way via `gpart resize /dev/mmcsd0s2` but
> growfs(8) cannot expand root because root is mounted -- I guess. So I
> tried `init 1` which just directly freezes the system as well as
> `nextboot -o "-s" -k kernel` which hangs right after detecting the
> keyboard. Guess in both cases it just freezes.

Can confirm that 'growfs_enable=3DYES' is not working properly on RaspBSD.
Instead, running a 'service growfs onestart' worked for me:

root@rpi3:~ # service growfs onestart
Growing root partition to fill device
GEOM_PART: mmcsd0s2 was automatically resized.
  Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` to=20
revert them.
mmcsd0s2 resized
mmcsd0s2a resized
super-block backups (for fsck_ffs -b #) at:
 3705024, 4631232, 5557440, 6483648, 7409856, 8336064, 9262272, 10188480,
 11114688, 12040896, 12967104, 13893312, 14819520, 15745728, 16671936,
 17598144, 18524352, 19450560, 20376768, 21302976, 22229184, 23155392,
 24081600, 25007808, 25934016, 26860224, 27786432, 28712640, 29638848,
 30565056, 31491264, 32417472, 33343680, 34269888, 35196096, 36122304,
 37048512, 37974720, 38900928, 39827136, 40753344, 41679552, 42605760,
 43531968, 44458176, 45384384, 46310592, 47236800, 48163008, 49089216,
 50015424, 50941632, 51867840, 52794048, 53720256, 54646464, 55572672,
 56498880, 57425088, 58351296, 59277504, 60203712, 61129920
root@rpi3:~ # gpart show
=3D>      63  61896641  mmcsd0  MBR  (30G)
        63    102375       1  !12  [active]  (50M)
    102438       986          - free -  (493K)
    103424  61787136       2  freebsd  (29G)
  61890560      6144          - free -  (3.0M)

=3D>       0  61787136  mmcsd0s2  BSD  (29G)
         0  61787136         1  freebsd-ufs  (29G)root@rpi3:~ # service gro=
wfs=20
onestart
Growing root partition to fill device
GEOM_PART: mmcsd0s2 was automatically resized.
  Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` to=20
revert them.
mmcsd0s2 resized
mmcsd0s2a resized
super-block backups (for fsck_ffs -b #) at:
 3705024, 4631232, 5557440, 6483648, 7409856, 8336064, 9262272, 10188480,
 11114688, 12040896, 12967104, 13893312, 14819520, 15745728, 16671936,
 17598144, 18524352, 19450560, 20376768, 21302976, 22229184, 23155392,
 24081600, 25007808, 25934016, 26860224, 27786432, 28712640, 29638848,
 30565056, 31491264, 32417472, 33343680, 34269888, 35196096, 36122304,
 37048512, 37974720, 38900928, 39827136, 40753344, 41679552, 42605760,
 43531968, 44458176, 45384384, 46310592, 47236800, 48163008, 49089216,
 50015424, 50941632, 51867840, 52794048, 53720256, 54646464, 55572672,
 56498880, 57425088, 58351296, 59277504, 60203712, 61129920
root@rpi3:~ # gpart show
=3D>      63  61896641  mmcsd0  MBR  (30G)
        63    102375       1  !12  [active]  (50M)
    102438       986          - free -  (493K)
    103424  61787136       2  freebsd  (29G)
  61890560      6144          - free -  (3.0M)

=3D>       0  61787136  mmcsd0s2  BSD  (29G)
         0  61787136         1  freebsd-ufs  (29G)

Cheers,
Guangyuan Yang






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