Score:0

how to disable automount of usb drive at boot in ubuntu 20.04?

si flag

I have a RDX Drive (USB Intern) for backups on the Server. When the backups are done the Server does a restart. It then mounts the RDX Drive. I can get the Cartridge out by pushing and holding the Eject Button until the Cartridge comes out. But there must be a way to disable this. I have set dconf-editor so that the auto mount is disabled for all users and that works, RDX Drive does not automount when I put it in. I tried with 00-media-automount and user local, but nothing seems to work. I change Cartridges every day, so setting /etc/fstab to noauto is not the solution either. Any Ideas?

vanadium avatar
cn flag
Include in fstab not to mount, then mount in a script before backup and unmount after the backup is not a solution?
user1360628 avatar
si flag
systemctl mask udisks2, seems to have stop the automounting. Will this have any other efects on the Server?
vanadium avatar
cn flag
Other than entirely disabling automounting? No.
user1360628 avatar
si flag
Thanks this exactly what I want.
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.