Install ArchLinux on pogoplug HD
- With the device on and online, register and enable SSH through my.pogoplug.com.
- Power down the original, unmodified Pogoplug.
- Unplug all disk drives.
- With only the drive you intend to install Arch Linux ARM to plugged in (all data will be erased), switch on the power.
- Log in to Pogoplug over SSH using the IP address of the Pogoplug (from your router's DHCP table), with "root" as the username and the password you set up on my.pogoplug.com.
- Stop the Pogoplug software, so it doesn't interfere with the install process:killall hbwd
- Start fdisk to partition the USB or SATA drive:
- At the fdisk prompt, delete old partitions and create a new one:
- Type o
. This will clear out any partitions on the drive.
- Type p
to list partitions. There should be no partitions left.
- Now type n
, then p
for primary, 1
for the first partition on the drive, and then press ENTER, accepting default values.
- Exit by typing w
- Create the ext3 filesystem:
sync cd /tmp wget http://archlinuxarm.org/os/pogoplug/mke2fs chmod 755 mke2fs ./mke2fs -j /dev/sda1
- Download the install script and execute
cd /tmp wget http://archlinuxarm.org/os/oxnas/oxnas-install.sh chmod 755 oxnas-install.sh ./oxnas-install.sh
The installer will ensure that the Pogoplug services are not running and that it has sda1 mounted where it wants it. Then, it will collect some information from the system, download the rootfs tarball, verify it, extract it, and finally use spare space in the NAND for the updated kernel before making modifications to the u-boot environment. If something goes wrong, it will be darn sure to tell you.
- In the end, this is what the last lines of blparam output should look like:
bootargs_stock=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes load_custom_nand=nboot 60500000 0 500000 load_custom_nand2=nboot 60500000 0 B00000 boot_custom=run load_custom_nand boot || run load_custom_nand2 boot bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15 bootcmd=run boot_custom
Note that there are no " (double quote) characters here.
- The install script will automatically unmount /dev/sda1. If everything went OK, reboot:
- Login to Arch Linux ARM (note: The IP address may have changed. Check your router's DHCP assignments if you can't log in.)
- If you want to have your plug automount drives when they're plugged in. Install the udev rules:
pacman -Sy udev-automount
If the LED on the front is still blinking after booting, rebuild the module dependencies.
Then, reboot again:
- Login again with root/root. Now would be a good time to change your root password.
- Most likely there are several packages that are now out of date. Update them with pacman:
You may have to run pacman a few more times. Accept any default answers (hit enter) and follow any instructions it gives you.
Welcome to Arch Linux ARM. Any questions, stop by the forums or on IRC.
此条目发表在DIY and Geek