Installation Issue - 2GB SDcard, Raspberry Pi V1 B

Having issues with your DietPi installation, or, found a bug? Post it here.

Installation Issue - 2GB SDcard, Raspberry Pi V1 B

Postby chrisfi » Thu Aug 10, 2017 8:16 pm

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.
chrisfi
 
Posts: 2
Joined: Thu Aug 10, 2017 11:56 am

Re: Installation Issue - 2GB SDcard, Raspberry Pi V1 B

Postby k-plan » Sun Aug 13, 2017 10:21 am

Hi,

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?


You can disable swapfile generation, after writing DietPi image, and, prior to booting device for 1st time in:
Code: Select all
/boot/dietpi.txt


on your SD card. (please look at: DietPi-Automation)

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

. . .


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:
Code: Select all
dietpi-config


170813-0001.gif
dietpi-config: SwapFile Size


Code: Select all
root@NanoPi-Neo:/# ls -lah /var/swap
-rw------- 1 root root 530M Jun 25 13:03 /var/swap


cu
k-plan
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
User avatar
k-plan
 
Posts: 395
Joined: Sun Feb 28, 2016 4:28 pm

SOLVED - Installation Issue - 2GB SDcard, Raspberry Pi V1 B

Postby chrisfi » Mon Aug 14, 2017 6:29 pm

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.
chrisfi
 
Posts: 2
Joined: Thu Aug 10, 2017 11:56 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 6 guests