LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-28-2009, 08:08 AM   #1
Guilherme
Member
 
Registered: Jul 2006
Posts: 83

Rep: Reputation: 15
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 ...
 
Old 03-28-2009, 10:53 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
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
 
Old 03-28-2009, 12:14 PM   #3
Guilherme
Member
 
Registered: Jul 2006
Posts: 83

Original Poster
Rep: Reputation: 15
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 .
 
Old 03-28-2009, 12:29 PM   #4
Guilherme
Member
 
Registered: Jul 2006
Posts: 83

Original Poster
Rep: Reputation: 15
ok ... I did it. when I got on the login screen I plugged in the hard drive. it is unknown during this time. ...
 
Old 03-28-2009, 12:34 PM   #5
Guilherme
Member
 
Registered: Jul 2006
Posts: 83

Original Poster
Rep: Reputation: 15
ah, I did grub-install during the rescue function, maybe on the system I it will work right.
 
Old 03-28-2009, 12:42 PM   #6
Guilherme
Member
 
Registered: Jul 2006
Posts: 83

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installed fedora5 &winxp. fedora fine, can't boot winxp uruloki Linux - Newbie 5 07-23-2006 10:12 AM
Installed grub on my winXP-partition styggentorsken General 4 03-05-2005 12:38 PM
Installed Fedora after Winxp, no grub =( colinexl Linux - Newbie 2 01-13-2005 11:45 AM
i got RH8 & WinXP installed and properly working by GRUB. how can i reinstall WINXP? kublador Linux - Newbie 4 06-23-2003 12:00 PM
Lost WinXP when I installed RH8 GRUB HELPPPP!!! arvmenon Linux - General 2 04-29-2003 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:48 PM.

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
Open Source Consulting | Domain Registration