Modern ArchLinux on Dell T20
All what we need is:
- Server - in my case it is underpowered Dell T20
- USB 3.0 stick
- Some hard drive
We are going to install base OS in following setup:
- The hard disk will receive partitionless BTRFS file system
- The USB stick will have GRUB plus boot partition plus some "future use partition".
Setup log:
- After booting USB installer, fix keyboard layout: loadkeys uk
- It is good to know haw devices were mapped (later fstab can use labels, but for now we need to know device names): lsblk -f
- Create BTFRS filesystem on main hard drive: mkfs.btrfs -L ARCH_ROOT /dev/sda
- Use gdisk to create GPT partitions for Grub - 1M of type ef02 and 512M of type ef00, rest of the disk will be used as spare partition gdisk /dev/sdb
- We shall format boot partition: mkfs.fat -F32 -n ARCH_BOOT /dev/sdb2
- After sync we can reboot.
- Now we shall mount our partitions:
mount /dev/sda /mnt
mkdir /mnt/boot
mount /dev/sdb2 /mnt/boot - Install the basic system: pacstrap /mnt base
- Generate fstab: genfstab -L /mnt >> /mnt/etc/fstab
- Change root to newly created filesystem: arch-chroot /mnt
- Set hostname: nano /etc/hostname
- Set timezone ln -sf /usr/share/zoneinfo/Europe/Belfast /etc/localtime
- Uncomment en_GB.UTF-8 in /etc/locale.gen
- Run locale-gen
- Put LANG=en_GB.UTF-8 in /etc/locale.conf
- Put KEYMAP=uk in /etc/vconsole.conf
- Run mkinitcpio -p linux
- Install grub: pacman -S grub
- Install boolader: grub-install --target=i386-pc /dev/sdb
- Configure bootloader: grub-mkconfig -o /boot/grub/grub.cfg
- Finally set password passwd
- You're done. exit chroot and reboot.
Comments
Post a Comment