Urgent.News

What's breaking now, across thousands of outlets.

Tech

Using fstab instead of autofs for a samba share

A few weeks ago, I borrowed a Raspberry Pi 4B from a friend. Since it wasn't going to be used for a while, I decided to set up a network storage for our home network. It seemed like the most practical use for the Pi. The Problemo Everything was working great until today. After a quick look at the service status, here's what I was dealing with: Sep 14 03:06:13 homeserver systemd[1]: Starting…

A few weeks ago, the author set up a Raspberry Pi 4B to serve as a network storage solution for their home. The device was running Fedora Server 38 and was configured to use Samba for file sharing. The primary challenge was mounting a BTRFS, encrypted drive via Samba. The drive was often unmounting automatically due to inactivity and required a passphrase to unlock.

To resolve these issues, the author initially tried using autofs and crypttab, which worked well for a few weeks. However, a race condition emerged when the Samba service attempted to access the share before autofs had finished mounting the encrypted drive. The resolution was to use the built-in Fedora feature called fstab, which permanently mounts the drive at boot time, ensuring it is available before Samba starts.

The author removed the autofs configuration, created a mount point using mkdirmounted the drive with fstab, updated the Samba configuration to use the new mount point, and rebooted the Raspberry Pi. The result was a stable network storage solution that ensured file security and consistency.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Uptime Kuma on Fedora with Podman Quadlet

Over the weekend, I decided to set up Uptime Kuma on my mini-server. I needed a quick way to monitor some important work services, and Uptime Kuma’s Slack notifications make it easy to get alerts…

  • Uptime Kuma installed on Fedora mini-server for service monitoring
  • Podman Quadlet used to manage containers with declarative files
  • SELinux permissions adjusted and systemd service enabled via Quadlet

Suspend, Background, Disown

I'm currently working on a hobby project, using crawlers to download media files for a dataset. Some of these are large files that also need preprocessing.

  • Press CTRL + Z to suspend a running process.
  • Resume suspended process in background with 'bg'.
  • Disown process using 'disown -h %1' for independence.

When Redis goes down, does your app die?

The Problem: The App Dies There was an incident that caused our application to fail because our Redis cache went down. It was in the middle of moving to a larger compute instance to handle a higher…

  • Redis cache failure significantly impacted application experience
  • Resilient Cache-Aside approach implemented to handle exceptions
  • Circuit Breaker pattern improved app performance and user experience

Robot-use agents

  • LLMs like Claude and Fable can direct robot actions.
  • Emerging models may soon master general-purpose robot use.
  • Cloud-based LLMs could transform robots into AI-enabled devices.

More from Sunday 27 September →