LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 03: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, 03: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, 03: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, 03: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, 03: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, 03: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, 03: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, 04: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, 03: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, 03: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:18 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
Open Source Consulting | Domain Registration