Score:1

(auto)mount in a command line installation at plugin of USB-drive

cn flag

This is what I need for my command line installation:

I have neither keyboard nor monitor on that server, so I can't and don't want to issue any command at reboot/plugin. On my GUI-installs, this works (e.g. with System Settings). fstab seems infeasible, because it panics when the drive is missing at boot, and sometimes it will be missing. And at any later insertion, fstab doesn't do anything. So I'd have to ssh into that box and issue a sudo mount /dev/sdc2 /home/myself/Media. This command even accepts different file formats.

How can I reproduce the cleverness of the GUI (detect insertion, detect file system, mount to given point in path) on the command line?

Thanks in advance!

P.S.: I have no fixed UUID on the drive to be inserted. The drive to be inserted, however, will always be /dev/sdc2. Any drive with any file system (as long as supported) should be mounted to that fixed point in path. Just like mount /dev/sdc2 /home/myself/Media does!

guiverc avatar
cn flag
You can have *fstab* `automount` or **not** `automount`; but you're without clear details. Why are the *timeouts* an issue? (*given they are in your control to a very large extent!*) If it *panics* you're using incorrect options & the panic is a result of your telling it to panic!! (ie. *just have it timeout & then not mount)
Raffa avatar
jp flag
Related: https://askubuntu.com/a/1417803
udippel avatar
cn flag
Thanks for the link, @Raffa. This describes what I was looking for. I would need some time to implement this, though. Therefore I want to thank you today.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.