How to mount external drives on startup without login?

I have a Mac Mini that runs as a server on my network. It has external FireWire drives attached, and I need them to be mounted at machine startup. By default they do not mount until a user interactively logs in.
There was a fix for this in Tiger, involving a NetInfo setting; but since NetInfo Manager and niutil are now gone, I don't know how to make this work. I can mount the drive manually by sshing into the Mini and using a diskutil mount command, but that is very cumbersome and doesn't make the drive available for startup activities that need to access it.
Tx!
KeS

Create the file
/Library/Preferences/SystemConfiguration/autodiskmount.plist
with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutomountDisksWithoutUserLogin</key><true/>
</dict>
</plist>
You can do this with the following command (note: it will ask for your admin password):
sudo cat >/Library/Preferences/SystemConfiguration/autodiskmount.plist <<"EOF"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutomountDisksWithoutUserLogin</key><true/>
</dict>
</plist>
EOF

Similar Messages

  • How to mount one of two external drives on startup without login

    I have a Mac Mini that runs as a server on my network.  It has two external USB drives attached: one contains documents, and the other is a TimeMachine backup of the server.  Neither disk mounts on a machine on the network until a user interactively logs in, but I would like one of them to be mounted at startup of a MacBook Pro on the network running OS X Mavericks 10.9.3.
    The following script was suggested at <https://discussions.apple.com/message/5770284#5770284> in response to a desire to mount all external FireWire drives running under OS X 10.5 Leopard:
    You can do this with the following command (note: it will ask for your admin password):
    sudo cat >/Library/Preferences/SystemConfiguration/autodiskmount.plist <<"EOF"
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>AutomountDisksWithoutUserLogin</key><true/>
    </dict>
    </plist>
    EOF
    I have two questions about this command:
    1.  Is it valid for OS X Mavericks 10.9.3?
    2.  Can it be modified to mount only one of the external disks attached to the server (the one containing documents)?
    Thanks in advance for your kind assistance with these questions.
    Best wishes,
    Stuart
    Stuart A. Forsyth
    <Email Edited by Host>

    I can now confirm this file
    /Library/Preferences/SystemConfiguration/autodiskmount.plist
    does automatically get created on Mavericks Servers but not on non-Server Mavericks machines. It is possible to create it on non-Server Mavericks machines and reports are this works as expected.
    Obviously the fact it is created automatically by Server.app on Mavericks servers means Mavericks still supports this.
    Rather than hand-editing the file as per the original tip the following will achieve the same goal but will result in a binary format plist file which is what Server.app would create.
    sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true

  • Mount external HD on startup - without user log in

    Hi. Does anyone know how to set up OSX 10.4.11 so the computer automatically mounts an external firewire hard drive on startup? I'd like to be able to access a firewire drive over my home network without having to first log into the target computer. Thanks.

    Try this:
    sudo defaults write \
    /Library/Preferences/SystemConfiguration/autodiskmount \
    AutomountDisksWithoutUserLogin -bool true
    Copy and paste these three lines into a terminal window from an account that has admin access. This command should mount all "findable" drives.
    I got it from this site: http://blog.reverycodes.com/archives/000042.html

  • How to mount external drives

    Being new to iMac and connecting four external drives I need to know how to mount and dismount them

    noondaywitch
    Thanks for your help and I've followed your reply and yes I can see how to mount and eject drives.
    Probably it would have helped if I had told you that my drives are all USB.
    All connected to a small four way hub which is then connected to one USB socket in back of computer.
    One - I use as a music drive and is a 160 gb iomega
    Two - is a partitioned drive for Photoshop use 340 gb WD
    Three - is a drive which has all my ex-Windows computer files and is one TB WD
    Four - is a Video and Film drive of one TB WD
    Five - is my dedicated auto backup drive which is of one TB WD and is connected directly to a USB socket of computer.
    I normally set my computer to sleep until the next time I'm using it, then when I do go to use it, I get the warning message regarding drive was not ejected. Didn't have problems like this on PC so I became worried that in time I'm going to loose files and or the complete drive. Which one is giving me this message is also a bit of trial and error problem. Like suck it and see.....lol.
    Anything else you can help me with this query would be most helpful and appreciated. Like do I have to eject all drives before leaving computer and then mount all the drives again for next session.
    Regards
    John

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • Brand new iMac 23.GHz Intel Core i5.  Mounts external drive for time machine, then dismounts after backup is complete.

    brand new iMac 23.GHz Intel Core i5.  Mounts external drive for time machine, then dismounts after backup is complete.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.
    If you bought the product in the U.S. directly from Apple (not from a reseller), you have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies.

  • How to recover data from non-mounting external drive?

    OK- here is the pinch:
    I have a Western Digital My Book 500GB Studio Edition which, though visible in Disk Utility, fails to mount, even when I try to do so via Disk Utility.  I have tried all the usual- unplugged, repowered-up, changed the order of Mac to external drive power-up/plug in etc etc.  It will not mount, end of.
    Then I changed the housing, in case the issue was with that.  No change.
    Then I had a friend use his PC's software to recover the data and he pulled off what appears to be ALL of it (it was close on being the 500GB as the drive was full) but it is not usuable and the Final Cut Pro and iMovie files I am needing to recover, appear to have been "downgraded" to MPEGs and MP4s (how IS that even possible?!) with a few MOVs of which the bulk are unreadable.  Oddly the clips are transitions only- no full three and a half minute (most of them are of music, songs of about that length) clips ever.
    So- is there any chance that I can get software which will let me recover the content of the drive in a format which my MacBook Pro can use/understand?  Or is it a lost cause?
    I had done some research on the topic here and found one thread which mentioned accessing the drive via the "Terminal" (sounds wonderful, if I knew what it was and how to use it) and correcting a read and write setting, copying its content over to the hard drive (well- that is not possible as I have a smaller internal than that drive is but no never mind) and getting the non-mounting drive to once more mount.
    Could that ^ be something worth pursuing?  I cannot ask on the thread as it is from 2006 and, obviously, archived.
    Hoping for some good news but am resigned almost.
    Thank you for reading!

    Did you try using a powered USB hub?
    Mac's now cut off port powered drives if they draw too much current.
    The external drive is a powered SATA, currently residing in a powered SATA to USB housing, no extensions.  No, the drive is actually just not supported anymore and was not mountable before.
    Also use the Mac version of Data Rescue for file recovery, it knows the Mac file formats better than PC file format recovery.
    I cannot recover anything with a Mac because the Mac will not read it.  It is not supported due to something my friend did with his PC:
    This is only since he had a go at recovery.  Before then it was supported and appeared fine- just not mountable.
    Obviously what happened is it took the MPEG portions of the Mac files as it understood that and discarded the rest.
    Yes, I gathered that and explained as much to him.  It discarded the entire 120GB FCPro project file I kind of would like to recover. 
    Not sure what now...
    You had mentioned cloning/imaging etc. which you edited out.  Could that be something which can be done with a PC (I am not a PC user but I guess I could have a go) and then I use said image on the Mac to copy the bits I need to transfer to the Mac-formatted storage device?  Or- with a different Mac?  Not sure why that would make a difference but I am happy to try anything! 
    Thank you to you both christopher rigby1 and ds store- means a lot not to be completely up the creek without a paddle.  I just wish that I had not been overwhelmed by the offer of assistance from a PC user and had had more of a go myself.  I suspect it would not be this difficult now.

  • How to transfer or reassociate iTunes files from one external drive to another without reimporting?

    Hello,
    Hope someone can tell me an easy way to do this.
    I have a massive itunes library which is presently split between my macbook and my external Lacie. I would like to transfer the files from the Lacie to a new external drive without reimporting all the files into itunes. I essentially would like itunes to recognise the path of the new drive instead of the files on the Lacie.
    Any ideas?

    I moved some movies and some seldom listened music (coped the files) into a folder on the Lacie drive. Then I reimported them to the main itunes library while holding down "option". This created a link to those files to the external. the files show up in my itunes but cannot be played unless i have the Lacie connected to them.
    See this link.
    http://www.maclife.com/article/howtos/how_split_your_itunes_library_across_multi ple_locations

  • HT201250 How to retrieve external drive backups from time machine on hard drive without external drive connected

    I am keeping my work files on an external drive which are backed up using Time Machine onto my computer's hard drive. I set it up this way so I can take my actual work drive with me if I need it. However, I just noticed that I can't see any of those files in time machine if the drive itself isn't plugged in, which makes this method useless. Is there any way to get to those, or do I need to reconfigure my backup system? I always thought if something happened to my hard drive I'd have a backup, but that won't work if I can't get to the files.

    See Pondini's TM FAQs, for starters.

  • Mounting external drive encrypted with Luks

    Hello guys,
    since I'm using Luks for my whole system I'd like to backup it on my external hard drive that should be encrypted too.
    So I used the following commands:
    cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdb
    cryptsetup luksOpen /dev/sdb external
    mkfs.ext4 /dev/mapper/external
    I'm then able to mount it with
    mount -t ext4 /dev/mapper/external /media/external
    But I want to automise that, means my external drive should be mounted automatically by system (I guess it's only via udev possible?) after it was plugged in, without any passphrase scan and with complete user access, not just root.
    How could I achieve that?
    Thank you for your help.

    2go drives are always bound to a user login when used with the "automatic unlock" option. That means, they get unlocked when you logon. As the server service starts before logon, the device is not ready to be shared, yet. Normal and expected.
    You can only setup a scheduled task that restarts the server service after logon (trigger: "at logon"), that would work.

  • Can't boot from from mounted external drive.

    I have recently purchased a Western Digital 1 TB My Book Studio external drive, for backup for my 20 inch imac Intel Core 2 Duo,  2.4 GHz mid 2007, 3 GB ram, 320 GB internal drive, running OSX Snow Leopard 10.6.8.
    I have formatted the external drive, GUID partition, and installed Snow Leopard on it. The drive mounts in all modes (Firewire 800, FW400, and USB).
    It shows up as a bootable drive in the System Preferences->Startup Disk pane. However, I cannot get it to boot in any mode - I get only a blank white screen on startup, and after waiting 15 minutes I turned off power and restarted pressing the option key; the white screen then showed only the internal imac drive. Then the desktop still shows the external My Book external drive on the desktop.
    The Western Digital website shows this drive to be bootable on Intel Macs.
    How can I get the drive to boot from this external drive?
    Thanks in advance for any help.
    Donaldb

    Ok, please excuse my extreme ignorance on Macs.
    I was holding down the command key (the one with the apple on it) instead of the option key (which perversely says alt on it!!!)
    The whole thing works fine when I do it right. Stupid me.
    Thank you for your help.

  • Time Machine can not be mounted - external drive

    I have an external Maxtor USB drive that's been my time machine since forever. Yesterday I noticed that it's not mounting. I KNOW it was mounting the day before because I had to use it. But now the drive is not mounting, and I don't know why.
    The drive is on, the light is on, but it's not mounting. Out of curiosity, my husband hooked it up to his Vista PC and he was able to browse to it all dandy. But then back on my computer, it's not being recognized.
    It's not showing up in disk utility, though my other external drive, my iphoto drive, is having no problems. It's not the USB port, as my ipod works on either port, as does my iphoto drive.
    Can anyone help?
    I've unplugged it, plugged it back in. Rebooted the computer without it attached.

    I solved my problem. I tried plugging it into another computer and it popped up on the screen. AHA! Before I tried that, I had ONLY unplugged the drive but had NOT crawled under the desk to unplug it from the main power source. It just needed to be TOTALLY unplugged and left alone for a few minutes. Those little green men obviously can bunch up anywhere and need a total disconnect, for several minutes at least, to unbind. Ahh, sort of like un-constipating the system?
    KC
    Message was edited by: KCChoirgirl

  • How to format external drive as NTFS?

    I have a lot of files on my mac, and my external drive is formatted in FAT32. I can't put files larger the 4 GB on there. How can I format the drive as NTFS? All help appreciated!

    Also note that even if you do use a Windows computer to format the drive as NTFS and then put it back in your Mac, you can't write to it without installing third party software. As installed, OS X can only read NTFS.
    As Niel noted, Mac OS Extended is the best choice, as long as there's no reason for the drive to be accessible from a Windows computer. If it must be NTFS, then you have these choices for the Mac to enable write access.
    A commercial product is Paragon NTFS for Mac.
    There are now two versions of the open source NTFS-3G software for OS X. NTFS-3G is the free version, which only works with the 32 bit boot kernel. This version also requires installing MacFUSE. A separate component needed for the free NTFS-3G software.
    Tuxera, which provides the funding for the free NTFS-3G has their own paid version. Tuxera NTFS for Mac. This version supports both 32 and 64 bit boot kernels. But NOT the newer 64 bit only kernel of some newer Macs. Tuxera's version eliminates the need for the separate MacFUSE installation, and is faster at accessing NTFS drives.
    Edit: Checking Tuxera's site, it looks like they've fixed the issue with the newer Macs which will only boot 64 bit. The note they had on their site at one time about it not working seems to be gone.

  • Mounting external drives with UID in Openbox?

    I've just changed my system from gnome to openbox as my main WM.
    In Gnome, my external drives were mounted as i connected them, with the UID.
    Now, in OpenBox with every filemanager (pcmanfm2, thunar + thunar  volman installed, nautilus) i tried, they are just being named
    "disk [insert number]" again. how do i change this behaviour? which terminal outputs do you need?
    Last edited by gpunkt (2010-05-30 11:11:55)

    I don't quite understand what behavior you got with Gnome. Is that the filemanager "names" the drives with their UUID?
    For me, the filemanager shows the drives with their label names.

  • Cannot mount external drives

    Hi all!
    I have an 2010 imac i5 32GB RAM, running on 10.9.2.
    All of a sudden my machine does not mount ANY extrenal hard drive. It recognises them in Disk Utility, but they appear greyed and cannot be mounted. Not even disk repair. Last week though the drives were mounting on the system without any problems.
    Yesterday I have upgraded the OS to 10.9.2. (from 10.6.8). Still the same problem, the drives are recognisable in DU but cannot be mounted.
    All of the disks I've tried are NTFS format (originally formatted on a pc). Funny thing is I have VMware Fusion on my mac runing a virtual Windows 7 pc. Windows do recognise the drives and mount them without problem, but not the mac.
    Also note that I'm using Tuxera NFS to work with these drives with no problem so far, until now.
    Also checked the cables, I'm connecting the drives though USB ports, they are ok.
    Any suggestions?

    just guessing you are using USB to mount the external. you may need to use two usb ports to mount the drive. that means a cable with two usb connectors which should provide enough power to the external.

Maybe you are looking for