我将TheMiniDrive与microSD卡(类似于Nifty)一起使用。在配备Retina并内置SD卡读卡器的2012年末的13英寸MacBook上运行Mavericks。
CoolkcaH的解决方案卸载/加载AppleUSBCardReader.kext在我的测试中没有做任何事情。
但是,Mark Aufflick的解决方案卸载/加载com.apple.driver.AppleSDXC确实在一个步骤中重新安装了弹出的SD卡,而无需转到“磁盘工具”。我根据PatrickT的解决方案使用了Automator,并用Mark Aufflick的代码简单地替换了CoolkcaH的代码。这是我用来替换Automator中Patrick的完整代码(同样,请确保将[UserName]替换为您的实际用户名):
on run {input, parameters}
display dialog "Your Administrator Password:" default answer "" with hidden answer
set PWD to text returned of the result
do shell script "sudo kextunload -b com.apple.driver.AppleSDXC; sudo kextload -b com.apple.driver.AppleSDXC" user name "[UserName]" password PWD with administrator privileges
return input
end run
diskutil
),就无法重新挂载。如您所说,例如,如果您使用来卸载(而不是弹出)该磁盘diskutil unmountDisk
,则可以随后简单地再次对其进行重新装载diskutil mountDisk
。就是说,看看这个建议和替代应用程序的问题,以及(在评论中)使用卸载kexts的方法