Jump to content

Scripting Startup Disk for each platform


MacTroy
 Share

1 post in this topic

Recommended Posts

So I've deployed a lab full of dual-booting iMacs, each with two HFS+ partitions and two FAT32 partitions on the internal hard disk. After lots of trial and error, I've got my partition/restore process down using NetRestore and Ghost, and everything is working beautifully; everyone is really impressed with how seamless and supportable the whole thing is.

 

Everyone but me, naturally.

 

What I want is some way to change the "blessed" startup partition using a script for each platform. If the iMac is currently booted into OS X, I want to be able to set the startup to the Windows partition and reboot into Windows. If it's already booted into Windows, I want to be able to change the startup partition to the OS X partition and reboot into OS X.

 

"bless" seems the obvious command line choice from the OS X side, but it doesn't seem to like my XP partition as a valid target; I'm still looking into AppleScript possibilities. I don't even know where to begin trying to change startup partitions from the XP command line. The existence of an XP command that modifies proprietary Apple NVRAM settings seems doubtful at best. Still, a guy can dream, can't he?

 

Any thoughts on the feasibility of this?

 

MacTroy

Link to comment
Share on other sites

 Share

×
×
  • Create New...