LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Uninstalled... how do I use grub (command line) to boot winXP? (https://www.linuxquestions.org/questions/linux-software-2/uninstalled-how-do-i-use-grub-command-line-to-boot-winxp-127076/)

once here 12-18-2003 06:37 PM

Uninstalled... how do I use grub (command line) to boot winXP?
 
I deleted my linux partition kind of by accident from windows, I restart, and I get a grub screen like:

grub>

I'm completely clueless as how to boot XP. Can someone give me a hand with this? Also when I get back into XP, how can I restore my original boot loader? I'm going to overwrite my entire drive with slackware or something, but I need to get some stuff off of my winXP partition before I do.

thanks

fancypiper 12-18-2003 07:15 PM

Have you tried the Windows XP Recovery Console yet?

aus9 02-28-2004 07:47 AM

I don't know anything about xp but if fancypiper's hint is not to your liking

then grub comes to the rescue thru typing a few commands and pressing the enter button for each line.

You have what I call the grub acting like a bash command line interface or in windows speak like a DOS command line.

post your xp partition info like all of it is on the first drive first partiion or I have a vm partition as the second partition etc

in the mean time here is a link and its booting info

http://www.gnu.org/software/grub/manual/grub.html for the manual

and here are commands (and press enter ) for first drive first partition

grub> unhide (hd0,0)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot

andrewlkho 02-28-2004 07:49 AM

Or, if you want to remove grub [assuming you've installed it in the MBR] - put in a floppy and do a
fdisk /mbr


All times are GMT -5. The time now is 05:27 PM.