Thursday, November 15, 2012

Fixing the 100% rootfs usage on Raspberry Pi and errors resulting due to that

While a lot of graphical user-interfaces and utilities are available for Linux, there are times when one needs some command line skill sets to get things going. After installing my Raspberry Pi with an Debian operating-system and using the popular "X Window System" to manage it, things went bad today as the "startx" command failed to load the graphical user-interface. Upon digging up through terminal using "df -h" command, it was clear there was no space left on the rootfs partition which was causing "X" to fail loading.
It needs to be noted that the official Raspberry Debian Wheezy Image does not partition the SD card to it's full capacity, and we need to do that later as instructed ahead. Extending the root partition to utilize full-space will also get rid of application launch errors caused due to non-availability of disk space in rootfs partition.
SD Card Full
Extending Raspberry Root Partition (rootfs) to fill remaining SD card Space :

  1. Using the terminal, execute sudo raspi-config
  2. Use the expand_rootfs menu option to extend rootfs to fill all available space on the SD card.
  3. Rpi Configuration Utility
  4. Follow onscreen instructions and reboot to complete the process.
  5. Resize roots
    Rpi Reboot
  6. After rebooting, the df -h command should reflect the changes and applications should launch as earlier.
  7. Disk Space

No comments:

Post a Comment