Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is this possible to shutdown to grub, not all the way so you don't have to load back up the BIOS and other things. Like to give you the ability to quickly boot for Linux to Windows?

share|improve this question
3  
That might not be a good idea, anyway, since Linux (or Windows) may have left any peripheral hardware registers in a state that works for it, but not what the other OS expects. e.g. USB handoff may have occurred so that BIOS is no longer in control. Boot through BIOS ensures the hardware is reinitialized to a know state. –  Keith Apr 14 '11 at 7:02
add comment

2 Answers

No you can't

When Grub boots a kernel, it eventually hands over control to it, it doesn't stay in a dormant state or something.

Think of Grub as a tiny OS. When you boot a kernel, or chainload into a device, GRUB is gone. The only similar thing to achieve, would be using something like EFI, but that actually starts when an OS turns over control to whatever else. On VAXstations, it was possible to halt the system and break into a prompt called chevron (">>>"). You could make basic hardware checks, etc in there, but also format harddrives. Afterwards, the OS could be freed from its frozen state again, and was running from the previously halted point as if nothing had happened.

share|improve this answer
    
Linux would have to read Grub from the disk in some way, but that's not excluded by Seth's question. –  Gilles Apr 14 '11 at 20:27
    
Which is stageload into GRUB. I believe booting from Stage 1.5 on would be sufficient. Linux would have to run it and hand over control to it. I don't believe the Kernel is capable of that. –  polemon Apr 14 '11 at 23:49
add comment

The only similar utility I'm aware of is Kexec. Sadly, it can only boot a new Linux Kernel from within Linux (useful for Kernel updates without resetting the hardware.) As far as I know, doing the same for Windows or using such for fast switching between *nix and Windows is not possible with Kexec.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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