![]() (on preview: you can use mount/umount too but the "OS X way" is to use diskutil. if you just unmount, the drive will still be in the device tree and you can re-mount it fairly easily ("diskutil mountDisk" or through Disk Utility). if you're handy with command line utilities you could do up something more to have it figure out what device to use automatically too. if you're never removing it from the hub, the device name it gets should not change unless you reboot or it actually does get removed from the hub/computer (the hub gets turned off). If you're doing the copying and stuff with a shell script or an AppleScript, do up a bit in it to do "diskutil unmountDisk /dev/diskX" where diskX is whatever the flash drive is. (this is somewhat simplified and maybe a little incorrect but it'll work for this question at least.) unmounting just disconnects the filesystem from the system. it still shows up in System Profiler because it pings the actual hardware to figure out what's there or not OS X (as do most other OSes you can do this same thing on Linux or Windows) keeps a separate list of what hardware it knows/cares about internally. ejecting removes the device from OS X's device tree. Posted by at 9:56 AM on Įjecting and unmounting are two separate things. To remount the drive: diskutil mountDisk diskidĪlternatively, if doing all this from the command-line is too daunting, there is apparently an app available that will allow you do it from a user-friendly interface: Mountain, though I haven't tried it out. To unmount the drive, run: diskutil unmountDisk diskid (e.g. As long as the drive remains plugged in, this shouldn't change.ģ. Look for the USB volume and note its device identifier (e.g. Run 'mount' to get a list of all mounted drive volumes. To fix it every wake i use SleepWatcher by. #SLEEPWATCHER MAC MAC OS X#Open Terminal.app to get to the command lineĢ. Mac OS X Lion loses network connection after sleep. The first solution, which I just confirmed works, is to use the command-line version of Disk Utilities to unmount and remount the USB drive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |