Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

With the Boot Camp tools installed on Windows, there's an option for rebooting directly to Mac OS ("Restart in Mac OS X" from Boot Camp system tray item).

But is this possible in the opposite direction? In other words, instead of the procedure 1) "Restart", 2) wait for OS X to shut down, 3) hold Option key (⌥), and 4) select the Windows partition, can I tell my Mac to restart so that Windows is selected on the next boot? Something like "Restart in Windows" which would let me bypass steps 2-4.

NB: I want to keep Mac OS X as the default OS; I'm just looking for a convenient shortcut when normally running OS X and occasionally wanting to boot to Windows.

share|improve this question
2  
Like your question. Don't know the answer but I am looking for the same thing here! –  Pablo Santa Cruz Sep 5 '09 at 14:46

6 Answers 6

up vote 32 down vote accepted

The fastest way is to use Bootchamp. It adds an option in the Mac menu bar where you can just click and choose "Restart in Windows". Q.E.D.

alt text

share|improve this answer
    
Not to sure if it works in SL though - it worked on on 10.5 on my uMBP last time. Haven't tried in SL yet, and haven't bothered installing Windows in BC too. –  caliban Sep 5 '09 at 17:57
1  
Ah, someone actually read and understood my question - how refreshing! :) I just verified on a MacBook running Leopard and Win XP that this utility works. –  Jonik Sep 5 '09 at 19:08
    
Too bad about its limitations though; when starting this up there was a warning about it not working with unibody MacBook or MacBook Air, and on the website someone says it doesn't work with Mac Pro Late 2009 . –  Jonik Sep 5 '09 at 19:11
    
BootChamp works on Snow Leopard too, I just tried it. –  Jonik Sep 14 '09 at 4:52
    
That's great! I might want to use it too - been itching to play some games on Windows lately... ;) –  caliban Sep 14 '09 at 7:20

Alternatively:

$ sudo bless -mount "/Volumes/BOOTCAMP" -legacy -setBoot -nextonly;sudo shutdown -r now

(Edit: 10.9 requires sudo for shutdown, but this can also be used on previous versions.)

share|improve this answer
    
Thanks! To clarify, is this basically the same thing that Bootchamp's "restart into Windows" does? –  Jonik Jul 25 '10 at 22:28
1  
Pretty much--also what BootPicker does: apple.com/education/resources/bootpicker Of course those GUI tools don't require a password and allow you to confirm with a click of a button, but that bless command is still what's writing the important information into PRAM. –  NReilingh Jul 26 '10 at 2:25
    
Great, very useful info. (Btw, at least Bootchamp does ask for password each time you use it.) –  Jonik Jul 26 '10 at 7:51
1  
This does work on 10.7 Lion, thank you very much! Bootcamp calls itself "/Volumes/BOOTCAMP" by default. For NTFS write support on Lion, you can use Paragon NTFS - in my opinion definitely worth the time I saved. Also, of course you need sudo in front of shutdown as well, but it's a good idea to try the bless command first and see what it says. About the answer: does anyone know the details of whether rebooting via shutdown -r as opposed to from the Finder has any negative effects on the OS X world - i.e. files getting corrupted or services or other apps getting corrupted by being terminated –  Colin Nov 8 '11 at 15:06
    
here on OS X 10.9.2 Mavericks the volume is /Volumes/BOOTCAMP and I also needed to run shutdown as sudo. full command should be sudo bless -mount "/Volumes/BOOTCAMP" -legacy -setBoot -nextonly; sudo shutdown -r now –  Vitim.us Jun 2 at 17:46

The simple way is to use the Startup Disk preference pane in System Preferences. If you want to make it easier to get to you can find the preference pane at /System/Library/PreferencePanes/StartupDisk.prefPane. Note that this method won't work if you install NTFS-3G.

Startup Disk Screenshot

share|improve this answer
    
Sometimes simple is easier. –  Diago Sep 5 '09 at 17:04
3  
Sorry, you perhaps didn't read the question carefully; it says: NB: I want to keep Mac OS X as the default OS. With the Restart button this would otherwise be a good way of booting directly into Windows but it also changes the default. So, in essence, a good answer but to the wrong question. –  Jonik Sep 5 '09 at 18:53
    
