From 15d464ecde2545fc876e37d69936f88a925f84df Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 11 Nov 2020 11:13:56 +0100 Subject: [PATCH] Add parts of btrfs instructions --- .../Dokumente/other-linux/arch-install.md | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/arch-config/Dokumente/other-linux/arch-install.md b/arch-config/Dokumente/other-linux/arch-install.md index e8d60150..8ee66409 100644 --- a/arch-config/Dokumente/other-linux/arch-install.md +++ b/arch-config/Dokumente/other-linux/arch-install.md @@ -37,18 +37,38 @@ Ext4: mkfs.ext4 /dev/(partition) ``` +btrfs: +```bash +mkfs.btrfs /dev/(partition) +``` + ## Mounting partitions Generally partitions have to be mounted where you will later use them in your system. Root: /mnt -EFI: /mnt/boot +EFI: /mnt/boot or /mnt/efi Home: /mnt/home ## Creating swapfile +*Not applicable to btrfs* ```bash dd if=/dev/zero of=/mnt/swapfile bs=1M count=(size) status=progress ``` +*Swapfile in btrfs* +```bash +truncate -s 0 /mnt/swapfile +``` + +```bash +chattr +C /mnt/swapfile +``` + +```bash +btrfs property set /mnt/swapfile compression none +``` + +*Initialising swapfile* ```bash chmod 600 /mnt/swapfile ``` @@ -65,7 +85,23 @@ swapon /mnt/swapfile Some things like the userspace utilities for file management will vary. See [file systems](https://wiki.archlinux.org/index.php/File_systems#Types_of_file_systems) ```bash -pacstrap /mnt base linux linux-firmware vim dosfstools e2fsprogs git openssh networkmanager network-manager-applet dialog mtools base-devel linux-headers +pacstrap /mnt base linux linux-firmware vim git openssh networkmanager network-manager-applet dialog base-devel linux-headers +``` + +### Packages needed for file systems +Fat32: +```bash +dosfstools mtools +``` + +Ext4: +```bash +e2fsprogs +``` + +btrfs: +```bash +btrfs-progs ``` ## Generate fstab @@ -113,25 +149,6 @@ Edit `/etc/hosts` ## Bootloader installation -### rEFInd -*doesn't work atm* -```bash -pacman -S refind-efi efibootmgr -``` - -```bash -refind-install --usedefault /dev/(efi partition) --alldrivers -``` - -`mkrlconf` - -Edit `/boot/refind_linux.conf` -Delete any lines with "archiso". - -Edit `/boot/EFI/BOOT/refind.conf` -Search for `Arch Linux` (vim, press "/". Attention: case sensitive) -Under `options` replace the UUID after `root=` with the configured EFI partition. - ### GRUB ```bash pacman -S grub efibootmgr