sdcard/emmc not resized?

heyo was wondering if anyone else had a problem with the most recent of dietpi for odroid c2? it doesnt want to resize my sdcard or a emmc to install. tried with multiple emmc one 8gb and one 32gb and a 64gb sdcard. i downloaded it. extracted with 7zip and flashed with etcher. it loads up to the “dietpi-software” section. i pick the software ect then it says it fails after i hit the button. ill take a picture of the error that happens just before it hits the software section in a few.

yes pls, an error message would be helpful. It’s not needed to take pictures if you are connected via SSH. Simply copy the lines from CLI

As it is about rootfs resizing, in particular the content of the following log file would be great:

cat /var/tmp/dietpi/logs/fs_partition_resize.log

I hope this shows up right…

 Step: Applying initial first run setup steps

[ SUB1 ] DietPi-Set_software > passwords
[  OK  ] DietPi-Set_software | sed -i /^[[:blank:]]*AUTO_SETUP_GLOBAL_PASSWORD=/c\#AUTO_SETUP_GLOBAL_PASSWORD= # Password has been encrypted and saved to rootfs /boot/dietpi.txt
[  OK  ] DietPi-Set_software | mkdir -p /var/lib/dietpi/dietpi-software
[  OK  ] DietPi-Set_software | chown root:root /var/lib/dietpi/dietpi-software/.GLOBAL_PW.bin
[  OK  ] DietPi-Set_software | chmod 0600 /var/lib/dietpi/dietpi-software/.GLOBAL_PW.bin
[ INFO ] DietPi-Set_software | Global software password successfully changed
[ INFO ] DietPi-Set_software | "root" and "dietpi" login passwords successfully changed
[  OK  ] passwords  | Completed
[ SUB1 ] DietPi-Set_hardware > serialconsole (disable)
[ INFO ] DietPi-Set_hardware | Disabling serial-getty on: /dev/ttyS0
[  OK  ] DietPi-Set_hardware | systemctl disable --now serial-getty@ttyS0
[ INFO ] DietPi-Set_hardware | Disabling serial-getty on: /dev/ttyS1
[  OK  ] DietPi-Set_hardware | systemctl disable --now serial-getty@ttyS1
[  OK  ] DietPi-Set_hardware | Setting in /boot/dietpi.txt adjusted: CONFIG_SERIAL_CONSOLE_ENABLE=0
[  OK  ] serialconsole disable | Completed
[  OK  ] DietPi-Software | mount -o remount /var/log
[ SUB1 ] DietPi-Set_software > ntpd-mode (2)
[  OK  ] DietPi-Set_software | systemctl unmask systemd-timesyncd
[  OK  ] DietPi-Set_software | systemctl enable systemd-timesyncd
[  OK  ] DietPi-Set_software | systemctl stop systemd-timesyncd
[  OK  ] DietPi-Set_software | Setting in /boot/dietpi.txt adjusted: CONFIG_NTP_MODE=2
[  OK  ] ntpd-mode 2 | Completed
[  OK  ] DietPi-Software | Applied initial first run setup steps
[FAILED] DietPi-Software | Free space check: path=/ | available=161 MiB | required=500 MiB
[FAILED] DietPi-Software | Install aborted due to insufficient free space
 ─────────────────────────────────────────────────────
 DietPi v7.8.2 : 04:22 - Wed 11/24/21
 ─────────────────────────────────────────────────────
 - LAN IP : 192.168.1.3 (eth0)
[  OK  ] DietPi-Login | Desired setting in /boot/dietpi.txt was already set: AUTO_SETUP_AUTOMATED=0



root@DietPi:~# cat /var/tmp/dietpi/logs/fs_partition_resize.log
Removed /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service.
Disk /dev/mmcblk0: 29.12 GiB, 31268536320 bytes, 61071360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd3630000

Old situation:

Device         Boot  Start     End Sectors   Size Id Type
/dev/mmcblk0p1        2048  264191  262144   128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 1754767 1490576 727.8M 83 Linux

/dev/mmcblk0p2:
New situation:
Disklabel type: dos
Disk identifier: 0xd3630000

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 61071359 60807168   29G 83 Linux

The partition table has been altered.
resize2fs 1.46.2 (28-Feb-2021)
resize2fs: No space left on device While checking for on-line resizing support
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2

interesting. Your SD card is changed correctly.

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        2048   264191   262144  128M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      264192 61071359 60807168   29G 83 Linux

By resizing is failing

resize2fs: No space left on device While checking for on-line resizing support
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required

MichaIng
Any idea?

This has been solved with the newest image. I’m not sure about the exact reason, why online (running system) resizing failed, but guess it had something to do with the combination of old kernel (Linux 3.x) and the fact that we reset the ext4 journal when creating the image. The new image uses Linux 5.10 and resizing works. Here the related GitHub issue: https://github.com/MichaIng/DietPi/issues/5008