Disable Auto-Mounting

Hi Everyone,
I have been searching forum after forum trying to find an answer to my question but am not having any luck. I have found one option but there has to be a better way. As I am taking a Computer Forensics major I need to disable auto-mounting of USB drives so I can manually mount the device with read-only options so I do not destroy evidence on drive I need to investigate.
About 3 versions ago in Ubuntu I was able to just uncheck a box in the system settings so it would not auto-mount. Then they decided to get rid of that option because it was not compatible with changes they made to other parts of the system. So to get around the auto-mounting I found that I could shutdown hal, plug the drive in, issue my mount command, then finally restart hal so network manager and other services that needed it could run right. This seems kind of pointless to have to shut down hal and break things just so I can mount a drive. Since I recently left Ubuntu behind and converted to Arch I thought I would see if you guys had any ideas.
I know I can add options to fstab but since I will get a different drive for every investigation this doesn't seem to be an option either.
Any help you guys could offer would be highly appreciated.
Thanks,
Timn
Last edited by Timn (2009-11-17 01:18:33)

It is probably your window manager that does the auto-mounting, not arch. If it's gnome, there is a key in the gconf "/apps/nautilus/preferences/media_autorun" which you would need to disable. I do use FluxBox as a WM which does not do any mounting. These are the only window managers for which I can provide specific inforamtion. But no matte what you use, KDE, XFCE or something else, there should be a configuration that allows you to disable it.
If that didn't help, please provide more specific information about your setup.

Similar Messages

  • Disable Gnome auto mount for one specific UUID

    I am using Gnome 3 (gnome disk utility,udisks,udev stack i think).
    I have a device (Garmin Edge 800) that I am only going to use in Virtualbox so I want to prevent it from automatically mounting in Gnome. However I want other devices to auto mount as normal so disabling auto mount entirely isn't an option.
    The device got two UUIDs and previously I could write a HAL fdi policy to ignore devices with those UUIDs, but now that HAL is deprecated I am not able to figure out how to do this.
    Last edited by lessthanjake (2011-06-29 09:56:30)

    There's probably a udev config file somewhere (udev wiki perhaps) but you can do it with fstab "noauto" that's what I do for partitions I don't want to auto mount.

  • Working auto-mount?

    Hi all,
    I have a xfce4 desktop installed. I want an automount service. I tried autoFS, with the following settings:
    auto.master
    /media /etc/autofs/auto.custom --timeout=15
    auto.custom
    disc -fstype=auto,ro,nodev,nosuid :/dev/cdrom
    Backup -fstype=auto,user,rw,async,umask=000,gid=users,noatime,nodiratime :/dev/disk/by-uuid/f569bba5-8007-40f5-8b3c-36960c5796d5
    ## Backup -fstype=ext4,user,rw,async,umask=000,gid=users,noatime,nodiratime :/dev/disk/by-uuid/f569bba5-8007-40f5-8b3c-36960c5796d5
    Shared -fstype=ntfs-3g,user,rw,async,umask=000,gid=users,noatime,nodiratime :/d ev/disk/by-uuid/565AF3085AF2E421
    ReaderCard -fstype=vfat,flush,user,rw,async,umask=000,gid=users,noatime,nodirat
    ime :/dev/disk/by-uuid/0102-0304
    ##ReaderInt -fstype=auto,async,nodev,nosuid,umask=000,gid=users :
    ## Other medium here
    # floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl
    The files are formatted following the instructions. The partition Backup, however, does not come up ("no such file or directory", even when root).
    Backup is ext4 and it's kept on an external hard drive, the same of Shared. Mounting it manually works. I have tried with simpler options (as simple as
    Backup -fstype=auto :/dev/disk/by-uuid/f569bba5-8007-40f5-8b3c-36960c5796d5
    with no results. Autofs won't do.
    As an alternative I have tried xfce volume manager, but that doesn't work with ANY external device.
    Please help. Thank you.

    That would be a solution - if it worked. I tried that too. The Arch wiki just glances on the setup, solving the whole question with a one liner "Thunar-volman's automount doesn't work currently because of the hal to udev switch, Sept 2010"
    The section on udev is obscure, mentioning to check policykit to "properly start your session".
    However the policykit page is also obscure, containing no mention about starting X session properly or even improperly for what matters.
    The default setting produces no result at all.
    Nowhere I was able to find a five-lines working example of set up. I have used Linux daily since 2000 (and I know it should not take more than 5 line explanation to setup an auto-mount).
    I am really embittered by this interpretation of "the arch way". The documentation on certain core tools such as policykit is completely insufficient and the defaults do not solve basic problems (hours to set up a basic auto-mount? incomplete wiki pages referring each other?).
    Arch could be a perfect desktop distribution with just a pinch of attention to put the obvious features, when correctly disabled by default, at easy reach through complete examples. (Shutdown buttons? Same story: one line reference to policykit, dbus and other 10 tools with not the barest explanation about how to use them in synergy for the purpose. Result? Manual shutdown for the moment).
    If you could provide a working setup for thunar volume manager I'll be happy to use and add it to the wiki.
    Thank you.

  • Disable Auto Logout

    Hello,
    Can anyone please point me in the right direction for disabling auto logoff?
    The option is not available anywhere in the System Preferences.
    I need the account to stay logged in so a software package can access a mounted share.
    Many Thanks!
    Glenn

    I'm not sure I understand the question - there is no auto-logout (at least by default).
    Either way, you shouldn't need to have an account logged in for mounts to stay active - if that's the case then I suggest you're mounting them incorrectly
    That said, without more detail of what it is you're trying to do, it's hard to be sure.

  • Rhythmbox breaks auto mounting.

    For a few days I have struggeled with making gnome-volume-manager automount removable storage devices. Some times it woked and sometimes it did not. I had enabled hal and dbus I was sure gnome-volume-manager was running. Eventualy I even loggeg into Gnome as root and everything workes perfectly, so my system is configured correctly. So maybe it was a permission issue, was what first come to my mind, but eventualy it turned out to be Rhythmbox(Rb) who was the trubblemaker. Rb does not autostart as root, as it does on my regular user account, thats way it worked as root.
    Now, after some more testing, the situation is this: Automounting works perfektly until i start rhythmbox, then it just stop woking. Even if i stops Rhythmbox, automounting still is broken, even a "pkill gnome-volume-manager && gnome-volume-manager" does not fix it, but logging out and inn again does fix it! No other programs breaks auto mounting!!
    I have tried to recompile Rb without both the --with-ipod and --with-dbus flags, but it did not help? Otherwise I have a standard Arch-install.

    This is my rc.conf, so if you don't see anything wrong with it I can file a bug!
    # /etc/rc.conf - Main Configuration for Arch Linux
    # Localization
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/unimaps
    # USECOLOR: use ANSI color sequences in startup messages
    HARDWARECLOCK="UTC"
    TIMEZONE=Europe/Oslo
    KEYMAP=no-latin1
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # Networking
    HOSTNAME="arch"
    # Module to load at boot-up (in this order)
    #   (prefix a module with a ! to disable it)
    MODULES=(usblp fuse snd-bt-sco)
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    #   - prefix an entry in INTERFACES with a ! to disable it
    # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
    lo="lo 127.0.0.1"
    eth0="dhcp"
    ra0="dhcp"
    INTERFACES=(lo ra0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    #   - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up.  These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    #   - set to 'menu' to present a menu during boot-up
    #   - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network-profiles
    #NET_PROFILES=(main)
    # Daemons to start at boot-up (in this order)
    #   - prefix a daemon with a ! to disable it
    #   - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng hotplug sshd network netfs crond dbus portmap fam hal alsa cups uptimed sensors hcid)
    # End of file

  • Using NFS Auto Mounts with File Event Generators (FEG)

    Has anyone had experience with using WLI file event generators with auto mounted NFS filesystems? The problem that we are running into is that threads are staying blocked if there is an I/O request to a hard mounted NFS filesystem that does not return a response. We know we need to figure out why periodically we are not getting a response from the NFS server on some requests, but the thought is that at least with auto mounting, the request would time out and the thread would continue, process the I/O exception, and then go back into the pool. Thx.

    OK, I have a work around that will do for now: disable DNFS, like this:
    cd $GI_HOME/rdbms/lib
    make -f ins_rdbms.mk dnfs_off
    Re-start ASM, and then it works:
    SQL>
    SQL> alter system set asm_diskstring='/dev/sd*1','/u01/nfs_shares/asm/*' scope=memory;
    System altered.
    SQL>  select group_number,path,header_status from v$asm_disk;
    GROUP_NUMBER PATH                          HEADER_STATU
              0 /u01/nfs_shares/asm/irond3    CANDIDATE
              0 /u01/nfs_shares/asm/irond6    CANDIDATE
              0 /dev/sdg1                      CANDIDATE
              0 /dev/sdh1                      CANDIDATE
              0 /u01/nfs_shares/asm/irond4    CANDIDATE
              0 /dev/sdf1                      CANDIDATE
              0 /u01/nfs_shares/asm/irond1    CANDIDATE
              0 /u01/nfs_shares/asm/irond5    CANDIDATE
              0 /u01/nfs_shares/asm/irond2    CANDIDATE
              1 /dev/sde1                      MEMBER
              1 /dev/sdd1                      MEMBER
              1 /dev/sdc1                      MEMBER
              1 /dev/sdb1                      MEMBER
    13 rows selected.
    SQL>
    But clearly, this is not ideal. If anyone has any other suggestions, I would be very grateful.

  • How to turn off auto mounting of server on boot?

    I've got an old MacPro that is running Mavericks but is having an issue where the finder constantly crashes and restarts. I think it may have to do with a an old server (an external Mac mini) that would mount when the MacPro booted up because I now get an error message telling me that the Mac Pro can no longer find that server (which makes sense as it is no longer there). If I leave the error window open and don't click 'ok', the Finder remains intact and the crash loop does not begin. If I click 'ok' in the server connection error window, the problems begin.
    …So, where do I "turn off" this auto mounting of the old mac mini on boot? I've looked in my Login items in the system prefs and no such task is there, and I can no longer recall how i even set up this automount function.
    Thanks for any help you can offer.
    Mark

    Repair Disk.
    Choose Apple menu > Restart. Hold down the Command (⌘) and R keys as your computer restarts.
    When you see a white screen with an Apple logo in the middle, you can release the keys.
    Click Disk Utility, and then click Continue.
    In the list at the left, select the item you want to repair.Macintosh HD.
    Click First Aid.
    Click Repair Disk.
    If Disk Utility reports that the disk appears to be OK or has been repaired, you’re done.
    Click Restart.

  • How to Disable "Auto Align" in [System Pref.] - [Display] - [Arrangement]

    Does anyone know How to Disable "Auto Align" in [System Preferences] -> [Display] -> [Arrangement]?
    It always want to align the two screens from the top when they are lined up close together and I need them to be aligned from the bottom. Since the resolution heights are so close together (1080 & 1050) it does not allow one to align side by side from the bottom as it prioritizes top alignment.
    I guess I'm looking for a script to disable this feature.

    Anyone got any ideas?

  • How can I disable auto-switching desktops?

    I've long appreciated the spaces/mission control feature of OS X. However, it seems more oriented to organizing desktops by application rather than by project.
    Like many users, I suspect, I use different desktops for different projects, each of which requires a variety of applications (finder, word docs, spreadsheets, etc). When I'm working on project 1 in desktop 1, I never want to be whisked away to desktop 2. In fact, I never want to be switched to a different desktop automatically. If I click on an application, I want it to open a new window for that application. If a new iteration of an app can't be opened (ie, Mail), I'd like it to pull Mail to me rather than send me off to it. Aren't apps supposed to come when we call, not the other way around?
    I have unchecked "...switch to a space with open windows of that application" in System Prefences, but my desktop continues to auto-switch, especially with Finder.
    In short: is there a way disable auto-switching entirely? I'd like to be able to assign windows and navigate manually without being constantly pulled away from the project I'm working on.
    Thanks for the help; I really appreciate people spending their time helping others on forums like this one.

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode.  Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac

  • How Do I find out what app is auto-mounting a network share and stop it?

    I have a new laptop, the 13" rMBP.  I installed Steam and wanted to use the network share on my server to store the game files.  Everything went OK.  I closed Steam, disconnected the share and shutdown my laptop.  When I opened my laptop later on at work, it started to try and mount the network share.It keeps on going it.  I removed the Steam app and all files related to Steam that I could find.  I've looked at fstab, auto_home, auto_master and a large list of other files and directories and I *still* cannot find the offending file that's auto-mounting the share.  It's really frustrating.
    The share auto-mounts when I am home but not on the desktop or in finder.  I find it by looking at /Volumes/ in terminal.  If I mount the share manually under /Volumes/ it shows as Games-1 and mounts on the desktop under Games.
    Does anyone have any ideas on where I should be looking to find the offending process/file/daemon?
    Thank you!
    Trevor

    thanks for the reply but are you sure about this? What difference would it make? Why 5 apps?
    Even if it does work, which I doubt, at some point, I will have to resync ALL my apps again and surely the same thing will happen again, and I will be none the wiser. I still won't know which app it is. There must be a way of finding this out.
    Any ideas?
    What is really freaking me out is how it is connecting to my carrier (who is charging me) with Cellular data switched off.......?
    Thanks again.

  • Hello. I have a problem with OEL 6.5 and ocfs2. When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.

    Hello.
    I have a problem with OEL 6.5 and ocfs2.
    When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.
    fstab:
    UUID=32130a0b-2e15-4067-9e65-62b7b3e53c72 /some/4 ocfs2 _netdev,defaults 0 0
    #UUID=af522894-c51e-45d6-bce8-c0206322d7ab /some/9 ocfs2 _netdev,defaults 0 0
    UUID=1126b3d2-09aa-4be0-8826-0b2a590ab995 /some/3 ocfs2 _netdev,defaults 0 0
    #UUID=9ea9113d-edcf-47ca-9c64-c0d4e18149c1 /some/8 ocfs2 _netdev,defaults 0 0
    UUID=a368f830-0808-4832-b294-d2d1bf909813 /some/5 ocfs2 _netdev,defaults 0 0
    UUID=ee816860-5a95-493c-8559-9d528e557a6d /some/6 ocfs2 _netdev,defaults 0 0
    UUID=3f87634f-7dbf-46ba-a84c-e8606b40acfe /some/7 ocfs2 _netdev,defaults 0 0
    UUID=5def16d7-1f58-4691-9d46-f3fa72b74890 /some/1 ocfs2 _netdev,defaults 0 0
    UUID=0e682b5a-8d75-40d1-8983-fa39dd5a0e54 /some/2 ocfs2 _netdev,defaults 0 0

    What is the output of:
    # chkconfig --list o2cb
    # chkconfig --list ocfs2
    # cat /etc/ocfs2/cluster.conf

  • External Hard Drive connected to AEBS does not auto mount

    Just upgraded from Tiger 10.4.11 to Leopard 10.5.5. I have a AEBS running 5.3.2 airport utility with a LaCie HD connected to it.
    In Tiger, my external hard drive would auto mount onto the desktop every time the computer turned on or woke up from sleeping etc.
    In Leopard, my external drive will not auto mount. It does not show up in the sidebar under devices. It does not show up in the disk utility. To access it, I have to go the the finder sidebar, select my AEBS under shared, then select my HD. Also, I did check show connected servers and external disk on the desktop in the finder preferences. Also, not sure if this matters but the icon on my external drive on my desktop is the blue drive with three people holding hands and not the brighter blue one with the wireless signal logo.
    In tiger my external HD basically acted like any other folder that was always there and not like a networked drive that I had to go and connect to. I want to go back to that. I heard this has to do with leopord no longer having the airdisk utility??
    thanks

    Try making an alias of one of the top-level folders in your external (AEBS-connected) drive, drag it to the desktop, and then put it in your Login Items.
    --> System Preferences/Accounts/Login Items
    You can simply drag the folder alias into the Login Items window.
    When you next log in, the folder will be automatically opened. Alas, it doesn't give you instant access to the entire external drive, but you can back out a level to see the entire drive. It isn't quite what you had with Tiger, but perhaps it will suffice.
    If you leave the aliased folder on your desktop, you have a skinny approximation to the mounted volume that you had with Tiger.

  • External hard drive and SD card won't auto mount

    I am using MBP with retina on Yosemite. MacBook Pro (Retina, 15-inch, Late 2013).
    On Maverick, all my external drives used to auto mount. The same was true just after Yosemite was installed. Lately, only my Time Machine hard drive auto mounts and others don't, e.g. my backup drive that I use with Super Duper! and my camera SD card. I have to go to disk utility and mount them manually. I did not see any option for auto mount in disk utility.
    Could you please guide me on how to get auto mount back?
    Thanks in advance

    I have been dealing with this same issue for the past several months. Running a Macbook Pro (Mid 2010) with OS X Yosemite 10.10.1. This problem occurs when I plug in Firewire, USB, or SD card. The external hardware appear to be working fine, it has to be either a setting, or a quirk that needs corrected with Yosemite. I have run all OS systems since Snow Leopard. Never had this problem. Anyone have any ideas?

  • How do I stop a CCC partition auto mounting in Lion

    I have an external USB drive with 2 partitions. The first partition has a CCC Clone of my drive before Lion. The second is used for Time Machine. This drive auto mounts on boot which is fine but the CCC partition causes problems with the App Store as it sees Apps that I installed in the Clone backup as installed on Lion. The easy way for me to fix this is just to eject the CCC partition but I have to do this every time I boot. Is there a way of just stopping this drive from auto mounting on boot and manually mounting if need be. Any help would be appreciated. Many Thanks in advance.

    I just upgraded to the latest version of Lion--I don't know why it didn't change the info. under my Apple icon.  And I know I can uncheck the box while signing off, but you have to do it each time--I'm looking for a way to uncheck it and recheck whenever I want, the way the dock options are supposed to work (although it doesn't for me anymore with Lion).
    Checked the Users and Groups--the only login items listed are basically 4 apps that I had back when I had my PC and I no longer have them--I may have had Growl for awhile but I deleted it.  There are yellow triangles by them.  No other apps listed there.
    I guess I'll have to uncheck the box each time I sign off.  Tedious, but that's the way it is.  Wish I had Snow Leopard back!
    Thanks for your suggestions though--just wish they worked.

  • Disable auto-updates/Adobe Application Manager

    there is no forum for this - I use Illustrator and Photoshop CS6 non-CC on macbook pro running 10.8.5 or 10.9.2. I would like to not have AAM search for updates in the background, but initiate the **search** for updates manually. The reason is that I live a bit off the grid and pay quite a lot per minute, and AAM kept the internet connection open the whole night, even though the browser said it was closed.
    I only found instructions for CS5:
    http://helpx.adobe.com/creative-suite/kb/disable-auto-updates-application-manager.html
    does this work for CS6 the same way? I am by no means a system admin but I can replace this AdobeUpdaterPrefs.dat file. (and keep the original else where)
    thanks.
    edit: why on earth does adobe insist on displaying my real name in a public forum, when it even asks me to make a screen name first. There is no forum for this either, I guess.

    ... adobe insist on displaying my real name in a public forum...
    that is gone, thanks.

