OS X - prevent removable drive from being ejected?
OS X - prevent removable drive from being ejected?
Author
Discussion

The Dude

Original Poster:

6,546 posts

278 months

Wednesday 12th September 2007
quotequote all
Is it possible to "lock" a removable drive (external USB/Firewire) to prevent it from being accidentally ejected, but still be able to read/write from/to it?

The Dude

Original Poster:

6,546 posts

278 months

Wednesday 12th September 2007
quotequote all
Anyone?

Where's all the usual suspects when you need them? smile

HiRich

3,337 posts

293 months

Thursday 13th September 2007
quotequote all
I can't think of a way to do this directly. But there may be one way to reduce the risk of accidently unmounting the disk.

In Finder Preferences/Sidebar, untick the option to show hard drives in the sidebar. In Finder Preferences/General, tick to allow Hard drives to appear on the Desktop (Classic/Windows-style). If I've got this right, the only way to eject the disk via software (as opposed to pulling on the cable), would be to go to Finder, clear the desktop (e.g. Expose), then drag the icon to the wastebasket. Because it does not appear in the Finder window sidebar, you can't accidently click the eject button there.

robbieduncan

1,993 posts

267 months

Thursday 13th September 2007
quotequote all
Open a Terminal window and cd to a folder on the drive. That normally prevents them being ejectable for me (without me wanting it to).

The Dude

Original Poster:

6,546 posts

278 months

Thursday 13th September 2007
quotequote all
HiRich said:
I can't think of a way to do this directly. But there may be one way to reduce the risk of accidently unmounting the disk.

In Finder Preferences/Sidebar, untick the option to show hard drives in the sidebar. In Finder Preferences/General, tick to allow Hard drives to appear on the Desktop (Classic/Windows-style). If I've got this right, the only way to eject the disk via software (as opposed to pulling on the cable), would be to go to Finder, clear the desktop (e.g. Expose), then drag the icon to the wastebasket. Because it does not appear in the Finder window sidebar, you can't accidently click the eject button there.
Doh, I already have done this on my laptop. *slaps head*

smile