Tested on Raspberry Pi3+
This guide will assist you to move your ArchLinux ARM installation into USB or SSD drive.
In this guide, USB may also be refered to as SSD.
Step 1
Copy the microSD into USB
microSD is /dev/sdX
USB is /dev/sdY
$this->bbcode_second_pass_code('', '$ sudo dd bs=52M status=progress if=/dev/sdX of=/dev/sdY')
Remove microSD card.
From now on, you DO NOT need the microSD card.
Keep the microSD card in a box for backup!
Step 2
Open USB drive and make the following changes.
Edit /etc/fstab
Replace mmcblk0p1 by sda1
Before:
$this->bbcode_second_pass_code('', '
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat defaults 0 0
')
After:
$this->bbcode_second_pass_code('', '
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda1 /boot vfat defaults 0 0
')
Edit /boot/cmdline.txt
Replace mmcblk0p2 by sda2
Before:
$this->bbcode_second_pass_code('', 'root=/dev/mmcblk0p2 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200')
After:
$this->bbcode_second_pass_code('', 'root=/dev/sda2 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200')
Step 3
Insert the USB drive to the SBC.
Now you're able to boot just from USB.
Cheers!