0

I've managed to override any automounting in Debian 7 by opening GParted before connecting any USB drive or hotplugging Sata drives.

But now in Debian 8, this doesn't work anymore since Gparted went over 0.3.7. They were adding an .fdi file somewhere in the system but now use the hal locking system.

I saw that you can blacklist the usb-storage kernel module but this won't work for Sata drives. Some also says that I can disable automount by unchecking an option somewhere but this is still not good since it depends on a desktop environment.

So the question is: How do I disable automounting (for USB and Sata) and make a lock like Gparted (prior to 0.3.7) in Debian 8 without depending on a desktop environment or disabling a kernel-module ?

1
  • I've switched to Kali Linux 2.0/2016.1, where you can add to the "grub_cmdline_linux" the following options: noautomount noswap (using Kali's implementation in their forensics mode)
    – X.LINK
    Commented Jan 28, 2016 at 16:31

1 Answer 1

0

This worked for me on ubuntu, so it's probably also good for bare debian: http://www.tuxradar.com/answers/706

1
  • 1
    Could you expand on that Assume linkrot.
    – Hennes
    Commented Dec 8, 2015 at 15:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .