ads' corner

How to determine the mount point for a device on Linux

While reinstalling a server and moving it to Debian, I ran into the problem that I need to sync the EFI partitions. The system is using a RAID on two disks, but the EFI partitions can't be a RAID and need to exist on both disks. Or rather it is useful to have the EFI partition on every disk: if one disk fails, the system can boot from the other disk. grub only installs the necessary files on one partition. However one can use a script as grub hook, and sync all partitions. This script needs to determine if a device is already mounted somewhere, or needs to be mounted. Turns out there is a little and not well-known tool for this.

Install Debian Bookworm on a Software RAID and EFI

Moving my systems away from Ubuntu, I also have to reinstall a server at home. This system has two equal disks for a RAID system, and my plan is to install Debian on it. Turns out, setting up a Software RAID on Debian and booting from EFI is not a straightforward approach. This blog posting describes the steps.

Replace and re-add a failed drive to a Linux software RAID

Most of my systems run on a software RAID 1 configuration (that is, two disks, where each disk is mirrored to the other). This way, one of the disks can fail and still all the data is available.

If a disk failure happens, the disk is replaced with a similar disk, and then needs to be configured and re-added to the RAID.


Install Debian Etch on a Software Raid 1 with S-ATA disks

New server, S-ATA disks, the hardware RAID controller is not really supported. So we decided to use a software RAID 1 for the two disks.