Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm interested in mount/umount usb and other devices directly from emacs.
In many file mangers (like nautilus) the devices are automatically discovered and indicated with an icon, it's possible to do something smart for emacs (maybe in dired)?
(defun sudo-shell-command (command) "Execute a shell-command with sudo tramp." (shell-command (concat "echo " (read-passwd (concat "[sudo] password for " user-login-name ": ")) " | sudo -S " command)))
In my opinion you could simple use autofs, see https://wiki.archlinux.org/index.php/Autofs
Required, but never shown