Quantcast
Viewing all articles
Browse latest Browse all 4861

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

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 Image may be NSFW.
Clik here to view.
;)
What has been outlined above is a lot of work just to change the swapfile allocation. I would suggest the following as a much simpler method:
  • Use your favorite editor on /etc/dphys-swapfile.
  • Change CONF_SWAPSIZE=100 to CONF_SWAPSIZE=2048.
  • Save the file.
  • Reboot.
Butch

Statistics: Posted by butchkemper — Sat May 25, 2024 8:16 pm



Viewing all articles
Browse latest Browse all 4861

Trending Articles