Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -v
- #name this file archarm-image-creator.sh
- cd /sdcard
- #make and mount image file
- dd if=/dev/zero of=archarm.img seek=2000000000 bs=1 count=1 #create empty 1.9gb image file
- mke2fs -F archarm.img
- mknod /dev/loop256 b 7 256
- losetup /dev/loop256 archarm.img
- mount -t ext2 /dev/loop256 /sdcard/arch/
- # download and extract archlinuxarm
- cd arch
- wget http://archlinuxarm.org/os/ArchLinuxARM-trimslice-latest.tar.gz #this is compatable with the A200
- tar xzf ArchLinuxARM*.tar.gz
- rm ArchLinuxARM*.tar.gz
- #make some directories
- mkdir /sdcard/arch/media/external_sd
- mkdir /sdcard/arch/media/sdcard
- mkdir /sdcard/arch/dev/pts
- mkdir /sdcard/arch/dev/ptmx
- mkdir /sdcard/arch/root/.vnc
- # do some mounting
- mount -o bind /dev/ /sdcard/arch/dev
- mount -t proc proc /sdcard/arch/proc
- mount -t sysfs sysfs /sdcard/arch/sys
- mount -t devpts devpts /sdcard/arch/dev/pts
- mount -o bind /sdcard /sdcard/arch/media/sdcard
- # enter the chroot
- chroot . /bin/bash
- # your now in the Arch install.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement