Files
wedding-phone/setup_usb_automount.sh
grabowski 81a3318a5f Add systemd-based USB auto-mount setup script
Created setup_usb_automount.sh to solve fstab auto-mount issues
with modern systemd-based Raspberry Pi OS.

Features:
- Creates systemd .mount and .automount units
- Extracts UUIDs from existing /etc/fstab automatically
- Allows manual UUID entry if not found
- Auto-mounts when USB drives are accessed (on-demand)
- Works even if USB drives are plugged in after boot
- Proper user permissions (uid/gid)
- Easy enable/disable via systemctl

This solves the issue where fstab entries don't auto-mount
because USB drives aren't present at boot time or systemd
has different mounting priorities.

Usage:
  sudo ./setup_usb_automount.sh

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 15:11:17 +07:00

4.1 KiB