按Archlinux官網操作而來,如有疑問參照官網:http://archlinuxarm.org/platforms/armv6/raspberry-pi
以我自己安裝過程舉例,我的SD卡掛載在ubuntu14.04上為sdb.
一.使用fsidk分區
root@alexknight:/home/alexknight# fdisk /dev/sda
sda sda1 sda2 sda5 sdb
- 輸入 o.
- 輸入 p .
- 輸入 n, 接着輸入 p ,再輸入 1, 按下 ENTER, 最后輸入 +100M .
- 輸入 t, 接着輸入 c.
- 輸入 n, 接着輸入 p ,再輸入 2, 按下 ENTER 兩次.
- 輸入 w.等待操作結束。
- 重啟UBUNTU.
二.重啟后,操作如下:
root@alexknight:/home/alexknight# fdisk /dev/sd sda sda1 sda2 sda5 sdb sdb1 sdb2 root@alexknight:/home/alexknight# mkfs.vfat /dev/sdb sdb sdb1 sdb2 root@alexknight:/home/alexknight# mkfs.vfat /dev/sdb1 mkfs.fat 3.0.26 (2014-03-07) root@alexknight:/home/alexknight# mkdir boot root@alexknight:/home/alexknight# mount /dev/sdb1 boot root@alexknight:/home/alexknight# mkfs.ext4 /dev/sdb2 mke2fs 1.42.10 (18-May-2014) Creating filesystem with 3885568 4k blocks and 972944 inodes Filesystem UUID: 22a71438-afa8-4df5-ba65-a66166ddc784 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208 Allocating group tables: 完成 正在寫入inode表: 完成 Creating journal (32768 blocks): 完成 Writing superblocks and filesystem accounting information: 完成 root@alexknight:/home/alexknight# mkdir root root@alexknight:/home/alexknight# mount /dev/sdb2 root
三.開始進入Archlinux的燒錄環節,在這里沒有使用官方鏡像,因為下載速度太慢:
root@alexknight:/home/alexknight# wget http://mirrors.ustc.edu.cn/archlinuxarm/os/ArchLinuxARM-rpi-latest.tar.gz
root@alexknight:/home/alexknight# bsdtar -xpf ArchLinuxARM-rpi-latest.tar.gz -C root
root@alexknight:/home/alexknight# sync
root@alexknight:/home/alexknight# mv root/boot/* boot
root@alexknight:/home/alexknight# umount boot root
其中第2步時間較長,請耐心等待。
四.在樹莓派上插上SD卡,SSH進入或者VNC或者接上顯示器。
