Tutorials

Using iocage on Freenas

Since the old jail system on Freenas is soon to be removed, they want users to migrate to iocage instead. You can only administrate iocage jails via the new (beta) Web UI, with limited functionality however. Here’s a quick reference on how to create a new jail, add network and mount a dataset in it. […]

Posted in Applejack, FreeNAS, Tutorials | Comments Off on Using iocage on Freenas

Convert GRUB to systemd-boot (EFI)

If you’ve followed my earlier guide on how to install Arch Linux you’ve probably used GRUB to boot the system. Now it’s time to step into the future even further with systemd-boot instead! Run the command below to begin the installation, the path is your EFI-partition. bootctl –path=/boot/efi install Create the file /boot/efi/loader/entries/arch.conf with the […]

Posted in Arch, Tutorials | Comments Off on Convert GRUB to systemd-boot (EFI)

Automatic snapshots with btrfs and ruby

I’ve been using this script for a while to automatically create snapshots of my system and rotate old snapshots. It has saved me a few times when an upgrade has gone wrong, or a setting crashed my whole desktop: https://github.com/markmcb/btrfs_snapshot_rotate It’s easy to set up, just install the packages below (on Arch Linux): pacman -S […]

Posted in Arch, Tutorials | Comments Off on Automatic snapshots with btrfs and ruby

Enable discard (TRIM) on SSDs while running LVM on LUKS and Btrfs (Arch)

You might’ve followed the guide at my guide on how to install Arch, and would like to enable the Discard command on your shiny SSD, to keep it fresh! First add discard as a mount-option to your /etc/fstab: /dev/mapper/lvmvg-rootvol / btrfs rw,relatime,ssd,discard,compress=lzo,space_cache,subvol=root 0 0 /dev/mapper/lvmvg-rootvol /home btrfs rw,relatime,ssd,discard,compress=lzo,space_cache,subvol=home 0 0 Then allow discard-command to go […]

Posted in Arch, Tutorials | Comments Off on Enable discard (TRIM) on SSDs while running LVM on LUKS and Btrfs (Arch)

Installing Arch with LUKS and Btrfs (EFI)

NOTE: This post has been updated 2017-05-30 to use systemd-boot instead of GRUB. NOTE: This post has been updated 2019-03-08 to skip using LVM since Linux kernel 5.0 allows swap file on Btrfs. Also using systemd-init. I did the steps below to install my Arch for the first time, because I wanted to use Btrfs […]

Posted in Arch, Tutorials | Comments Off on Installing Arch with LUKS and Btrfs (EFI)

Converting Windows 8.1 BIOS installation to UEFI

It is easy as pie! Prerequisites: – Start the computer in BIOS-mode (not UEFI!) – Take a full backup of your machine, or two. You can never have too many backups :) – Have at least a 300 MB partition/free space before your Windows partition on the hard drive. The default Windows installation does this […]

Posted in Tutorials, Windows | Comments Off on Converting Windows 8.1 BIOS installation to UEFI

Convert from ext3 to ext4

Saw that I had ext3 running on some of my SSDs which supposedly does Not support TRIM. Time to convert them to ext4! umount /dev/sdb1 fsck.ext3 -pf /dev/sdb1 tune2fs -O extents,uninit_bg,dir_index /dev/sdb1 fsck.ext4 -yfD /dev/sdb1 Then change the mount options in /etc/fstab: /dev/sdb1    /mnt/sdb    ext4    defaults,noatime,discard,nodiratime,errors=remount-ro    0 1 All done! Now […]

Posted in SSD, Tutorials | Comments Off on Convert from ext3 to ext4

Reflash LSI MegaRAID 9240-8i to 9211-8i

Creating this post for future reference because I can never really remember how to firmware upgrade my raid card LSI MegaRAID SAS 9240-8i, which is now a LSI MegaRAID SAS 9211-8i. Basically this guide is a rewrite of this forum post. Created a standard bootable DOS USB Flash Drive. Download the firmware tools (local mirror) […]

Posted in Applejack, FreeNAS, Tutorials | Comments Off on Reflash LSI MegaRAID 9240-8i to 9211-8i