Pls help me in getting rid of GRUB

Hi everybody

I have two issues , new to linux , pls provide all steps

1-      During FC4 installation(re-installation after been used for 1 week) I accidentally opted to install GRUB on the boot partition instead of MBR, upon completion of installation, I can’t get the option to run Fedora. My system straight away starts my windows 2000.
     I have separate partition for /boot

I don’t have floppy drive .

2-      Installing GRUB on MBR is a bit annoying I was wondering to have like an olden days solution to start LINUX thru windows with LOADLIN.EXE, which I was used to do with windows 98. I used Linux sometime back casually .

Rgs and many thanks in adv
blackberrymsplAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

net_sec_guruCommented:
You need to go into the BIOS and set the CD to be the first device to boot, put the hard drive second.
Do you have Windows installed already? If so, boot from the CD, enter the recovery console (press R when it asks you whether you want to install windows etc.) When you're at the console, type:

fixmbr

and that will remove GRUB from your system.

If you don't have Windows installed, GRUB will be overwritten as part of the installation.
jv-stCommented:
I assume that q1 is that on boot you want a choice of windows or fedora. This can be done very nicely without disturbing windows bootloader.

1) in linux make an image of the fedora partition bootsector as a file, say bootsect.fed
2) copy this file to c:\bootsect.fed
3) in boot.ini, add a line:
c:\bootsect.fed="fedora"
net_sec_guruCommented:
If you want to run Linux off of a cd you can always use Knoppix.

http://www.knoppix.org

Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

jv-stCommented:
to elaborate on my answer, I think its good to have installed grub on the fedora partition instead of MBR. On MBR you probably would lose ability to boot windows (symption "missing NTLDR").

If you create the boot sector file, eg dd if=/dev/hda1 of=bootsect.lin bs=512 count=1 (if you are in linux , can also be done in windows if need be), this file will contain the grub bootloader.
After putting  c:\bootsect.fed="fedora" into boot.ini, when you boot, MBR goes to windows NTLDR (windows boot loader), where the "fedora" line will chain to grub on your fedora partition
blackberrymsplAuthor Commented:
HI jv

somehow my both questions are covered from ur answer.

as i mentioned earlier i have already installed GRUB on the boot partition thats the reason when i start my pc i straight away go to windows, SO no way to go to linux and  perform "dd if=/dev/hda1 of=bootsect.lin bs=512 count=1"

now i tried to use windows utility to make "boot sector file" , thats called BOOTPART , followed exactly what u said above but to no avail :(

after boot i can see linux in selection list but after selection it say " cannot find system disk , press any key to continue :(

i tried to boot pc with Fedora CD to confirm the GRUB installation , and it says " fedora installation detected , GRUB is installed on /dev/hda3" which is my boot partition.

it would have been great if this boot.ini stuff works , it would have solve my problem and get rid of GRUB, which i don't want to install on MBR

any help?

many thanks
jv-stCommented:
blackberrymspl,

Be encouraged that this method does work if all the pieces are correct, since I am using it (except I put grub in its own 32M partition to make it completely independent of any OS I install). It solves the dual boot problem nicely because it doesnt disturb windows (IME rewriting the MBR can cause problems that fixmbr and fixboot wont fix)

Can you paste the boot.ini entry? I assume it is of the form c:\bootsect.lnx="fedora" where bootsect.lnx matches the file you created with bootpart (I had a typo above calling it bootsect.fed).

If NTLDR can indeed find the file ok, perhaps it didnt get created correctly by bootpart (I had that problem too). What do you see if you TYPE c:\bootsect.lnx? It should look like:

> ÐØ | 8u
> u |tAÊ |1ØÐ @|<t y} tTAU ZRrIUuCA|  t7fL| fD|  f pf1 DfD
>B rp s
> | f fD1   @  ffD|f1 4T
>f1 tT
>D
> L ;}<T
> Ñl
>Zt
>p Û r*ÃH|` 1a&B|}  }  } }  GRUB GeomHard DiskRead Error <u  v?

That is grub. If not, you could boot to fed live and reinstall grub to make sure its on hda3 ok:

root#>grub
grub> root (hd0,2)    // equivalent of hda3, should have /boot dir and grub files there from b4
grub> setup (hd0,2)  // puts grub into the bootsector of *partition*, need the ,2 !!

Then, create the file using dd if=/dev/hda3 of=/tmp/bootsect.lnx bs=512 count=1

Then, transfer the file to c:\
example: (assuming fed live can see the win partition, its not NTFS is it?)

root#> mkdir /mnt/win
root#> mount /dev/hda1 /mnt/win   // assuming windows on first partition
root#> cp /tmp/bootsect.lnx /mnt/win

As long as boot.ini points to a file which has the partition boot record of grub properly installed on a partition boot record, it should work!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jv-stCommented:
ps, I find gmail a great way to transfer files if all else fails, eg just make a draft with the file as an attachment in fed, then download from the draft in windows. could be any web mail of course.
blackberrymsplAuthor Commented:
HI jv
rock & roll!!

there was no problem with boot.ini or the grub

only issue was i was using bootpart 2.2(non LBA support)

i tried bootpart 2.5 LBA support and it works .

but ur bootsect.lnx matter most

thanks














It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.