I’ve been an avid Ubuntu user since I started coding. However, there might be a few things I don’t like about Ubuntu. One among them is mounting an external drive immediately when it is plugged into the computer. This can be annoying when you’ve connected your phone and it mounts and unmounts while you are working on something important. This has been happening with me for a few days now after I bought a top-selling USB cable on Amazon.
To fix this, you just need to run one command to change the gsettings configuration:
gsettings set org.gnome.desktop.media-handling automount-open false
This will toggle the default behavior of nautilus or any other file manager you have on your Linux box and prevent it from auto-opening the mounted drive.