Raspberry PI (2), installing Arch Linux on USB drive
Update: Works with the Raspberry PI 2
This guide is not going to differ a lot from the one I posted a while ago: Boot Raspberry PI from a USB stick, but in particular the parts of editing the cmdline.txt and growing the partition are a little different when you want to install Arch Linux ARM on your Raspberry PI.
As in the other post, I first wrote the Arch image to both SD card and USB stick:
sudo dd bs=1M if=archlinux-hf-2013-06-15.img of=/dev/sdb
Editing the cmdline.txt for ArchBasically what I did was just to change the root fs path and stick with the default beyond that.
ipv6.disable=1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p5 rootfstype=ext4 elevator=noop rootwaitMy cmdline.txt now
ipv6.disable=1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sda5 rootfstype=ext4 elevator=noop rootwait
Growing the root partition to the full USB stickI couldn't just stick with the command line solution while the system was booted, probably that's because I was doing something wrong. I just used Gparted on my Linux box to grow the partition. You can also download a live image for CD or USB of that if you're on Windows or Mac and don't have any partition manager at hand.
Success!Now the partition has been grown, which we can display by running df -h.
[root@himbeerchen ]# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 30G 507M 28G 2% / devtmpfs 83M 0 83M 0% /dev tmpfs 231M 0 231M 0% /dev/shm tmpfs 231M 268K 231M 1% /run tmpfs 231M 0 231M 0% /sys/fs/cgroup tmpfs 231M 0 231M 0% /tmp /dev/mmcblk0p1 90M 24M 67M 27% /boot
I've become pretty curious about Arch since Lennart put it on his raspberry and now is thinking about ditching Ubuntu for it. Christoph from Linux und ich did just that a couple of days ago, so I thought to myself: Ok, better get some Arch on the PI!