RaspberryPi 3 freezes on single user mode (init 1)
Guangyuan Yang
yzgyyang at outlook.com
Fri Jul 14 17:38:31 UTC 2017
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:
root at 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
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 at rpi3:~ # gpart show
=> 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)
=> 0 61787136 mmcsd0s2 BSD (29G)
0 61787136 1 freebsd-ufs (29G)root at 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
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 at rpi3:~ # gpart show
=> 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)
=> 0 61787136 mmcsd0s2 BSD (29G)
0 61787136 1 freebsd-ufs (29G)
Cheers,
Guangyuan Yang
More information about the freebsd-arm
mailing list