Use fdisk to change the root partition to 25GB, and swap to 512MB.
Sync and reboot the system. The system shows correct partition table with old file system size
[root@milkv-duo] # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 28.9G 0 disk
|-mmcblk0p1 179:1 0 128M 0 part
|-mmcblk0p2 179:2 0 25G 0 part /
`-mmcblk0p3 179:3 0 512M 0 part
[root@milkv-duo]~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 752M 144M 567M 21% /
devtmpfs 15M 0 15M 0% /dev
tmpfs 15M 0 15M 0% /dev/shm
tmpfs 15M 48K 15M 1% /tmp
tmpfs 15M 28K 15M 1% /run
Run RESIZE2FS to resize the root file system --> system hang, no blinking LED.
Poweroff and power on again --> system show correct partition table but wrong root fs size.
[root@milkv-duo]~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 19G 18G 0 100% /
Run RESIZE2FS again --> Segmentation fault
[root@milkv-duo]~# resize2fs /dev/mmcblk0p2
resize2fs 1.46.2 (28-Feb-2021)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 74, new_desc_blocks = 100
Segmentation fault
Poweroff and reboot, df -h shows wrong root fs
[root@milkv-duo]~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 19G 291M 18G 2% /
Keep trying resize2fs, all result in system hang, or Segmentation fault.
And shows different root fs used :
[root@milkv-duo]~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 19G 923M 18G 5% /
[root@milkv-duo]~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 19G 296M 18G 2% /
Note : the swap is on, and the size is 512MB.
[root@milkv-duo]~# free -m
total used free shared buff/cache available
Mem: 28 15 3 0 11 11
Swap: 512 0 512
Board : Duo v1.2 image : v1.1.1 uSD : Kingston 32GB Symptom :
Use fdisk to change the root partition to 25GB, and swap to 512MB.
Sync and reboot the system. The system shows correct partition table with old file system size [root@milkv-duo] # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 28.9G 0 disk |-mmcblk0p1 179:1 0 128M 0 part |-mmcblk0p2 179:2 0 25G 0 part / `-mmcblk0p3 179:3 0 512M 0 part [root@milkv-duo]~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 752M 144M 567M 21% / devtmpfs 15M 0 15M 0% /dev tmpfs 15M 0 15M 0% /dev/shm tmpfs 15M 48K 15M 1% /tmp tmpfs 15M 28K 15M 1% /run
Run RESIZE2FS to resize the root file system --> system hang, no blinking LED.
Poweroff and power on again --> system show correct partition table but wrong root fs size. [root@milkv-duo]~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 19G 18G 0 100% /
Run RESIZE2FS again --> Segmentation fault [root@milkv-duo]~# resize2fs /dev/mmcblk0p2 resize2fs 1.46.2 (28-Feb-2021) Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 74, new_desc_blocks = 100 Segmentation fault
Poweroff and reboot, df -h shows wrong root fs [root@milkv-duo]~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 19G 291M 18G 2% /
Keep trying resize2fs, all result in system hang, or Segmentation fault.
And shows different root fs used : [root@milkv-duo]~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 19G 923M 18G 5% /
[root@milkv-duo]~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 19G 296M 18G 2% /
Note : the swap is on, and the size is 512MB. [root@milkv-duo]~# free -m total used free shared buff/cache available Mem: 28 15 3 0 11 11 Swap: 512 0 512