Results 1 to 7 of 7

Thread: [SOLVED] How do I STOP automounting of USB drives

  1. #1
    Join Date
    Oct 2007
    Location
    Sydney
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [SOLVED] How do I STOP automounting of USB drives

    I have an external USB drive with 3 partitions.

    How do I stop Ubuntu mounting the HFS+ partition?

  2. #2
    Join Date
    Jun 2006
    Location
    New Jersey
    Beans
    310
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How do I STOP automounting of USB drives

    system>preferences>removable media, just turn off the mount when inserted or hotpluged

  3. #3
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I STOP automounting of USB drives

    Quote Originally Posted by Milliways View Post
    I have an external USB drive with 3 partitions.

    How do I stop Ubuntu mounting the HFS+ partition?
    Doubtful you can choose which partition not to automount, it's all or nothing.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  4. #4
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How do I STOP automounting of USB drives

    Add an entry to /etc/fstab and set 'noauto' option, like so:
    Code:
    /dev/<device>   <mount-point>  <partition-type>   <other-options>,noauto  0 0
    You should Reboot for the changes to take effect.

    See this link for help with FSTAB and HFS specific details
    Last edited by kpkeerthi; October 21st, 2008 at 08:41 AM.

  5. #5
    Join Date
    Oct 2007
    Location
    Sydney
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How do I STOP automounting of USB drives

    Quote Originally Posted by shawnrgr View Post
    system>preferences>removable media, just turn off the mount when inserted or hotpluged
    system>preferences>Removable Drives and Media
    has entries for Cameras, PDA, Printers & Input Devices
    but not drives

  6. #6
    Join Date
    Oct 2007
    Location
    Sydney
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How do I STOP automounting of USB drives

    Quote Originally Posted by kpkeerthi View Post
    Add an entry to /etc/fstab and set 'noauto' option, like so:
    Code:
    /dev/<device>   <mount-point>  <partition-type>   <other-options>,noauto  0 0
    /dev/sdb1 /media/Mac hfsplus noauto,ro 0 0

    seems to do the trick.
    I wanted to use UUID, but the partition does not seem to have this.

    LABEL=XXXX works better than /dev/sdb1, which stopped USB keys from being mounted

    I had read the fstab document, but did not realise this could be used
    Last edited by Milliways; October 22nd, 2008 at 06:15 AM.

  7. #7
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I STOP automounting of USB drives

    Quote Originally Posted by Milliways View Post
    system>preferences>Removable Drives and Media
    has entries for Cameras, PDA, Printers & Input Devices
    but not drives
    Same on my 8.04 system, I had to use the Configuration Editor and go into:

    Apps-Nautilus-Preferences-media_automount to actually make mine automount after some naughty software disabled the feature.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •