User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:linux:arch-zfs-install [2025/09/02 14:08] wikiadmincomputers:linux:arch-zfs-install [2025/09/06 11:30] (current) wikiadmin
Line 1: Line 1:
-ls ===== Install arch linux with zfs root =====+ ===== Install arch linux with zfs root ===== 
 + 
   - Obtain latest ISO from archlinux.org and burn it to an ISO   - Obtain latest ISO from archlinux.org and burn it to an ISO
   - Boot up and change / size  \     - Boot up and change / size  \  
Line 41: Line 43:
   - Populate the fstab<code>   - Populate the fstab<code>
 echo "$(blkid /dev/sda1|cut -d\  -f2) /boot/efi vfat defaults 0 2" >> /mnt/etc/fstab echo "$(blkid /dev/sda1|cut -d\  -f2) /boot/efi vfat defaults 0 2" >> /mnt/etc/fstab
-echo "$(blkid /dev/sda2|cut -d\  -f2) none swap sw 0 0" >> /mnt/etc/fstab</code>+echo "$(blkid /dev/sda2|cut -d\  -f2) none swap defaults 0 0" >> /mnt/etc/fstab</code>
   - Move into the install   - Move into the install
     - <code>arch-chroot /mnt</code>     - <code>arch-chroot /mnt</code>
Line 50: Line 52:
 locale-gen locale-gen
 echo "LANG=en_US.UTF-8" > /etc/locale.conf</code> echo "LANG=en_US.UTF-8" > /etc/locale.conf</code>
-    - vconsole +    - vconsole<code>echo -e "KEYMAP=us\n#FONT=latarcyrheb-sun32" > /etc/vconsole.conf</code> 
-      - <code>echo -e "KEYMAP=us\n#FONT=latarcyrheb-sun32" > /etc/vconsole.conf</code> +    - hostname/hosts<code>echo tas > /etc/hostname</code>
-    - hostname/hosts +
-      - <code>echo tas > /etc/hostname</code>+
     - set root password<code>passwd root</code>     - set root password<code>passwd root</code>
-  - Create a normal user and add to sudoers/wheel group +  - Create a normal user and add to sudoers/wheel group<code>useradd -G wheel some_user
-    - <code>useradd -G wheel some_user+
 passwd some_user passwd some_user
-mkdir ~some_user && chown some_user ~some_user</code>+mkdir -p ~some_user && chown some_user ~some_user</code>
     - edit sudoers with visudo to uncomment one of the wheel stanzas<code>     - edit sudoers with visudo to uncomment one of the wheel stanzas<code>
 EDITOR=vim visudo</code> EDITOR=vim visudo</code>
Line 93: Line 92:
 refind-install refind-install
 rm /boot/refind_linux.conf rm /boot/refind_linux.conf
-cat << EOF > /boot/efi/EFI/ZBM/refind_linux.conf +cat << EOF >> /boot/efi/EFI/refind/refind_linux.conf 
-"Boot default "quiet loglevel=0 zbm.skip" + 
-"Boot to menu"  "quiet loglevel=0 zbm.show"+menuentry "zbm boot
 +    loader /EFI/ZBM/VMLINUZ.EFI 
 +    options "quiet loglevel=0 zbm.skip" 
 +
 +menuentry "zbm menu" 
 +    loader /EFI/ZBM/VMLINUZ.EFI 
 +    options "quiet loglevel=0 zbm.show" 
 +
 +menuentry "zbm backup menu" { 
 +    loader /EFI/ZBM/VMLINUZ-BACKUP.EFI 
 +    options "quiet loglevel=0 zbm.show" 
 +}
 EOF EOF
 </code> </code>
Line 114: Line 124:
 chmod 750 ~some_user chmod 750 ~some_user
 zfs snapshot zroot/ROOT/arch@initial zfs snapshot zroot/ROOT/arch@initial
 +exit
 </code> </code>
  

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