LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   installed WinXP after Fedora 10 but grub still not working (https://www.linuxquestions.org/questions/linux-general-1/installed-winxp-after-fedora-10-but-grub-still-not-working-715074/)

Guilherme 03-28-2009 08:08 AM

installed WinXP after Fedora 10 but grub still not working
 
hello.
Though I was using fedora with wine and it was not going well, I decided to install winxp on a partition to copy the entire C drive to ~/.wine/drive_c/ directory.
I unpluged the Hard drive and installed windows, all ok untill now. but, when I started up again with both discos pluged, (as I supose) windows booted first. So I inserted Fedora 10's DVD and rescue it, but, for earlier versions there was a boot restore function on the menu, now it isn't and I needed to chroot /mnt/sysroot (or so) and execute

Code:

grub
root hd0,0
setup hd0
exit

and it wasn't working yet, but, even when I made the same but executed

Code:

grub-install
windows presists on it's own boot up ...

I have, or supostly I should have, grub installed on MBR.

what can I do more?

thank you ...

ronlau9 03-28-2009 10:53 AM

If you are messing around with youŕe drive , you should change youŕe menu.lst too
If you like to do a dual boot yes Grub should be written in MBR
To install GRUB
chroot/mnt/sysimage
Grub install /dev/sd?
exit
Sd? the drive where GRUB should be mostley SDA
If possible run the command fdisk -l(L lower case) to find the partitions where the OS are ,
Remember GRUB start counting with a zero so (hd0,0) = sda1 for you re menu.lst

Guilherme 03-28-2009 12:14 PM

thank you for the replay
I made grub-install already. the root partition is on sda1. in fact I don't want dual boot with windows, but a copy of it just to try on wine.
Maybe I can auto-reboot computer (no more than this) due a possible over current, but I'll try to unplug the windows disk, boot on fedora and plugit during the boot.
Beeing true, I'm pretty shore that this won't work, though I have, I gess, no plug n' play on hard drives... but ... no more than a restart.

Any how, I'll report in here. but, if you have any ideia what I can do else, please replay me .

Guilherme 03-28-2009 12:29 PM

ok ... I did it. when I got on the login screen I plugged in the hard drive. it is unknown during this time. ...

Guilherme 03-28-2009 12:34 PM

ah, I did grub-install during the rescue function, maybe on the system I it will work right.

Guilherme 03-28-2009 12:42 PM

ok, allright, it worked well.
Although I changed /boot/grub/map, there war
Code:

(hd0)  /dev/sda
(hd2)  /dev/sdc

I don't know what is the hd2 because I had not any other drive plugged on. so I added (hd1) /dev/sdb and ran grub-install /dev/sda and all is ok.

Any how, thank you.


All times are GMT -5. The time now is 07:36 PM.