LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 06-20-2006, 04:27 PM   #1
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
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???

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...!!
 
Old 06-20-2006, 04:38 PM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
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?
 
Old 06-20-2006, 04:40 PM   #3
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
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
 
Old 06-20-2006, 04:44 PM   #4
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

Rep: Reputation: 15
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
 
Old 06-20-2006, 04:49 PM   #5
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
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??
 
Old 06-20-2006, 04:53 PM   #6
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
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
 
Old 06-20-2006, 04:57 PM   #7
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
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 ???
 
Old 06-20-2006, 04:59 PM   #8
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
It doesn't matter what directory you are working in when you issue the command

Cheers,

-jk
 
Old 06-20-2006, 05:03 PM   #9
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
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??
 
Old 06-21-2006, 04:42 AM   #10
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
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
 
Old 06-21-2006, 04:53 AM   #11
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

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


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
change boot ubuntu/windows grub The_guy1 Linux - Newbie 2 04-15-2006 02:12 PM
ubuntu: windows took over MBR and can't restore grub eantoranz Linux - Software 3 02-03-2006 09:29 PM
How to Change Windows without affecting GRUB or Ubuntu?? crash_override_me Ubuntu 5 10-19-2005 12:17 PM
Re-installing GRUB from within Ubuntu duffmckagan Ubuntu 10 07-15-2005 12:50 AM
GRUB config for FC3/Ubuntu/Windows AndrewZorn Linux - General 3 04-07-2005 12:14 AM


All times are GMT -5. The time now is 01:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration