RootFS or root filesystem is the filesystem that is contained in the same partition on which the root directory is located, and it is the filesystem on which all the other filesystems are mounted (i.e., logically attached to the system) as the system is booted up (i.e., started up).

After restoring or re-installing Distros on the Raspberry Pi from Win32DiskImager you will mostly need to expand the disk size to the maximum available size used by SD cards.

This post will guide you through the process of expanding RootFS on your Raspberry Pi SD Card Partition with Gparted

Requirements

  • Gparted on Linux or Live CD
  • SD Card (That you want to Expand the RootFS partition)

Steps To Expanding Rootfs

Step 1: Plug your SD Card at Gparted Installed Systems

Make sure there are no errors at SD Card and Backup it before proceed the steps

Step 2: Open Gparted Interface 

Step 2: Open Gparted

Gparted’s User Interface

Step 3: Select Raspberry Pi SD Card Partition at top right (/dev/sd?)

Step 4: Unmount all mounted Partition, Select the mount point  – Right click – Unmount

Step 4: Unmount all active Mount Point

Before Proceed the steps you need to Unmount all mounted Partition

Step 5: Select SETTINGS Labled – Right Click- Resize/Move, At Resize/Move – Drag the Bar from Left to Right – Click Resize/Move

Step 5: Select SETTINGS Labeled - Resize/Move - Drag it from Left to Right

Drag the Bar from Left to the Right

Step 6: There are warning “Moving a partition might cause your operating system to fail to boot” Click OK

Step 6: "Moving a partition might cause your operating system to fail to boot" Click OK

Moving a Partition Gparted’s Warning

Step 7: Select Extended File System (Cyan Color) – Click Resize/Move, At Resize/Move – Expand the Bar From Left to Right – Click Resize/Move

Step 7: Select Extended Labeled - Resize/Move - Expand it from Left to Right

Expand the Bar from Left to Right

Step 8: Select root Labeled – Right Click – Resize/Move, At Resize/Move – Expand the Bar From Left to Right – Click Resize/Move

Step 8: Select Extended Labeled - Resize/Move - Expand it from Left to Right

Expand the Bar from Left to Right

Step 9: Select Settings Labeled – Right Click – Resize/Move, At Resize/Move – Expand the Bar from Right to Left – Click Resize/Move

Step 9: Select SETTINGS Labeled - Resize/Move - Expand it from Right to Left

Expand the Bar from Right to Left

Step 10: Click Apply All Operations at taskbar to Apply the changes

Step 10: Click Apply All Operations at taskbar to Apply the changes

Click Apply All Operations to Apply the Changes to the SD Card

Plain Instructions

Video Guide

More Info

  • Make sure you have a backup from your SD Card before repartition.
  • Please, verify that you do the instructions correctly before applying the changes
  • Previous backup restored to the SD Card (at instructions) is 8GB restored to 16GB Size
  • I’ve tested this on my SanDisk Ultra 16GB MicroSDHC Class 10 UHS Memory Card with Raspbian OS Installed

References

  1. Root filesystem definition – The Linux Information Projects
  2. Gparted – Documentation
  3. Image by PublicDomainPictures / CC0 1.0 Public Domain