devmon(1)

πŸ’– devmon β€” the manual page, but make it a group chat πŸ’–

okay bestie, sit down, hydrate, and let me tell you about devmon(1) β€” she's the little Unix bestie who automounts and unmounts your optical and removable drives so you never have to think about it again. no cap. she's giving "I'll handle the drives, you handle the vibes." ✨


✨ NAME ✨

devmon β€” Automounts and unmounts optical and removable drives πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

devmon [AUTOMOUNT-OPTIONS] # Run as daemon to automount
devmon [MOUNT-OPTIONS] # Or run as client to manually un/mount

so literally you just pick a lane: run her as a daemon to automount, or run her as a client to manually un/mount. that's it. that's the whole vibe check. πŸ’…


🌸 DESCRIPTION 🌸

devmon β€” Automounts and unmounts optical and removable drives.

periodt. that's the job. she sees a drive, she mounts it. she sees a drive leaving, she unmounts it. main character energy, zero drama. πŸ‘‘


🌈 USAGE 🌈

πŸŽ€ AUTOMOUNT-OPTIONS πŸŽ€

heads up bestie: these can be used only in daemon mode. daemon mode only. don't try it in client mode, she will not know you. πŸ™ˆ
  • --exec-on-device DEVICE COMMAND β€” Execute COMMAND after mounting DEVICE
  • --exec-on-label LABEL COMMAND β€” Execute COMMAND after mounting LABEL
  • --exec-on-video COMMAND β€” Execute COMMAND after video DVD mount
  • --exec-on-audio COMMAND β€” Execute COMMAND after audio CD insertion
  • --exec-on-disc COMMAND β€” Execute COMMAND after data CD/DVD mount
  • --exec-on-drive COMMAND β€” Execute COMMAND after drive mount
  • --exec-on-unmount COMMAND β€” Execute COMMAND after unmount
  • --exec-on-remove COMMAND β€” Execute COMMAND after drive removal

Where the following in COMMAND will be replaced with:

  • %d β€” mount point directory (eg /media/cd)
  • %f β€” device name (eg /dev/sdd1)
  • %l β€” label of mounted volume

Multiple --exec-on-XXX options may be used to execute multiple commands. Other exec-on-XXX commands are ignored if exec-on-device or -label executed. (yes, she plays favorites, we don't make the rules πŸ’€)

  • --mount-options OPTIONS β€” Default: noexec,nosuid,nodev,noatime
  • --info-on-mount β€” Show mounted drive info in a popup dialog
  • --no-mount β€” Don't mount anything, just exec (disables --exec-on-video)
  • --no-unmount β€” Don't unmount all removable drives on exit

πŸ¦„ MOUNT-OPTIONS πŸ¦„

and these ones? only in client mode. client mode only, bestie. iykyk. πŸ’œ
  • --unmount-removable, -r β€” Sync and unmount all removable drives and show pop-up dialog (spacefm or zenity required)
  • --unmount-recent, -c β€” Unmount most recently mounted removable drive
  • --unmount-optical, -o β€” Unmount all optical drives (error pop-up only)
  • --unmount-all, -u β€” Same as --unmount-removable, --unmount-optical
  • --unmount DIR|DEVICE β€” Unmount DEVICE or mount point DIR
  • --eject DIR|DEVICE β€” Unmount and eject DEVICE or mount point DIR
  • --mount-all, -a β€” Mount all removable and optical drives
  • --mount DEVICE β€” Mount DEVICE
  • --mount-options, --mount-fstype, --eject-options OPTIONS β€” These options will be passed to mount or eject

πŸ“ THE REST OF THE OPTIONS πŸ“

  • --ignore-device DEVICE β€” Ignore DEVICE (eg /dev/sdd1)
  • --ignore-label LABEL β€” Ignore volume with LABEL
  • --sync, -s β€” Add sync mount option for ext2-4 ntfs ufs, or flush for fat & vfat (slower writing but safer)
  • --internal β€” Also attempt to un/mount internal system drives (this is mostly a fix for esata issues)
  • --no-gui, -g β€” Do not show spacefm/zenity pop-up dialogs

πŸ’œ AUTHOR πŸ’œ

This manual page was written by Mateusz Łukasik <mati75@linuxmint.pl>, for the Debian GNU/Linux system (but may be used by others). 🫢


okay and that's the whole thing, bestie β€” devmon(1), dated March 2013, and honestly? she ate. go automount something. πŸ’…πŸŒΈβœ¨