LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   GRUB Problems On Installing Windows After Ubuntu!!! (http://www.linuxquestions.org/questions/ubuntu-63/grub-problems-on-installing-windows-after-ubuntu-456680/)

crash_override_me 06-20-2006 03:27 PM

GRUB Problems On Installing Windows After Ubuntu!!!
 
hi guys,

i read this piece of information in the Unofficial Ubuntu Guide...

Quote:

How to restore GRUB menu after Windows installation

* Read #General Notes
* Read #How to use Ubuntu Installation CD, to gain root user access

e.g. Assumed that /dev/hda is the location of /boot partition

# grub-install /dev/hda

[edit]
How to add Windows entry into GRUB menu

* Read #General Notes
* Read #How to list partition tables

e.g. Assumed that /dev/hda1 is the location of Windows partition

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst

* Append the following lines at the end of file

title Microsoft Windows
root (hd0,0)
savedefault
makeactive
chainloader +1

* Save the edited file
Does this mean, that in order to Restore the GRUB into MBR, i have to make a separate /boot partition??? :scratch:

Wat if i make only 3 partitions ===> / & swap & /home...??

Please help!!

This problem is really driving me crazy.., cause Windows is messed up(As Always) & i need to re-install it.
And after that i dont want to re-install UBUNTU as always...!!

bernied 06-20-2006 03:38 PM

It's not clear what your problem actually is.
Is the machine booting? Do you get a boot menu?
If not, what does happen?
Can you start Ubuntu?
Can you start Windows?
If not, what happens when you try?
What have you tried to do to fix the problem?

J_K9 06-20-2006 03:40 PM

Quote:

Originally Posted by crash_override_me
Does this mean, that in order to Restore the GRUB into MBR, i have to make a separate /boot partition???

No - what the instructions mean is to use that command on the partition containing the /boot partition. In your case, this would be the root (/) partition. Using the grub-install command on that partition should make it work normally again after reinstalling Windows - and, to save yourself some hassle later on, make a backup of your current menu.lst (or grub.conf), and then after the 'grub-install' later all you will have to do is replace the new menu.lst with the backed up one ;)

Theorist 06-20-2006 03:44 PM

Hi crash_override_me,
Quote:

Does this mean, that in order to Restore the GRUB into MBR, i have to make a separate /boot partition???
You do not have to create a separate /boot partition. Just follow what is mentioned in the guide, that you quoted in the post, after re-installing Windows.

With Regards,
Theorist

crash_override_me 06-20-2006 03:49 PM

Thanx J_K9,

But few things more ===>

1.Do i need to remember the location of my / (like /dev/hda)??
2.Wat option shud i choose after booting in RESCUE mode using the Ubuntu Install CD.
3.When i'll reinstall Windows, will the location of Windows Partition change in fstab??

J_K9 06-20-2006 03:53 PM

Quote:

Originally Posted by crash_override_me
1.Do i need to remember the location of my / (like /dev/hda)??

'fdisk -l' will print your partition list - just jot down what partition / is on to save yourself a bit of difficulty later on.. ;)
Quote:

2.Wat option shud i choose after booting in RESCUE mode using the Ubuntu Install CD.
I can't remember off the top of my head - but booting into rescue mode should take you to a console anyway. What you're aiming to do is get to a console so that you can type the commands in the guide - it doesn't matter how you get there ;)
Quote:

3.When i'll reinstall Windows, will the location of Windows Partition change in fstab??
No, it won't, as you will presumably be reinstalling it on the same partition, so the physical location will not change.

Cheers,

-jk

crash_override_me 06-20-2006 03:57 PM

thanx J_K9,

Sorry for troubling u dude, but 1 more thing ===>

1.which directory shud i be standing in while issuing the command grub-install /dev/hda ???

J_K9 06-20-2006 03:59 PM

It doesn't matter what directory you are working in when you issue the command ;)

Cheers,

-jk

crash_override_me 06-20-2006 04:03 PM

ok, so when i issue this command the system will pop up the GRUB MENU like always on BOOT UP??
& i have to replace the menu.lst wid a backup copy to get the windows in the GRUB??

J_K9 06-21-2006 03:42 AM

No.

I suggested making a backup so that you wouldn't have to find out which partition Windows is on later on, and then add the lines to your menu.lst - all you would have to do is replace the new menu.lst with the old one (which you backed up).

But, maybe it's better to just follow guide ;)

Cheers,

-jk

Theorist 06-21-2006 03:53 AM

Hi crash_override_me,
Quote:

ok, so when i issue this command the system will pop up the GRUB MENU like always on BOOT UP??
Yes, it will.

Quote:

& i have to replace the menu.lst wid a backup copy to get the windows in the GRUB??
No. Just follow the guide as it says.

With Regards,
Theorist


All times are GMT -5. The time now is 12:37 AM.