Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4754

Troubleshooting • Re: Reading Change Logs stalls at 33%?

$
0
0
Hi,

I am kind of a noob in all these stuff, i just bought pi zero 2 w and configured ssh and vnc, but i am having the same problem. Someone said above in the thread that setting swap at 200 fixed it. Can anyone please tell me the command or how to increase the swap to fix the issue, the error i am getting is in installing a specific package i tried installing it seperately and it did not fix it, also if i run pi on vnc i think because of no update i am stuck in setup loop, it shows in vnc that setup your pi, i put in all the settings and then press on reboot. It takes me back at putting settings after reboot. Anybody please provide some info to how to fix it, thanks.
just in case you haven't solved this yet, you can e.g. use following script to increase the swap:
  1. copy following code into a new text document and name it resize_swap.sh

    Code:

    #!/bin/bash# Check current swap sizeecho "Current swap size:"free -h# Disable current swapecho "Disabling current swap..."sudo dphys-swapfile swapoff# Set the swap file size to 2GBecho "Setting swap file size to 2GB..."sudo sed -i 's/^CONF_SWAPSIZE=.*/CONF_SWAPSIZE=2048/' /etc/dphys-swapfile# Recreate the swap file with the new sizeecho "Recreating swap file..."sudo dphys-swapfile setup# Enable the new swap sizeecho "Enabling the new swap..."sudo dphys-swapfile swapon# Verify the new swap sizeecho "New swap size:"free -h
  2. open the terminal and navigate to the place where you saved the file resize_swap.py
  3. make the file executable with following command:

    Code:

    chmod +x resize_swap.sh
  4. now run the script to resize your swap, by using following command:

    Code:

    sudo ./resize_swap.sh
i hope this will help you ;)

Statistics: Posted by rbthn — Fri May 24, 2024 10:19 pm



Viewing all articles
Browse latest Browse all 4754

Trending Articles