You are not logged in.
Does anyone know if there is a way i can create a "boot into windows" button for linux. I would like to put it on my linux desktop, so when i need to boot into windows, i can shutdown arch and boot right into windows, without having to go through grub and all that stuff. I have read something about qemu, but dont really know if that will work. Any help would be appreciated.
Thanks!
~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]
Offline
Well, you could write a script to change the default OS in your grub menu.lst and the wait time to 0, then reboot.
Getting back IN to Linux would then require some effort, as you'd have to sit by the keyboard waiting for grub to come up and quickly press "down" or something.
Offline
If you used NTLDR rather than Grub then you could have shortcuts in both Windows and linux. They'd just need to edit the C:boot.ini file which is easily done via either OS
Offline
if you use lilo, it should be as simple as a shell script that does:
lilo -R Windows (where Windows is your Windows label in the lilo.conf)
shutdown -r now
and putting the shortcut on your desktop with a kdesu command or some such.
Dusty
Offline
I use grub, and would like to keep it that way. Does anyone know if there is a way i can do it with that? If i have to i may switch to NTLDR, but i would rather keep grub. Thanks for the quick replies!!
~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]
Offline
I've seen distros that reboot into win on grub, check the grub man page. (I don't have it installed)
Dusty
Offline
I looked around on the man page and tried a few things, but couldnt find anything that would do what i want it to do.....Any more suggestions?
Thanks again!
~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]
Offline
I looked around on the man page
The man page is fairly basic - what you need is grub's info manual - http://info2html.sourceforge.net/cgi-bi … nfo.gz)Top .
(The URL won't post properly, for some reason - you need everything from 'http' to 'Top').
I have read something about qemu, but dont really know if that will work.
Qemu won't reboot your system into Windows - it's an emulator, which you can use to launch Windows within Linux. It might suit your purpose, depending on what you use Windows for - the performance is not as good as in native Windows.
Offline
I looked on that manual and found this:
If you want to install GRUB non-interactively, specify `--batch'
option in the command-line. This is a simple example:
#!/bin/sh
# Use /usr/sbin/grub if you are on an older system.
/sbin/grub --batch <<EOT 1>/dev/null 2>/dev/null
root (hd0,0)
setup (hd0)
quit
EOT
Could i somehow invoke something like that command with the --bash switch, so that it boots into windows? I tried using the grub shell before, but i am not very good at it. I have read the man page as well as that manual, but still dont understand it.
Thanks for all your help!
~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]
Offline
A quick question. Does it really take that long to select Windows from the GRUB menu? You could make it the default with like a 3 second delay and then it would only add 3 seconds to the time a button would take.
Offline
Thats what i have my delay on anyway, i was more interrested in getting it to work just to get it to work, and also because i think it would be cool to have.
~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]
Offline
#!/bin/sh
#
# where Windows is the second OS in your list
#
mount | grep boot
if [ $? -eq 1 ]; then
mount /boot
fi
sed -e "s/default.*[0-9]/default 1/g" -i /boot/grub/menu.lst
shutdown -r now
exit 0
That should do the trick, the if at the top might not work, I suck at shell and it was a guess. It would need to be run as root obviously and I'd check that the sed line works on your particular menu.lst before running it.
Offline
I hope you are using ext3 ...
IMHO if you are using ext3 your problem is solved, create 2 menu.list one called menu.list.linux and the other menu.list.windows, put the default entry to the desired one and take the delay down to 0 along with hidemenu command ( boot into selected distribution instantly.. )
On linux create the following script
#!/bin/sh
cp /boot/grub/menu.list.windows /boot/grub/menu.list
[[ -f /boot/grub/menu.list ]] || exit 1
shutdown -r now
Now go to windows, install Ext2 FS ( http://www.fs-driver.org/ ) mount the boot partition and create a bat script
copy E:bootgrubmenu.list.linux E:bootgrubmenu.list
i dont remember if u can reboot from a bat script but that will do the trick...
P.S: yea i know, it would be better to use one script and use sed/awk to patch it, but how will he patch it on windows ? personaly i don't know how :oops: so I took the idea of 2 menu.list(s)
[My Blog] | [My Repo] | [My AUR Packages]
Offline
A quick question. Does it really take that long to select Windows from the GRUB menu? You could make it the default with like a 3 second delay and then it would only add 3 seconds to the time a button would take.
Thats what I would do, 2. But this seems to be a question of sports. Gotta be fixed the crude way.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
I hope you are using ext3 ...
IMHO if you are using ext3 your problem is solved, create 2 menu.list one called menu.list.linux and the other menu.list.windows, put the default entry to the desired one and take the delay down to 0 along with hidemenu command ( boot into selected distribution instantly.. )
On linux create the following script
#!/bin/sh cp /boot/grub/menu.list.windows /boot/grub/menu.list [[ -f /boot/grub/menu.list ]] || exit 1 shutdown -r now
Now go to windows, install Ext2 FS ( http://www.fs-driver.org/ ) mount the boot partition and create a bat script
copy E:bootgrubmenu.list.linux E:bootgrubmenu.list
i dont remember if u can reboot from a bat script but that will do the trick...
P.S: yea i know, it would be better to use one script and use sed/awk to patch it, but how will he patch it on windows ? personaly i don't know how :oops: so I took the idea of 2 menu.list(s)
I am using EXT3 and i already have the Ext2fs installed, so i think those 2 scripts should do the trick!
~HP ZV6000 Series CTO~
-AMD Athlon 64 3200+ 2.0GHz
-1.5GB RAM
-128MB ATI Mobility Radeon X200m
-80GB 5400RPM HD
[img]http://imagegen.last.fm/scarface/recenttracks/mtrivs.gif[/img]
Offline