Introduction
Anyone who knows me knows that recently I’ve gotten a little bit too attached to a particular distribution called Manjaro Linux. So when I heard that an ARM version
was released and would work on my Raspberry Pi 2
I got pretty excited!
In this tutorial I go through the steps required to setup the Manjaro Full ARM release, but the same steps can be followed for installation of the headless/minimal version.
These instructions are pretty heavily copied from this official post, but I thought I would put my own spin on it and add some screenshots to make it easier to follow.
What you’ll need:
- MicroSD Card should be at least 4GB and a class 4 or better.
- Copy of the latest build found here.
- A distribution with access to various partitioning tools
Preparing Environment
Open up a terminal and navigate to your HOME directory. From there create two folder; root
and boot
You’ll also notice I have copies of both the tar.gz
builds. I’ll only be using Manjaro-Arm_Base_16.01-alpha1.tar.gz
from this point on.
Making the Partitions
Insert the MicroSD card into an adapter on your Linux computer and run lsblk
to see if the device is registered. You will get an output similar to the following.
In my case the MicroSD is registered as sdc
and has existing partitions on it already (probably an old rasbian image). You might have slightly different device names; so expect something like mmcblk1
. Note down the name of the registered device, you’ll need it for the next part.
Now that we have found the device name, its time to setup the two partitions that the MicroSD card needs:
- /boot
- /root
The following commands need to be run as root (not using sudo) so go ahead and elevate your privileges (be care from this point on!).
Now run our disk partitioning tool fdisk
You’ll be greeted with an input cursor. Carefully
run the following commands in order.
Your output should look similar to the following:
Making the Filesystems
Now that the partitions
are created on the device, we need to construct filesystems
on them to hold the data. These commands will also need to be done as root (not using sudo).
You might be prompted to erase a current file system, just y
the prompt. Your output again will look similar to the following:
Now we just have to mount
the filesystems. This is done with the following commands:
Be careful you are doing the following step in your home directory
and ensure you don’t include any /
before boot
or root
Use the BSD tar
command to extract the tarball to the root/ (sdc2)
This part will take some but once it completes you should see the populated filesystem under the root folder in your home directory
After the Tarball
is extracted, we need to move
the boot files
over to the boot partition. This can be done easily with the following:
NOTE: You might get errors similar to the following regarding failure to preserve ownership. Don’t worry about it too much, the process still works regardless.
Finally just unmount the sdcard and you’re good to remove it from the system
Using the System
Plug the MicroSD into your Raspberry Pi 2
and boot it up! If you used the headless
build you can login to your system over ssh
or as root
If you opted for the full build the system will automatically log you in as the manjaro
user account
Conclusion
I love Manajaro for x86, and the ARM version is just as lovable! I would highly recommend it to anyone looking at moving away from the standard distributions available for the Raspberry Pi. Not only is it a good introduction to Arch
, but it can utilize AUR
for updates so you’ve got a good foundation for binary and application build support.