Update README.md
This commit is contained in:
		
							
								
								
									
										24
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								README.md
									
									
									
									
									
								
							@@ -49,30 +49,33 @@ Your root volume should be 25-50 GB big, your home volume takes up the remaining
 | 
			
		||||
$ lvcreate -L 25G -n root main  
 | 
			
		||||
$ lvcreate -l 100%FREE -n home main
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
**Create the filesystems and mount your volumes.**  
 | 
			
		||||
$ mkfs.fat -F 32 -n UEFI /dev/sda1  
 | 
			
		||||
**-F specifies the type of file allocation tables used (12, 16 or 32 bit).**  
 | 
			
		||||
**-n sets the volume name (label) of the filesystem to "UEFI".**  
 | 
			
		||||
  
 | 
			
		||||
**Create ext4 filesystem on primary partition.**  
 | 
			
		||||
$ mkfs.ext4 /dev/mapper/root  
 | 
			
		||||
**Create ext4 filesystem on root and home volumes.**  
 | 
			
		||||
$ mkfs.ext4 -L root /dev/mapper/main-root  
 | 
			
		||||
$ mkfs.ext4 -L home /dev/mapper/main-home
 | 
			
		||||
  
 | 
			
		||||
**Create mountpoints and mount partitions.**  
 | 
			
		||||
$ mount /dev/mapper/root /mnt  
 | 
			
		||||
$ mount /dev/mapper/main-root /mnt  
 | 
			
		||||
$ mkdir /mnt/boot  
 | 
			
		||||
$ mkdir /mnt/home  
 | 
			
		||||
$ mount /dev/sda1 /mnt/boot
 | 
			
		||||
$ mount /dev/mapper/main-home /mnt/home
 | 
			
		||||
  
 | 
			
		||||
**Optionally update mirrorlist using reflector.**  
 | 
			
		||||
**In this case use the latest 10 mirrors from Germany, that have been synchronized within the last 24 hours and sort the by download-rate and write them to the pacman mirrorlist.**  
 | 
			
		||||
$  reflector --verbose --latest 10 --country Germany --age 24 --sort rate --save /etc/pacman.d/mirrorlist  
 | 
			
		||||
$  reflector --verbose --latest 10 --country Germany --age 24 --protocol https --sort rate --save /etc/pacman.d/mirrorlist  
 | 
			
		||||
  
 | 
			
		||||
**Install base system and basic packages (network, editor, sudo).**  
 | 
			
		||||
**The package base-devel is not necessary but recommended.**  
 | 
			
		||||
$ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo  
 | 
			
		||||
$ pacstrap /mnt base base-devel linux linux-firmware networkmanager nano sudo lvm2  
 | 
			
		||||
  
 | 
			
		||||
**Generate fstab.**  
 | 
			
		||||
$ genfstab -Lp /mnt > /mnt/etc/fstab  
 | 
			
		||||
**-L = Use labels for source identifiers (shortcut for -t LABEL).**  
 | 
			
		||||
$ genfstab -Up /mnt > /mnt/etc/fstab  
 | 
			
		||||
**-U = Use UUID for source identifiers (shortcut for -t LABEL).**  
 | 
			
		||||
**-p Exclude pseudofs mounts (default behavior).**  
 | 
			
		||||
  
 | 
			
		||||
**Chroot into your installation.**  
 | 
			
		||||
@@ -92,7 +95,7 @@ $ locale-gen
 | 
			
		||||
$ nano /etc/mkinitcpio.conf  
 | 
			
		||||
  
 | 
			
		||||
**MODULES=(ext4)**  
 | 
			
		||||
**HOOKS=(base udev autodetect modconf block keyboard keymap encrypt filesystems fsck shutdown)**  
 | 
			
		||||
**HOOKS=(base udev autodetect modconf block keyboard keymap encrypt lvm2 filesystems fsck shutdown)**  
 | 
			
		||||
  
 | 
			
		||||
**Create mkinitcpio.**  
 | 
			
		||||
$ mkinitcpio -p linux  
 | 
			
		||||
@@ -114,7 +117,7 @@ $ nano /bootloader/entries/arch.conf
 | 
			
		||||
title    Arch Linux
 | 
			
		||||
linux    /vmlinuz-linux
 | 
			
		||||
initrd   /initramfs-linux.img
 | 
			
		||||
options  cryptdevice=/dev/sda2:root root=/dev/mapper/root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
 | 
			
		||||
options  cryptdevice=/dev/sda2:main root=/dev/mapper/main-root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
 | 
			
		||||
```
 | 
			
		||||
  
 | 
			
		||||
**Create a fallback config.**  
 | 
			
		||||
@@ -141,6 +144,7 @@ default arch.conf
 | 
			
		||||
**Exit and reboot.**  
 | 
			
		||||
$ exit  
 | 
			
		||||
$ umount /mnt/boot  
 | 
			
		||||
$ umount /mnt/home  
 | 
			
		||||
$ reboot  
 | 
			
		||||
  
 | 
			
		||||
**Enter encryption-password and login as root.**  
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user