Hi,
I've been enjoying using this excellent lightweight RPi OS on some of my larger SD cards.
I have a simple IoT project which is only a few KB so ideal for an old 2GB card, but the installer doesn't fully complete. It fails after the reboot when it tries to update to the latest version giving an error message stating a min of 500MB is needed to continue. A quick df -h later I can see that a huge 1.4MB is used with only 484MB to spare.
I've tried few times and this issue seems to be consistent.
Does anyone have any ideas how to avoid this issue? Is there something I need to edit in the txt file before first boot?
Thanks.
Installation Issue - 2GB SDcard, Raspberry Pi V1 B
Re: Installation Issue - 2GB SDcard, Raspberry Pi V1 B
Hi,
on your SD card. (please look at: DietPi-Automation)
Please have a look here:
https://github.com/Fourdee/DietPi/issue ... -301445374
https://github.com/Fourdee/DietPi/blob/ ... pi.txt#L35
https://github.com/Fourdee/DietPi/issues/1027
After initial bootup and finishing installation, you can set swap file size via:
cu
k-plan
You can disable swapfile generation, after writing DietPi image, and, prior to booting device for 1st time in:chrisfi wrote:Does anyone have any ideas how to avoid this issue? Is there something I need to edit in the txt file before first boot?
Code: Select all
/boot/dietpi.txt
Code: Select all
. . .
# >> Misc Options -----------------------------------
#Size of dphys-swapfile to generate (MB)
# 0=Disabled | 1=auto (1GB-RAM = size) | 2+=manual
### Swapfile_Size=1 ## -default- ##
Swapfile_Size=0
. . .
https://github.com/Fourdee/DietPi/issue ... -301445374
https://github.com/Fourdee/DietPi/blob/ ... pi.txt#L35
https://github.com/Fourdee/DietPi/issues/1027
After initial bootup and finishing installation, you can set swap file size via:
Code: Select all
dietpi-config
Code: Select all
root@NanoPi-Neo:/# ls -lah /var/swap
-rw------- 1 root root 530M Jun 25 13:03 /var/swap
k-plan
SOLVED - Installation Issue - 2GB SDcard, Raspberry Pi V1 B
Thanks.
As you suggest preventing the creation of a swapfile leaves plenty of space for the installation process to fully complete. I can now use my old 2GB cards for some of my projects.
As you suggest preventing the creation of a swapfile leaves plenty of space for the installation process to fully complete. I can now use my old 2GB cards for some of my projects.