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

LoneWolf121188

macrumors 6502a
Original poster
Jun 7, 2007
664
0
Longmont, CO
I have a script that unmounts my windows partitions on startup, since the NTFS driver eats a lot of battery life even when I'm not accessing those partitions. Now I'm trying to make a quick one-time "reboot into windows" script that mounts my windows partition, blesses the partition, then reboots. I've got this so far, but it's not working. I'm guessing it has something to do with the sudo? I'm not sure how to do that in Automator.

Code:
hdiutil mount /dev/disk0s3
bless --device /dev/disk0s3 --setBoot --legacy --nextonly
sudo reboot
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.