RaspberryPi 3 freezes on single user mode (init 1)

Tim Kientzle tim at kientzle.com
Sat Jul 29 18:13:36 UTC 2017


> On Jul 14, 2017, at 3:45 PM, Rodney W. Grimes <freebsd-rwg at pdx.rh.CN85.dnsmgr.net> wrote:
> 
>> On Thursday, July 13, 2017 10:34:03 AM EDT sVx wrote:
>>> Hi,
>>> 
>>> 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.
>>> 
>>> Un-commenting in /etc/rc.conf 'growfs_enable="YES"' and rebooting has no
>>> 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=YES' is not working properly on RaspBSD.
>> Instead, running a 'service growfs onestart' worked for me:
> 
> I believe you need to have /firstboot before growfs_enable="YES" well
> work for you.  /firstboot is in the rpi images from RaspBSD, but once
> you have booted it the first time that file is wiped.

I suspect this confuses a lot of folks at various times.

Perhaps growfs_enable should print an informative message if it is
not the first boot, such as:

    growfs_enable:  Skipping FS resize, since this is not the first boot.
    growfs_enable:  To force a resize:  $ touch /firstboot ; reboot






More information about the freebsd-arm mailing list