Step-by-step instructions on how to resize a filesystem

Dec 14, 2015 04:15 GMT  ·  By

Today we're continuing our "Watch" series of articles with something a little different, a video tutorial that tries to teaches those who run the Ubuntu MATE operating system on their Raspberry Pi 2 devices how to expand the filesystem.

As you might know, the Ubuntu MATE developers have announced the final build of the Raspberry Pi 2 image a couple of months ago, based on the Ubuntu MATE 15.10 (Wily Werewolf) computer operating system.

The Ubuntu MATE for Raspberry Pi 2 edition is designed from the ground-up to offer owners of that tiny single-board computer a fully functional MATE desktop environment.

In the video attached at the end of the article, courtesy of YouTube user cenkaetaya1, you'll learn how to resize and expand the filesystem of the Ubuntu MATE operating system while it runs on the Raspberry Pi 2 SBC.

Basically, users will have to open the Terminal application and run a few commands. The first one is listed below. Type it in the terminal emulator window, hit the Enter key on your keyboard and input your password when asked.

code
sudo fdisk /dev/mmcblk0
Then, in the fdisk program, you must press the d, 2, n, p, 2, Enter, Enter, and w key, in this exact same order, pressing the Enter key after each one. After that, reboot the Ubuntu MATE operating system, open the Terminal app again and run the following command.
code
sudo resize2fs /dev/mmcblk0p2
That's it, you should now see that the filesystem of your Ubuntu MATE installation has been expanded. Do not hesitate to drop a comment below if you encounter any issues.