I have installed Linux and Windows on same system, Linux is loaded by default on system startup and from Linux I restart the OS. What I want to do is on next restart I want to automatically load Windows OS, i.e. user don't need to select the OS. and when Windows is restarted the System should load Linux again. Mean I need to load Windows only one time after restart of linux. Can I do it with GRUB? as in GRUB if i put the index number of OS in default directive of boot loader it will become permanant, but I need one time change only.
edit: I have come across a command which is grub-reboot which do the above task according to its manual... but its not working for me on debian.., yet not sure why... any luck with any one?
edit: This command works on ubuntu and I have to transfer my code to UBuntu text only version. and problem resolved.