Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm starting to learn more about the mac os x internals. Now i want to load and unload some kernel extensions.

I startet to load the MS-DOS file system via

sudo kextload /System/Library/Extensions/msdosfs.kext 

I can check this by typing

kextstat | grep msdos 

The command output shows the loaded kext-file. But when i want to unload the MS-DOS file system:

sudo kextunload com.apple.filesystems.msdosfs

I get only this message:

Can't create com.apple.filesystems.msdosfs.

What is wrong with the kextunload - line above?

share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

kextunload can use the full Kernel Extension path, just like kextload.

sudo kextunload /System/Library/Extensions/msdosfs.kext

If you want to use the bundle identifier – the one listed by kextstat –, use the -b switch:

sudo kextunload -b com.apple.filesystems.msdosfs
share|improve this answer
    
I get Can't create –b. if I use it... I'm on 10.8.3. –  m_gol Apr 5 '13 at 13:52
add comment

kextload man page can give you details. Here is the command I've been using:

sudo kextload /path/to/file.kext

OR kextutil man page, this tool is useful for get some debug messages if there are errors in the loading process.

sudo kextutil /path/to/file.kext

And of course, the kextunload man page in the other answer. Here is the command I mainly use since I don't like to write out the entire bundle id:

sudo kextunload /path/to/file.kext

You can also use kextstat to verify if your kext file has been loaded:

kextstat | grep -v apple

This will list all third party kexts as long as 'apple' is not in the bundle id.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.