Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ironhand41

macrumors newbie
Original poster
Jan 29, 2011
5
0
I'm installing Win 7 on a Mac Pro 3,1 with Bootcamp and am following the directions given on another MacRumors thread to allow the use of ahci drivers. Part of the process is to run a script file - "ahci-1.sh" - that will modify my Win 7 MBR to allow ahci drivers to load. But for the life of me, I cannot get the "ahci-1.sh" script file to actually execute. As per instructions, when I type "sudo" followed by a space and then drag "ahci-1.sh" into the terminal window, all that happens is that the path to ahci-1.sh is printed following sudo and the space. But the script does not run. I don't know what I'm doing wrong. Are there other ways to make a script file execute from the command line?
 
I'm a lot better at linux terminal, but they are similar. Try sudo ./ or sudo sh ( A space between ./ & sh ) and then the name of the file and see if that works.
 
Try this.

Open the terminal first.

The type "cd <PATH>"
Replace <PATH> with the location of the script.

Then type "sudo chmod 777 ahci-1.sh".

This will give you read/write/execute permissions (it also gives every other user the same).

Then type "sh ./ahci-1.sh"

That should run your script.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.