why doesn't it work with ntfs-3g? edit: found a possible workaround macosxhints.com/article.php?story=20080101043841537 –  qntmfred Mar 12 '10 at 16:31

I'm not sure if you've already found an optimal solution to this problem, but what I've done is created an AppleScript:

do shell script "hdiutil unmount /Volumes/<Windows_Partition> -quiet"
do shell script "bless -device /dev/disk0s3 -legacy -setBoot -nextonly" with administrator privileges
tell application "Finder" to restart

where <Windows_Partition> is the name of your Windows volume. Also ensure that the Windows volume is at disk0s3 by issuing a diskutil list command in the Terminal.

If you want to make it even fancier, you can use QuickSilver so that a simple hotkey combination will allow you to reboot to Windows quickly. See http://lifehacker.com/5718979/reboot-your-mac-into-windows-with-quicksilver-and-an-applescript. The script they use is slightly different from the one above and has some disadvantages, mainly that you can't use it if you have NTFS-3G enabled, and the shutdown sequence is not as safe. My script allows you to unmount the Windows partition before blessing it and then telling the Finder to reboot.

You can also bypass the password prompt by including your password in the second line of the script (replace xxxxxxx with your password):

do shell script "bless -device /dev/disk0s3 -legacy -setBoot -nextonly" password "xxxxxxx" with administrator privileges

However, it's potentially insecure since your password is plainly visible to anyone who views the script file.

share|improve this answer
1  
Thanks; personally I've been happy with Bootchamp for my occasional booting-to-Windows needs. This answer seems to be quite close to yours, minus AppleScript and QuickSilver wrappers. Welcome to Super User! –  Jonik Feb 7 '11 at 19:19

There is no way to this with only BootCamp installed as it is controlled by OSX.

rEFIt is a boot manager that will allow you to select which OS to boot at startup, and also has some very handy extra features.

It replaces the normal OSX Boot Manager and when you switch on your Mac or restart your Mac it displays a list of all the installed operating systems on your machine, which then allows you to choose which one to boot.

Therefore with BootCamp installed it will show the Windows Partition as an Icon along with the Mac Partition and you can also set a default time-out for your preferred OS.

rEFIt Screenshot

share|improve this answer
    
Can rEFIt be used as a compliment to Boot Camp to get extra options like this, or is it more like a replacement to Boot Camp? (Seems like the former, but just making sure...) –  Jonik Sep 5 '09 at 15:58
1  
rEFIt is only a Boot Manager, not a BootCamp replacement. AFAIK there is no other sofware that can replace BootCamp, apart from the normal Virtual Machine applications like Parallels and VirtualBox, which is NOT the same as BootCamp as they host Virtual Machines. rEFIt allows you to choose which OS to boot at Startup, and some emergency tools for when your machine doesn't want to boot. –  Diago Sep 5 '09 at 16:03
    
Thanks! One more thing to clarify with regards to the original question: with rEFIt, when on OS X, is there an option like "Restart into Windows" somewhere which bypasses the selection on next boot? (I'm asking because "select which OS to boot at startup" is not quite the same, but "some very handy extra features" might well include it.) –  Jonik Sep 5 '09 at 16:27
1  
@Jonik - I think you are misunderstanding. rEFIt installs as an outside of OS utility and replaces the boot manager of OSX itself. You don't choose an OS after booting, rather you choose the OS when the machine is restarted or switched on before any OS is loaded. The handy extra features are items like Safe Mode command line etc. –  Diago Sep 5 '09 at 16:50
    
I got that; I just wanted to know if it also happened to provide tools (cf. Apple's Boot Camp tools for Windows) for what I specifically asked for. So, while rEFIt seems like a useful boot manager tool (which I might try sometime), it misses this particular question. To clarify: it may make startup a little more convenient (no need to press Option at any rate), but the use case I meant was: "when already in OS X, tell computer to restart in Windows now, with no further user interaction". I'm sorry I failed to word my question clearly enough. –  Jonik Sep 5 '09 at 19:27

Restart the Mac. When startup begins, hold the Option key down. It brings up a screen where you pick the OS to boot.

share|improve this answer
    
By reading the whole question (which mentions manual restart and holding down Option key) you'd see that it's about a quicker, automated way of booting into Windows. –  Jonik Aug 8 '11 at 18:37

protected by Community May 8 '13 at 22:13

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.