When I flash am335x-debian-11.5-minimal-armhf-2022-11-01-2gb.img.xz (Debian 11 newest monthly) from Debian 11.x (Bullseye) - Monthly Snapshots onto a microSD card using Balena Etcher, the space shown is an underestimate of the actual space:
> df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/mmcblk0p1 1.7G 876M 749M 54% /
...
(there’s actually 4 GB on the BeagleBone Black.)
[2020-04-06] How to add HDMI back into BBB image after init-eMMC-flasher-v3.sh - #4 by RobertCNelson from @RobertCNelson:
Reboot… The auto partition resize takes a reboot to finish…
Sometimes when I reboot the auto partition takes place, but recently, it’s not taking place. Is there some command(s) to force a partition to occur?
On the ‘very’ first bootup, there is a long line of first run scripts… From ssh generation, to ti-sgx module installation…
1st script on first bootup:
2nd script after reboot:
Regards,
1 Like
Thank you for the quick response, looks like sudo /usr/bin/bb-resizefs
did the trick!
Log of commands run:
> df -h
Filesystem Size Used Avail Use% Mounted on
udev 215M 0 215M 0% /dev
tmpfs 49M 1.4M 48M 3% /run
/dev/mmcblk0p1 1.7G 844M 782M 52% /
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 49M 0 49M 0% /run/user/1000
tmpfs 49M 0 49M 0% /run/user/1001
> sudo /usr/bin/bb-growpart
/usr/bin/growpart /dev/mmcblk0 1
NOCHANGE: partition 1 is size 124727263. it cannot be grown
> df -h
Filesystem Size Used Avail Use% Mounted on
udev 215M 0 215M 0% /dev
tmpfs 49M 1.4M 48M 3% /run
/dev/mmcblk0p1 1.7G 844M 782M 52% /
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 49M 0 49M 0% /run/user/1000
tmpfs 49M 0 49M 0% /run/user/1001
> sudo /usr/bin/bb-resizefs
resize2fs /dev/mmcblk0p1
resize2fs 1.46.2 (28-Feb-2021)
Filesystem at /dev/mmcblk0p1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 8
The filesystem on /dev/mmcblk0p1 is now 15590907 (4k) blocks long.
> df -h
Filesystem Size Used Avail Use% Mounted on
udev 215M 0 215M 0% /dev
tmpfs 49M 1.4M 48M 3% /run
/dev/mmcblk0p1 59G 844M 56G 2% /
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 49M 0 49M 0% /run/user/1000
tmpfs 49M 0 49M 0% /run/user/1001
sudo /usr/bin/bb-growpart
sudo reboot
sudo /usr/bin/bb-resizefs
Regards,
2 Likes