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>
4.1 KiB
4.1 KiB