Gantlett Posted May 5, 2008 Share Posted May 5, 2008 Hello I'm a Windows sys admin, and I can script WIndows easy, but when it comes to MacOS X I'm a completely clueless. Here's the thing: I'm running Kalyway 10.5.1 updated to 10.5.2 using Software Update. I have also installed Netkas's mac_kernel to make Sleep/Shutdown/Restart work on my PC (Intel C2D). The problem is that USB mass storage doesn't work properly. USB storage devices only mount if connected while starting the system up. After googling I found that running the following line in Terminal mounts USB storage devices immediately (like a charm): kextload -b com.apple.iokit.IOUSBMassStorageClass I'd like to make a script from this line and run it at system startup (I read somewhere that this will make USB devices work if I do that). After googling some more I found that Mac OS startup items are at /System/Library/StartupItems. The problem is that I don't know how to write such a script... Can anyone please help me? Thanks a lot. Link to comment Share on other sites More sharing options...
Opes Posted May 6, 2008 Share Posted May 6, 2008 Just use Lingon, very easy to use. Just google Lingon and you will find it . Link to comment Share on other sites More sharing options...
Gantlett Posted May 6, 2008 Author Share Posted May 6, 2008 Thank you so much! This program is beautiful, easy to use and did EXACTLY what I wanted! This is actually a solution to the USB mass storage problem for any Vanilla 10.5.2+Netkas user. It solves the problem completely! Link to comment Share on other sites More sharing options...
~pcwiz Posted May 10, 2008 Share Posted May 10, 2008 There would be another way to do it. Open AppleScript Script Editor and enter the following code: do shell script "kextload -b com.apple.iokit.IOUSBMassStorageClass" Them File >> Save >> Save as type Application Bundle. Then you should have a little app that will load the kext. Set this app to load at startup in Startup Items and you should be good to go! Link to comment Share on other sites More sharing options...
longtom Posted May 10, 2008 Share Posted May 10, 2008 There would be another way to do it. Open AppleScript Script Editor and enter the following code: do shell script "kextload -b com.apple.iokit.IOUSBMassStorageClass" Them File >> Save >> Save as type Application Bundle. Then you should have a little app that will load the kext. Set this app to load at startup in Startup Items and you should be good to go! When do i need this? Thx! Link to comment Share on other sites More sharing options...
~pcwiz Posted May 10, 2008 Share Posted May 10, 2008 That fixes the USB mass storage problem on some Leopard configurations. Link to comment Share on other sites More sharing options...
longtom Posted May 10, 2008 Share Posted May 10, 2008 That fixes the USB mass storage problem on some Leopard configurations. So, with your installation guide i don't need it?!? Link to comment Share on other sites More sharing options...
~pcwiz Posted May 10, 2008 Share Posted May 10, 2008 If you are having a problem with USB then you should try it but if you don't have any problems with USB, no need Link to comment Share on other sites More sharing options...
Recommended Posts