sdcard/emmc not resized?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

sdcard/emmc not resized?

Post by kannz »

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.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: sdcard/emmc not resized?

Post by Joulinar »

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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: sdcard/emmc not resized?

Post by MichaIng »

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

Code: Select all

cat /var/tmp/dietpi/logs/fs_partition_resize.log
kannz
Posts: 51
Joined: Wed Sep 29, 2021 2:37 pm

Re: sdcard/emmc not resized?

Post by kannz »

I hope this shows up right..

Code: Select all

 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

Code: Select all

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
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: sdcard/emmc not resized?

Post by Joulinar »

interesting. Your SD card is changed correctly.

Code: Select all

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

Code: Select all

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?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply