Pinebook Pro Use Nvme as Root

Table of Contents

Preface

I assume that you have an nvme drive with a formatted ext4 partition present. I'm using Manjaro Arm. I've tested this on Alarm and I'd imagine it would work on debian aswell. We take advantage of /boot/extlinux/extlinux.conf to choose our root drive.

Preparing our nvme

mount /dev/nvme0n1p1 /mnt
cd /mnt
mkdir dev sys proc mnt

Copying root files

It's important to exclude the psuedo filesystems and /mnt, when copying your root files.

rsync -aHxv --numeric-ids --progress /* /mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/mnt

Changing the root to nvme

$ mv /mnt/boot /mnt/boot.old
$ vim /boot/extlinux/extlinux.conf

# Change "root=LABEL=ROOT" to "root=/dev/nvme0n1p1"

Work arounds

If the boot partition is "read only", you can remount it with rw permissions as so:

$ mount /dev/mmcblk1p1 /boot -o remount,rw