loop device mount partitions

If you have a disk image with multiple partitions, this type of image is used a lot for the raspberry pi, you can easily mount them using kpartx, you can install kpartx as follows

arch linux / manjaro sudo pacman -S multipath-tools # ubuntu 24.04 sudo apt install kpartx # centos 8 / oracle sudo yum install kpartx Maybe you need to insert the loop module, if so you can do that like this

One minute to read

Selinux Short

I few shorts remarks about selinux, more like a reminder for myself Restore directory permissions, exmple authorized keys files that doesn’t work restorecon -R -v ~/.ssh How to temporarily disable selinux, i use this for debugging to see if the problem is selinux echo 0 >/selinux/enforce # or setenforce 0 And to enable them again use echo 1 >/selinux/enforce # or setenforce 1
One minute to read

Boot Raspberry Pi over NFS

The Raspberry Pi is typically booted from an SD card which contains the bootloader and the root partition. This can be limiting from a space and speed perspective,and writes to the card will slowly cause it’s death. SD media doesn’t typically use the same wear leveling technology that goes into a solid state drive. Today I’ll take a quick look at how you can boot your Pi from an NFS server.
One minute to read