LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2009, 10:20 PM   #16
louieb
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu 8.04
Posts: 94

Rep: Reputation: 17

Quote:
Originally Posted by dragonslayer48dx View Post
BTW- Grub is in the MBR, not the boot partition...
Actually its in both. stage1 is in the MBR and is just a small bit of code that loads stage2 which is found in /boot/grub. Stage2 is the program that displays the menu and all the other stuff that grub can do.

Having said that. Its my guess that the stage1 code was put in the MBR by the 2nd Ubuntu install. 1st thing on the list to do is put stage1 code back in the MBR that points to the stage2 program in the 1st ubuntu install.

Get a grub> prompt
Code:
sudo grub
Code:
find /boot/grub/stage2
Should return both stage2 locations looks like (hd0,2) (hd0,5) just an example. You need to figure out which one you need. Then lets say you want grub to boot stage2 in (hd05) you would do: (stiil from the grub> prompt)
Code:
root (hd0,5)
setup (hd0)
quit
reboot and see if that was the one. if not do it again with the other one.

Now you can figure out what to do with the space currenty use by Ubuntu install #2. But thats another question.
 
Old 09-19-2009, 06:32 PM   #17
Foozah
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Okay, I'm back again guys. At this point, I do not care whether I keep the first or second Ubuntu. It seems there is a lot of theory and how-to in this forum. I'm not sure which I do and in what order. Would someone who knows what I should be doing write a step by step dummy version to remove one ubuntu, add the space to windows or other ubuntu (if can't add to windows), and make sure the bootloader is correct so I don't mess up my computer.

Thanks for all your continued help! This is a great community of great minds!
 
Old 09-19-2009, 06:36 PM   #18
Foozah
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 0
If it helps, here is my current gparted view:
http://yfrog.com/6hscreenshotdevsdagpartedp
 
Old 09-19-2009, 08:16 PM   #19
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
If the problem is in grub stage2 (which I assume resides on partition of Ubuntu2), can't you boot the Ubuntu1, reinstall grub and then delete the partition of Ubuntu2?
I'm not shure because I've never used grub.
 
Old 09-20-2009, 08:14 PM   #20
Foozah
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Anyone able to help?
 
Old 09-21-2009, 01:32 AM   #21
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I'd suggest using grub-install and re-installing grub to the partition that the original Ubuntu partition lays on. Unfortantly I have never had to do this myself so I am not entirely certain on the procedure.
 
Old 09-21-2009, 09:54 AM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Your output from GParted in the post above shows two ext3 partitions, sda7 which is a little over 2GB and sda5 which is 19GB. 2GB is a little small for any OS so I would suggest you use sda5. If you can boot into one of your Ubuntu partitions open a terminal and type:

sudo grub (should get grub prompt -grub>- after entering password)
root (hd0,4)
setup (hd0)
quit

This should put the stage1 file in the mbr of sda (hd0) pointing to (hd0,4)which is the same as sda5.

If you can re-boot into Ubuntu after doing this, it should be safe to delete the other partition (sda7) and one of your swap partitions.
 
  


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
Linux VS Windows affecting Memory apnorton Linux - Software 2 02-05-2009 07:47 AM
Ubuntu install affecting WinXp return from standby? frznchckn Linux - General 2 03-09-2007 10:21 AM
Upgrade FC without affecting Solaris and Windows zillah Linux - Software 2 01-21-2007 12:18 PM
915 resolution affecting windows xp mnk123 Linux - Laptop and Netbook 1 09-24-2006 01:56 PM
How to Change Windows without affecting GRUB or Ubuntu?? crash_override_me Ubuntu 5 10-19-2005 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:04 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