davygravy / rescue-dg

A NAND-flash rescue/utility root file system for Kirkwood SoC devices, produced using Buildroot
4 stars 0 forks source link

mtd2.img: make better use of UBIFS space #3

Closed davygravy closed 3 years ago

davygravy commented 3 years ago

rootfs.cfg for creating the UBIFS seems to not make good use of space. Push out to 31MiB.

NOTE: at 32MiB, the UBIFS rootfs would not boot - VFS sync error and kernel panic at boot. vol_size=31MiB gives more than 27MiB in df -h with about 3.8MIB unused.

root@rescue:~$ df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0:rootfs              27.2M     23.4M      3.8M  86% /
devtmpfs                249.6M         0    249.6M   0% /dev
tmpfs                   250.1M         0    250.1M   0% /dev/shm
tmpfs                   250.1M     44.0K    250.0M   0% /tmp
tmpfs                   250.1M     88.0K    250.0M   0% /run
/dev/sda1                 7.4G    192.0M      6.9G   3% /media/usb0
davygravy commented 3 years ago

fixed in https://github.com/davygravy/rescue-dg/commit/58744c6fdf7c32d6b8f0c87acbf71aa4525702e2