Skip to content

Instantly share code, notes, and snippets.

@a-andreyev
Forked from albertcarrete/readme.md
Last active January 2, 2017 17:23
Show Gist options
  • Save a-andreyev/25424e05ffa86b238876a2314332f34d to your computer and use it in GitHub Desktop.
Save a-andreyev/25424e05ffa86b238876a2314332f34d to your computer and use it in GitHub Desktop.
Surface Pro 4 Arch Linux Installation

Dual Booting Arch Linux / Windows 10 on a Surface Pro 4

Device: Surface Pro 4

OS: Windows 10 / Arch Linux 4.3.3 - 2016.01.01

Method: Arch Linux USB Installer

Shrink volume in Windows 10

Follow the instructions in disk partition windows.

Boot from USB

Boot into Arch Linux USB Installer which can be done on the SP4 by holding the volume up button on startup.

>Arch Linux archiso x86_64 UEFI USB<
UEFI Shell x86_64 v1
UEFI Shell x86_64 v2
EFI Default Loader
Reboot Into Firmware Interface

[i]Select the first option Arch Linux archiso[/i]

[...]
nvme0n1       259:0   0   238.5G  0 disk
|- nvme0n1p1  259:1   0   260M    0 part
|- nvme0n1p2  259:2   0   128M    0 part
|- nvme0n1p3  259:3   0   174.8G  0 part
|- nvme0n1p4  259:4   0   830M    0 part

Partition nvmeon1 / Linux Swap

Partition nvme0n1 for Linux Swap, use gdisk /dev/nvme0n1, add +2GB and hex code / GUID 8200. Then format the swap using mkswap /dev/nvme0n1p5 and turn the swap on using swapon /dev/nvme0n1p5.

Partition nvme0n1 / Linux filesystem

Partition nvme0n1 for Linux filesystem, use gdisk /dev/nvme0n1, use the all the defaults, then format the partition using mkfs.ext4 /dev/nvme0n1p6

My partition table

nvme0n1p5 -- swap 2gb
nvme0n1p6 -- root
nvme0n1p7 -- home

Check root

gdisk -l /dev/nvme0n1

1 2048      534527      260.0 MiB EF00 EFI system partition
2 534528    796671      128.0 MiB 0C01 Microsoft reserved...
3 796672    367343615   174.8 GiB 0700 Basic data partition
4 498417664 500117503   830.0 MiB 2700 Basic data partition
5 367343616 371537919   2.0 GiB   8200 Linux Swap
6 371537920 498417663   60.5 GiB  8300 Linux Filesystem

Mount the filesystem and EFI system

mkdir /mnt/boot
mkdir /mnt/home
mount /dev/nvme0n1p6 /mnt
mount /dev/nvme0n1p7 /home
mount /dev/nvme0n1p1 /mnt/boot

Install Base

edit /etc/pacman.d/mirrorlist to select mirror server use wifi-menu

pacstrap -i /mnt base base-devel

don't forget dialog and wpa-supplicant for wifi-menu

Generate Fstab

genfstab -p /mnt >> /mnt/etc/fstab

Chroot

arch-chroot /mnt /bin/bash

...

plasma-desktop kmix kwrite konsole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment