LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2006, 05:07 AM   #1
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 108

Rep: Reputation: 16
Question Help with grub booting


Hy guys, please help me if you can.
I had a leptop with WINXP and FC4 installed, it was working perfectly after some time of using I realise that I never used fc4, most of times I use vmware with a image or boot cd, so I deleted yesterday the fc4 partition and there was 1 extra small partition made by fc4 somelike 10mb that one in winxp was empty I delete that one too. after rebooting the laptop I got

>grub

nothing alse, and I tryed many commands nothing helps, I booted with knoppix and everything is there my winxp partitions and the other ones wich I removed and formated.

now I have to boot into winxp to use it,
can sombody tell me how to repair it so I can use WinXP only. I have diferent life linux cd's, I dont have any repair diskets and even a disket station on my laptop,please help if you can.
 
Old 06-30-2006, 05:35 AM   #2
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Do you have no WINXP rescue disk at all??
If you do have one, insert it and type "fixmbr".

If not look here:
http://www.gnu.org/software/grub/man...in_002dloading
This should work from the grub prompt(if windows is on hda1)
Code:
          grub> rootnoverify (hd0,0)
          grub> makeactive
          grub> chainloader +1 
          grub> boot
once you're in window you can once again remove grub with "fixmbr"

Last edited by deroB; 06-30-2006 at 05:46 AM.
 
Old 06-30-2006, 11:27 AM   #3
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Rep: Reputation: 15
Here's what happened: When you installed Linux, the installer put a program named grub on your master boot record. In order to work, grub reads a file called grub.conf which tells it what operating systems are installed, where they are, etc. Grub.conf is normally located in one of your Linux partitions. When you deleted your Linux partitions, you also deleted grub.conf, so grub was no longer able to boot Windows automatically.

The Windows fixmbr program rewrites your master boot record and replaces grub with a program that allows you to boot Windows. The grub commands (in the code section above) replicate the information (normally found in grub.conf) needed to boot Windows.
 
Old 06-30-2006, 03:23 PM   #4
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 108

Original Poster
Rep: Reputation: 16
Smile Hy, thanks everybody

I want to thank you guys for helping me out. I used the fixmbr tool it solved my problem, actualy I kenw about that but when I got the problem its like al my knowledge and expereince was lost, so I'm realy thanfull. now I'm not going to use 2 systems anymore cause the vmware gives me the posibility to use it in windows.
Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 06:01 AM
booting from CD when using grub??? thanos155 Fedora 7 08-04-2005 07:08 PM
Cannot See the Grub while booting Morpheus Linux - Hardware 2 01-17-2005 09:51 AM
Booting from a CD using Grub? kaider Red Hat 3 08-02-2004 11:54 AM


All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration