Created
September 25, 2017 18:13
-
-
Save arpitjindal97/f90c42352a0dbe580df87f1e51bdb8d7 to your computer and use it in GitHub Desktop.
Arch install for RPi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/arpit/Desktop | |
umount /dev/mmcblk0* | |
dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=2048 | |
#echo -e "d\n\nd\nw" | grep fdisk /dev/mmcblk0 | |
echo -e "o\nn\np\n1\n\n+100M\nt\nc\nn\np\n2\n\n\nw" | fdisk /dev/mmcblk0 | |
mkdir root boot | |
mkfs.vfat /dev/mmcblk0p1 | |
mount /dev/mmcblk0p1 boot | |
mkfs.ext4 /dev/mmcblk0p2 | |
mount /dev/mmcblk0p2 root | |
rm -rf boot/* root/* | |
echo "Extracting tar..." | |
bsdtar -xpf /home/arpit/Downloads/ArchLinuxARM-rpi-3-latest.tar.gz -C root | |
echo "Syncing ..." | |
#sync | |
echo "Moving to boot..." | |
mv root/boot/* boot | |
umount boot root | |
rm -r boot root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment