Mac Os X 10.10 Yosemite Disables USB Ports
I am trying to disable USB ports on macs with the new Yosemite
My initial intention was to provide read-only access to USB sticks, but that seems to be impossible, so I decided to go for a complete removal of USB access.
I followed the instructions in the osX manual but didn't work
I tried this, posted here on the forum: link but it doesn't work
Now I am getting the error
(core) Cannot delete kext com.apple.iokit.IOUSBMassStorageClass; services could not be terminated - 0xdc008018.
Failed to unload com.apple.iokit.IOUSBMassStorageClass - (libkern / kext) kext is in use or is being saved (cannot be unloaded).
It might be because I deleted the file from the extensions folder first, but if so, why is the usb still working? Hope you can help somehow.
Greetings
source to share
Unload it first with
kextunload / System / Library / Extensions / IOUSBMassStorageClass.kext /
However, having stated that deleting and even deleting that kext in Yosemite does not seem to interfere with USB working again on reboot. In fact, you now lose the ability to unload the kernel extension after booting.
source to share
I would like to improve on the previous answer, but I cannot comment on it, so I will add it here.
I have the same problem and in order to solve it, I confirm that you should unload the driver with
kextunload /System/Library/Extensions/IOUSBMassStorageClass.kext/
To reload this setting, I added a root call crontab
(since this will not be changed by updates and other users)
to become root
sudo su -
change root crontab
crontab -e
add line to file and close it
@reboot kextunload /System/Library/Extensions/IOUSBMassStorageClass.kext/
I hope this helps
source to share
You need to unload the drivers AppleUSBCardReader
and AppleUSBODD
as they load IOUSBMassStorageClass
. Run the following commands in terminal:
sudo kextunload -b com.apple.driver.AppleUSBCardReader <br>
sudo kextunload -b com.apple.driver.AppleUSBODD <br>
sudo kextunload -b com.apple.iokit.IOUSBMassStorageClass
source to share