(Un)mounting disks

Connected to my Mac mini are 2 USB disks of equal size. I want one to be actively used and the other to be a copy of the first. I want that copy to be made once a week and I want the disk to not be accessible for anything but making that copy. So what I'm looking to do is mount the disk, make the copy and then unmount the disk.
I've played around with the command line, but can't seem to figure out how to use the mount and umount commands properly. When 'ejected' from the Finder, I can't seem to come up with the right command to mount the disk again. And when trying to unmount a volume, it keeps telling me it's busy even when there are no open files - see log below.
Any ideas?
This machine runs OS X Leopard 10.5.8 by the way.
[host:~] user% sudo umount /Volumes/backup
umount: unmount(/Volumes/backup): Resource busy
[host:~] user% fuser /Volumes/backup/*
fuser: No match.
[host:~] user% fuser /Volumes/backup/.*
/Volumes/backup/.:
/Volumes/backup/..:
/Volumes/backup/.DS_Store:
/Volumes/backup/.Spotlight-V100:
/Volumes/backup/.Trashes:
/Volumes/backup/.com.apple.timemachine.supported:
/Volumes/backup/.fseventsd:

The Aqua environment itself probably has too tight a grip on the hardware for you to be able to unmount the external disks with umount. I can do that (from user space) with MacFUSE volumes. Try using "hdiutil" with the "attach" and "detach" options.

Similar Messages

  • Problem writing external file to externally mounted disk in Windows

    Folks,
    I've got a puzzling problem with a simple OWB mapping where I'm dumping the contents of a table to an external file.
    Versions are OWB v 11.2.0.2 64-bits on Oracle RDBMS 11.2.0.2 Windows 2007 64-bits Enterprise Server.
    When the external files module is hooked up to a location that points to a local disk and directory on the OWB-server, everything works fine - files are created and written.
    When the external files module is hooked up to a location that points to a mounted disk on another Windows 2007 64-bits Enterprise Server, I get +"Invalid Path for target file, check if connector is deployed correctly".+
    The "File System Location Path" in OWB is set to "N:" (no slashes either way). "Test Connection" reports OK.
    I've given both the Oracle os-user and "Everyone" (for good measure) all rights on the mounted disk, and I can see that the generated package code is using the correct Directory, and the Directory Path is the correct one on the server. The mounted disk (N:) should appear as a local disk to Oracle as far as I can see. I'm able to create and delete files on the disk using command line on the OWB/DB-server.
    I'm scratching my head on this one....

    then mapped that share as a network drive (N:) on server A (the OWB/DB-server)I think that problem was with different accounts used for run Oracle database (usually database instance run under SYSTEM account) and which you used to map share (it was interactive session). Even when you made this map persistent (enable "Reconnect at logon" option during mapping) you don't grant access to this drive to other accounts (including SYSTEM ) - this drive will not be visible to other users.
    I think it is possible to create "persistent" network drive mapping for Oracle database context with specification non-SYSTEM account (domain or server local) for running Oracle database instance (and Oracle Listener service).
    Also it seems there is a workaround to access mapped network drive under SYSTEM account:
    http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service
    Regards,
    Oleg

  • What's Happening?? Some days after installing latest security up date for 10.5.8 on G4, both inernal CD/DVD drives failed to mount disks other than a cleaning disk which mounted and was imported into iTunes.No other CD or DVD disk will mount.

    What's Happening?? Some days after installing latest security update for 10.5.8 on G4, both inernal CD/DVD drives failed to mount disks other than a cleaning disk which mounted and was imported into iTunes. No other CD or DVD disk will mount.Is this a unique experience?

    Hello Robert,
    First, Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Mac wont mount disk images, and fails to auto detect some usb devices.

    for some reason, all of a sudden, my mac won't mount disks. even disks I know in the past have worked.
    also, it wont auto detect some external devices. especially jump drives and hard drives and audio interfaces. It has to be rebooted with the the devices connected.
    I know its not a hardware problem, because everything runs smooth in windows on this computer.
    I did some extensive cleaning recently, and installed a lot of new stuff, but i don't know what could be causing this.
    any help would be greatly apreciated!

    This USB faq may help.
    An SMC reset may help you mount disks.
     DALE

  • Does Time Machine still ignore mounted disk images? Specifically, encrypted sparse bundle disk images?

    My Time Machine backs up to Time Capsule which cannot be encrypted. I also have confidential data in an encrypted sparse bundle disk image in my home folder. When TM backs up and the encrypted sparse bundle disk image is mounted and I'm accessing the data, does TM back up the data "in the clear" decrypted form or does it exclude the disk image because it's mounted? I've done a little research, but there's conflicting information. Not sure what happens in Lion now...

    Time Machine does not backup mounted disk images! The encrypted sparse bundle disk image was mounted, I updated a doc and did a TM backup - the file was not listed in the TM repository and the doc remained unchanged in the encrypted sparse bundle disk image on TM. Then I ejected the disk image and did a TM backup - the updated doc was backed up in the encrypted sparse bundle disk image! Thank you!

  • Preview app damage pictures on mounted disk

    I recently upgraded the system to Mavericks and preview app starts to get weird. I have a bunch of pictures (in .tif, jpeg, etc types) on mounted disks and I used to open with preview and it worked perfect. But recently, when I open up a picture file with preview for the first time, it seems ok. But for the second time and onwards, it says the file "is damaged and should be move to trash". I tried thousands of times for all types of pictures, but it's always like that, first time good and second time damaged. However, if I open the same picture with iPhoto in the first time, no matter how many times I tried, it's always working well, no damage was found, so I guess it's the preview app that damages the picture file. Also, this weird thing didn't happen when I open any local pictures. Preview is still always good with the local ones. I didn't come across that before, and didn't find a solution on any websites. Can someone help me here please? Bunch of thx!

    That's a good idea, but actually I just fixed the problem last night by turning on the Gatekeeper in Security to allow apps or files from anywhere can be open on my macbook, then the error went away! Sorry for not marking this question as solved on time, but do appreciate your attention!

  • How to make iMovie 09 recognize a mounted disk image?

    I'm trying to store video clips in a disk image (Mac OS Extended - Journaled, single Apple Partition Map). Previously in iMovie 08 all I had to do was mount the image, start iMovie and it would recognize it as an additional drive. Then I could drag events to it and store them there. In 09 this does not work. It sees the image but has the yellow triangle/exclamation point in it. I cannot for the life of me figure out how to make it recognize the image! I've tried all variations in disk utility to create the image to no avail. Is iMovie 09 looking for a certain file on the disk image to recognize it? Maybe something in the DS_Store file or the .localized? Very frustrating.
    Hoping someone can help. Thanks.

    jsd2 wrote:
    Try the following:
    Mount the disk image so that there is a disk icon on the Desktop, and then launch Terminal (in /Applications/Utilities).  Copy-paste the following line into the Terminal window, and then type a single space. Do not type <Return> yet:
    sudo mdutil -i on
    After typing the single space, drag the mounted disk image icon from the Desktop into the Terminal window, click inside the Terminal window, and then type <Return>.  Enter your admin password at the prompt (it will not echo on the screen),  and again type <Return>.
    Hopefully that will enable Spotlght indexing on the mounted image. It might take some time to complete depending on the contents.
    The result for this for me, three times, was "Indexing disabled."

  • Time Machine Backup of mounted disk

    Hi,
    For sharing my iPhoto Library among multiple users on a MacBook Pro running, currently 10.6.8, I have by a Apple Support guide created a disk image file, and mounted it for storing my pictures without permission issues.
    However, to account for future expansion, the disk image is made to be 100 GB, while current photo library size is approx 50 GB. Is there any way of getting Time Machine to backup the files within the mounted disk, rather than backing up the disk image file itself? So that the size of the backup at present would be the actual size of contents of the disk, rather than the whole disk image file itself? And furthermore, by copying a disk image file, will the actual files within also be backuped?
    Hoping this makes sense to some you you, thanks!

    Create a sparse bundle disk image and copy your library there. A sparse bundle disk image consists of strips, rather than one single file. The bundle will expand to fit your needs by adding strips. If things change in the bundle, TimeMachine should be smart enough to only backup the changed strips, not the entire image. So if you tell Disk Utility to create an empty sparse bundle disk image of  1000GB and you put in only 50 GB, the bundle will only occupy 50 GB.
    When you delete loads of data, you can even shrink back the disk image (through a terminal command) to free up real disk space.
    Message was edited by: eljonco, added shrinking info

  • General Installation/ Mounted disk images

    I am a Mac virgin, having only had my new iMac for 2 weeks. I have recently downloaded/installed some apps (google earth for instance) and notice that if I eject the mounted disk image that the app will no longer run. I can not "hide" the mounted disk in the HD either. It just sits there on my desktop.
    Is there no way to rid my desktop of all this clutter? If anything, is there anyway to hide the icons on my desktop like you could on...<ughhh> XP <ughhh>?
    Thanks for your help.

    What you need to do is quit Google Earth, open the Applications folder (with Finder in front, click the "Go" menu then "Applications") and drag the application into the Applications folder. After it copies, eject the installer diskimage and you can delete it.
    Some installers run a program that installs the app and its support files, and others (like Google Earth) just open the diskimage package and show you the application icon, which makes it all to easy to just doubleclick to run. Since diskimages cannot be ejected while files are open, things get messy real fast.
    It's a common problem with even experienced Mac users that they continue to run several apps from the diskimage or from their desktop. Hopefully the Leopard version will have this problem fixed.

  • .PLST on mounted disk

    Hi
    In the thread below Cyclosauras helped get my head around "defaults write" etc, which works great for my wee app,
    http://discussions.apple.com/thread.jspa?messageID=2676053&#2676053
    what I would like to attempt is to expand on this for my purposes by having the .plst file on a mounted disk that a couple of users access, so as each user uses the same .plst, what would I need to add to this script to make this possible?
    set LASTNUMBER to 0
    do shell script "/usr/bin/defaults write ~/Desktop/TestFile 'LAST NUMBER' " & LASTNUMBER
    set new_num to (do shell script "defaults read ~/Desktop/TestFile 'LAST NUMBER'")
    display dialog new_num
    cheers
    Budgie

    Hi kel
    Thanks for that, I think I need to explain a wee bit better,
    Im trying to have 1 .plst stored on a mounted disk that two users access via my app from their own work stations, the information in the .plst is the same for both, meaning that if user (A) opens the app types 123 clicks ok to write to .plst, then user (B) opens the app he will see "123", both users get to see what the other has entered into the .plst
    hope that makes some sense
    Budgie

  • I updated to Tiger 10.4.11 & cannot mount disk images &other problems.HELP!

    I just updated to Tiger 10.4.11/combo update. I used the stand alone installer (because Software Update since I updated to 10.4.10delta). I repaired permissions before and after the update. Now I can't mount disk images I always get the message "Mount Failed".This occured when downloading and trying to open an existing disk image.I ran fsck, even tried AppleJack all to no avail.I know this problem wasn't there before the update as I downloaded the update and a couple of small utilities and all was well with the world (they all mounted properly). I was doing fine with OSX 10.4.9 but just had to upgrade! Can someone PLEASE HELP ME? I'M grateful for any suggestions and the forums have been good to me in the past.
    badcat53

    Some part of the OS is messed up... I've heard that if you Deltas you must stick with those, if you do Combos you must stick with those, no idea if it's true, as I always use the bigger Combo Updates.
    Most likely the best solution for both of you is an Archive & Install...
    http://docs.info.apple.com/article.html?artnum=107120
    Then apply...
    The combo update for PowerPC-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateppc.html
    The combo update for Intel-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateintel.html

  • Not opening window of mounted disk image

    I have created disk images of my CDs with Disk Utility and have them mounted on startup by having them in my Login Items. But each .dmg after mounting opens the Finder window for that mounted disk. I do not want the window opened. Only the disk image mounted. What did I do wrong? Thanks.
    Dual G5   Mac OS X (10.4.8)   Mirror dual G4, iBook 12, iBook 14, Beige G3

    Open the Script Editor in the /Applications/AppleScript/ folder and paste in the following:
    tell application "Finder"
    delay 1--time in seconds
    close every window
    end tell
    To close a specified number of windows:
    tell application "Finder"
    delay 1--time in seconds
    repeat 1
    close window 1
    end repeat
    end tell
    In either case, save the script as an application and add it to the list of login items for your account. The delay in the second line of the script may need to be increased.
    (19717)

  • 10.4.9 and mounting disk images.

    I just recently installed 10.4.9 and now I can't mount any disk images. I get an error saying broken pipe. Any ideas? Thanks in advance.

    I just recently installed 10.4.9 and now I can't
    mount any disk images. I get an error saying broken
    pipe. Any ideas? Thanks in advance.
    Here's what MacFixit says :
    Disk images not mounting [Updated] Several users report an inability mount disk images after applying the Mac OS X 10.4.9 update.
    If you are having a problem where disk images won't mount, try booting in Safe Mode (by holding down the Shift key while starting up), then re-attempting mounting of the disk image.
    This solution is particularly useful for the following scenario: You want to try re-application of the Mac OS X combo updater (a common workaround for issues that occur after an incremental Mac OS X update), but are unable to mount the combo updater disk image.
    Prior to booting in safe mode, however, you can delete the following files:
    * /System/Library/Extensions.kextcache
    * /System/Library/com.apple.kernelcaches
    and re-attempting the mount. These, and other cache files, are automatically deleted when you boot in safe mode, but you can potentially save some time by trying deletion of these files (then logging out and back in) first.
    Another option is to use an alternative tool that can mount disk images, like Mount.app, FlashMount, or Toast Titanium.
    MacFixIt reader Joy Denton is one user who had success with our posted workaround:
    "Just wanted to let you know that I had the issue of Disk Images not mounting. This occurred after installing Mac OS X 10.4.9 from Software Update. Fortunately, I read your post regarding a possible fix by using the Combo Update and used Toast to mount the disk image. Ran the Combo Update and ran AppleJack once again. I am now able to mount disk images. This was an annoying problem to be sure."
    But imho the best advice that can be given about software updates is to always have a clone of your system on another partition or external HD so you can boot on it if anything goes wrong. From an external system you can repair your internal disk, install the Combo update if the incremental one failed, etc.

  • How to make mounted disk image appear in sidebar

    Hi all,
    Previously, I had inadvertently dragged the icon for a mounted disk image off the sidebar. It made the cool "poof" thing. I then checked if it was really unmounted using disk image. It was not, so I unmounted it there.
    Subsequently, when I would mount that disk image, the icon would not appear in the sidebar. If you run into this problem, you can fix it thus:
    1) Go to the Go --> Go to Folder menu item in the Finder.
    2) Enter /Volumes
    3) Drag the icon of the mounted disk image to the disk part of the sidebar
    You will need to aim properly to get access to the sidebar without activating one of the disk icons.
    4) All better
    This started out as a question, but I fixed it and thought someone else could use the info.
    Scott

    Nicely done Scott, thanks!

  • AFP does not allow to access mounted disk-image on server

    I am running a Mac Mini as file and media server.
    With Lion installed, it was possible to access mounted image files on the server via afp.
    Since I upgraded my MacBook Air and the mac mini to Mountain Lion the mounted disk-image is not anymore available as a network drive when accessing the server.
    I figured out that I could still access the mounted image file by accessing the server via SMB. This requires however to connect to the server via CMD K, which is more inconvenient than to just click on the server in the finder sidebar.
    It seems that Apple changed the AFP setup for Mountain Lion and that this is an error.
    Hope they get it quickly fixed in 10.8.1!

    I can't even see my mounted images via SMB... that *****!

  • Backup NFS-mounted disks

    My understanding (and my experience) is that Time Machine ignores NFS-mounted disks. Can other programs (SuperDuper, Carbon Copy Cloner, etc) do that?
    I have a bunch of linux systems in my lab which I can mount on a mac. If I had a program that would back them all up every night, it would be nice.

    CCCloner allows for backups of remote drives, Superduper does not. but you might be better off asking in the CCC support forums to see if it will work with NFS and non HFS+ file systems. I would guess not. as for case sensitivity there is HFSX otherwise known as mac os extended, case sensitive. you can format a drive that. all OS X backup programs will work with such drives but there may be problems if you ever try to back up a non case sensitive file system to a case sensitive formatted drive.
    see this link for additional OS X backup tools.
    http://discussions.apple.com/thread.jspa?messageID=7495315#7495315
    If none of them will back up remote non HFS drives (as I suspect is the case), there is always rsync.

Maybe you are looking for