HowTo Install Arch Linux: Difference between revisions
From Pumping Station One
| (One intermediate revision by one other user not shown) | |||
| Line 3: | Line 3: | ||
* Boot from it | * Boot from it | ||
== Initializing the Disk== | == Initializing the Disk == | ||
Install/reinitialize GPT (Guid Partition Table) on the disk` | Install/reinitialize GPT (Guid Partition Table) on the disk` | ||
| Line 20: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Now that you have a partition, it will show as /dev/vda1. | Now that you have a partition, it will show as /dev/vda1. Format The partition as ext4 | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
mkfs.ext4 /dev/vda1 -F | mkfs.ext4 /dev/vda1 -F | ||
| Line 34: | Line 34: | ||
Install Arch to /mnt | Install Arch to /mnt | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
pacstrap /mnt | pacstrap /mnt base | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 43: | Line 43: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Change Root (chroot) to | == Change Root (chroot) to Arch == | ||
Switch into the arch installtion. | Switch into the arch installtion. | ||
| Line 57: | Line 57: | ||
== Prepraring to Boot == | == Prepraring to Boot == | ||
Create your initial ramdisk - | Create your initial ramdisk - The initial file system before the real one boots | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
mkinitcpio -p linux | mkinitcpio -p linux | ||
| Line 67: | Line 67: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Install syslinux's GPT MBR (Master Boot Record) to the root of MBR. | Install syslinux's GPT MBR (Master Boot Record) to the root of MBR. This will sit in the 2048 of reserved space from when we partitioned the drive. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
dd if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda | dd if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Prepare the /boot folder with syslinux's modules. | Prepare the /boot folder with syslinux's modules. The .c32 files that ship with syslinux are for systems that use a bios to boot. Symlink the bios modules into syslinux's boot folder. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ln -s /usr/lib/syslinux/bios/*.c32 /boot/syslinux/ | ln -s /usr/lib/syslinux/bios/*.c32 /boot/syslinux/ | ||
| Line 83: | Line 83: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
By default, syslinux tries to boot /dev/sda3. | By default, syslinux tries to boot /dev/sda3. Change it to boot /dev/vda1 | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg | sed -i 's#/dev/sda3#/dev/vda1#' /boot/syslinux/syslinux.cfg | ||