Setup Guide: Raspberry Pi | Upgrade Problems
Upgrading a Raspberry Pi to a new OS version can sometimes cause problems due to the Pi's limited SD card storage size. Here are some solutions.
After upgrading from Raspbian wheezy to Raspbian jessie, the system ran very slowly. Just logging in took a long time, command execution was sluggish, and after a few minutes the file system filled up and things stopped working. It turns out that the upgrade changed the size of the swap file to a size that was much too large for the SD card. The fix was to edit the file /etc/dphys-swapfile (e.g. with 'sudo nano /etc/dphys-swapfile'), changing its last line from
#CONF-MAXSWAP=2048
to
CONF-MAXSWAP=100
That changed the swap file size from unlimited (because the line was originally commented out) to 100 MB. After that change and a reboot, the system stabilized and ran at its normal speed.
After upgrading and fixing the Slowness problem above, the root filesystem was still fairly full - 'df .' reported 77% full. The fix was:
$ sudo apt-get clean
$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 6581636 3593648 2630612 58% /
That removed some files in /var/cache/apt that were used during the upgrade but are no longer needed.
Join CNCjs Users Group on Facebook to share your experiences with other people.
Site: https://cnc.js.org
- Introduction
- Installation
- Using Pendants
-
Raspberry Pi Setup Guide
- System Setup & Preparation
- Install Node.js & CNCjs
- Install Node.js via Package Manager (Recommended)
- Install Node.js via Node Version Manager (NVM) (Alternative)
- Install Node.js Manually (Alternative)
- Use PM2 to auto-start CNCjs (Optional)
- Use Port 80 (Optional)
- Maintain
- Additional Setup Options:
- CNCjs UI on Pi - Adventures in PiLand
- Pi with Arduino Due
- Electron App
- User Guide
- Tool Change
- Troubleshooting
-
FAQ
- Forgot your password?
- How can I enable WebGL in my browser?
- Raspberry Pi: Error opening serial port "ttyAMA0"
- Webcam Streaming with Raspberry Pi
- Restream RTSP to M-JPEG
- Connect to an Arduino using WiFi
- Install Native Addons with Node.js v4
- Install Serialport on OS X El Capitan
- Kernel panic issue on macOS Sierra for devices using the CH340G, CH34G or CH34X chipset
- Testing without Arduino board
- Development
- API
- Wiki History
- Resources
- About