mirror of
https://github.com/elisspace/Arch-Linux-Install-Guide.git
synced 2026-08-29 23:21:57 +00:00
.
This commit is contained in:
47
README.md
47
README.md
@@ -18,7 +18,7 @@ If secure boot is enabled it must be turned off since Linux boot loaders don't t
|
||||
|
||||
### Disable Fast Start
|
||||
|
||||
If you are dual botting with Windows turn off Fast Start. Fast Start puts Windows into hybernation when you power off. Because some systems are still active during hibernation, booting into Linux can cause various problems.
|
||||
If you are dual booting with Windows turn off Fast Start. Fast Start puts Windows into hibernation when you power off. Because some systems are still active during hibernation, booting into Linux can cause various problems.
|
||||
|
||||
---
|
||||
|
||||
@@ -46,7 +46,7 @@ To connect to a WiFi network:
|
||||
|
||||
|
||||
### Plan your disc partitioning strategy
|
||||
I typically run Linux on a dual-boot system with Windows. Generally I'll install Windows first, then reduce the size of the partition, freeing up enough unalocated space for Linux. If I'm running a single boot system on either a new drive or a repurposed drive then I can simply kill all existing partitions (see below).
|
||||
I typically run Linux on a dual-boot system with Windows. Generally I'll install Windows first, then reduce the size of the partition, freeing up enough unallocated space for Linux. If I'm running a single boot system on either a new drive or a repurposed drive then I can simply kill all existing partitions (see below).
|
||||
|
||||
To view your disc partitions:
|
||||
|
||||
@@ -64,15 +64,21 @@ This step is only necessary if you are using a drive with existing partitions. T
|
||||
|
||||
### Zero the hard drive with random data
|
||||
|
||||
Not really necessary, but I like knowing that I'm using a drive with no data.
|
||||
Not really necessary, but I like knowing that I'm using a drive with no data. Here's how to do it using dd:
|
||||
|
||||
dd if=/dev/urandom of=/dev/sd* status=progress
|
||||
|
||||
Or if you're paranoid you can use a multi-pass tool like shred;
|
||||
|
||||
shred -vfz -n 5 /dev/sd*
|
||||
|
||||
__IMPORTANT:__ _Make sure you are pointing to the partition you want to overwrite. The above are just examples_
|
||||
|
||||
|
||||
### Partition the drive
|
||||
There are a number of tools available. This is how to do it using parted.
|
||||
|
||||
__NOTE:__ _Since we're using LVM we only need two drive partitions. The first is a boot partition (If you're dual booting with Windows then you will aready have a boot partition that can be shared with your Linux installation, so you can skip creating it), the second is the root partition where our LVM will live._
|
||||
__NOTE:__ _Since we're using LVM we only need two drive partitions. The first is a boot partition (If you're dual booting with Windows then you will already have a boot partition that can be shared with your Linux installation, so you can skip creating it), the second is the root partition where our LVM will live._
|
||||
|
||||
parted /dev/sda
|
||||
(parted) mklabel gpt
|
||||
@@ -82,17 +88,19 @@ __NOTE:__ _Since we're using LVM we only need two drive partitions. The first is
|
||||
|
||||
|
||||
|
||||
|
||||
### Create a physical volume
|
||||
### Create a physical volume on the root partition
|
||||
pvcreate /dev/sda2
|
||||
|
||||
### Create a volume group
|
||||
I usually name it "arch"
|
||||
I usually name mine "arch". If you use something else you'll need to replace it in the next three steps.
|
||||
|
||||
vgcreate arch /dev/sda2
|
||||
|
||||
### Create logical volumes for swap and root
|
||||
__NOTE:__ _The amount of swap space is a function of how much ram you have. The minimum, assuming you have at least 8GB of RAM, should be 4GB, up to 1.5 times RAM. (ie, 8GB RAM = 12GB swap)._
|
||||
|
||||
__NOTE:__ I typically only use two volumes (swap and root) rather than 3 (swap, root, and home) so I can encrypt the entire root volume with my home directory in it. If you prefer three volumes then you'll need to adjust all the disc operations that follow.
|
||||
|
||||
__ALSO:__ _The amount of swap space is a function of how much ram you have. The minimum, assuming you have at least 8GB of RAM, should be 4GB, up to 1.5 times RAM. (ie, 8GB RAM = 12GB swap)._
|
||||
|
||||
The sizes below can be specified in megabytes (100M) or gigs (10G)
|
||||
|
||||
@@ -100,34 +108,29 @@ The sizes below can be specified in megabytes (100M) or gigs (10G)
|
||||
lvcreate -n root -l 100%FREE arch
|
||||
|
||||
|
||||
### Encrypt the root partition
|
||||
cryptsetup luksFormat -v -s 512 -h sha512 /dev/mapper/LVM-root
|
||||
### Encrypt the root partition
|
||||
|
||||
cryptsetup luksFormat -v -s 512 -h sha512 /dev/mapper/arch-root
|
||||
|
||||
|
||||
### Decrypt the newly encrypted partition
|
||||
cryptsetup open /dev/mapper/arch-root root
|
||||
|
||||
|
||||
### Create filesystems on the two partitions
|
||||
|
||||
mkfs.vfat -F32 /dev/sda1
|
||||
mkfs.ext4 /dev/mapper/root
|
||||
|
||||
|
||||
### Mount the volumes
|
||||
|
||||
mount /dev/mapper/root /mnt
|
||||
|
||||
mkdir /mnt/boot
|
||||
mount /dev/sda1 /mnt/boot
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Choose download mirror (optional)
|
||||
nano /etc/pacman.d/mirrorlist
|
||||
|
||||
Reference in New Issue
Block a user