User Tools

This is an old revision of the document!


Install arch linux with zfs root

  1. Obtain latest ISO from archlinux.org and burn it to an ISO
  2. Boot up and change / size \
    1. mount a swap partition
    2. mount -o remount,size=16G /run/archiso/cowspace
  3. Add zfs support
    1. curl -s https://archzfs.leibelt.de/media/setup/init | bash
    2. zgenhostid -f 0x00bab10c
  4. Create zfs pool
  5. Create file systems
  6. Export/Import pool and mount file systems
  7. Install the system
    1. pacstrap /mnt linux linux-headers linux-firmware base base-devel vim amd-ucode networkmanager sudo openssh rsync
  8. Create a normal user and add to sudoers/wheel group
    1. user add -G wheel toms
    2. passwd toms
    3. su - toms
  9. Install paru
    1. sudo pacman -S –needed base-devel git
    2. cd paru
    3. makepkg -si
  10. Install zfs support
    1. paru -S zfs-utils
    2. paru -S zfs-dkms
    3. exit to root
  11. finish setup
    1. zgenhostid -f 0x00bab10c
    2. edit /etc/mkinitcpio.conf
      1. remove fsck, add zfs resume
      2. mkinitcpio -P
    3. set up services
      systemctl disable zfs-import-cache.service
      systemctl mask zfs-import-cache.service
      systemctl enable zfs-import-scan.service
      systemctl enable zfs-mount.service
      systemctl enable zfs.target
      systemctl enable zfs-volumes.target
      systemctl enable zfs-import.target
      systemctl enable zfs-zed.service
      systemctl enable NetworkManager
    4. Time
      ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
      hwclock --systohc
    5. locale
      sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
      locale-gen
      echo "LANG=en_US.UTF-8" > /etc/locale.conf
    6. set root password
    7. vconsole
      1. echo -e "KEYMAP=us\n#FONT=latarcyrheb-sun32" > /etc/vconsole.conf
    8. hostname/hosts
      1. echo tas > /etc/hostname
      2. echo -e "127.0.0.1 localhost\n::1 localhost" >> /etc/hosts

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information