Sometimes we install one operating system side by side, which is known as dual or dual-boot, and we realize we were wrong when it came to saying how much space to reserve for the new installation we wanted . If you use a Raspberry Pi 2 with Ubuntu MATE and you run out of space, below is a video tutorial that will teach you how expand the file system of this system in the microcomputer.
As you know, and if I don’t tell you here and now, Ubuntu MAT already announced several months ago the final version of the build for Rasbperry Pi 2, a version based on Ubuntu MAT 15.10 Wily Werewolf. The edition for Raspberry Pi 2 of Ubuntu MAT is designed from scratch to offer the owners of this small computer a fully functional MAT graphics environment, which is always appreciated; better a system created for the purpose of using a modification of it.In the following video you can see how to resize and expand the Ubuntu MAT file system on a Raspberry Pi 2 SBC. The video is courtesy of the YouTube user cenkaetaya1.
How to Extend the File System of the Raspberry Pi 2
To be able to expand the file system size of the Raspberry Pi 2 with Ubuntu MAT we will have to open one terminal and write some commands of which the first is as follows:
sudo fdisk /dev/mmcblk0
Once in the program fdisk we will have to press the key sequence d, 2, n, p, 2, Enter, Enter, w. After each letter goes an Enter, Important. Then we reboot the system, open a Terminal and type:
sudo resize2fs /dev/mmcblk0p2
And that’s it. All that remains is to do the check, for which you just need to open a file explorer window and confirm that the memory has been expanded by a few megabytes. Easy, right?