Maybe you are looking for

  • How to create two domains name in one active directory domain service .server 2012 ??

    Hi there  I want to try sharepoint foundation and office web apps server . I installed server 2012 sharepoint found 2013 sql server 2012 and create a new forest on active directory domain sevice  now I want to install office web apps server 2013 but

  • Clearing up a question

    I've heard a lot of comflicting opinions about this problem so I was wondering if somebody here could clear it up for me. Does the built in USB hub work with windows machines? I'm not planning on using high current devices, just USB keyboard and mous

  • Multiple network connections

    On MacPro 3,1, have 2 ethernet connections plus Airport wireless.  Have iStat widget which shows only one with connection activity.  Can all three work simultaniously?  Sort of multiplex to increase bandwidth. All three obviously have different IP ad

  • C'ant connect to my old computer from my new.

    I am new in networking. There is my problem: I am using 2( I-mac). One is a G OS 10.5.8 and the other is a 3.33 GHz Intel Core 2 Duo 10.6.2. I created a local network through a wireless Lynksys router. On each computer I selected (share files) on the

  • Sync Outlook Calendar

    This is for my Dad - he has an iPad2 with the latest iOS version and the latest iTunes on his machine.  He is trying to sync his calendar to the iPad - it was working, but something got messed up and now he's getting an error message when he tries to