techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Linux / BSD / Mac OS X

Reply
 
Thread Tools
Old Aug 16, 2012, 08:46 PM   #1
Ubuntusario
75 Posts
 
Join Date: Nov 2011
Location: UT,US
Posts: 196 (0.35/day)
Thanks: 8
Thanked 5 Times in 5 Posts

System Specs

Post how to rebuild the ubuntu boot loader

I was using the boot loader that ubuntu installed to load linux and windows xp individually, but after I tried to reinstall xp using a bootable usb drive it erased my boot loader information leaving xp as the only os to boot.

I want to know what are the commands that I need to input maybe inside a live ubuntu so I can use my existing ubuntu instalation as well as xp like it was before this accident.
Ubuntusario is offline  
Reply With Quote
Old Aug 16, 2012, 08:52 PM   #2
temp02
200 Posts
 
Join Date: Mar 2009
Posts: 490 (0.32/day)
Thanks: 0
Thanked 171 Times in 158 Posts

grub-install should do the trick.
temp02 is offline  
Reply With Quote
Old Aug 16, 2012, 09:51 PM   #3
ThE_MaD_ShOt
3500 Posts
 
ThE_MaD_ShOt's Avatar
 
Join Date: Nov 2011
Location: Hi! I'm from the Internet
Posts: 3,735 (6.97/day)
Thanks: 2,528
Thanked 2,441 Times in 1,468 Posts

System Specs

Yes grub will work.
__________________
Crunchers : Phenom II x6 1090t / 2x Phenom II x6 1055t / Phenom II x4 970BE /
“I always succed in my mission tho. Beer just delays it!” -ChaoticAtmosphere
“TPU is very mild, and I love to tell people I love them when they are being retarded, it makes me feel special in my special places. What was the point of this thread again? Oh well, I love all of you.” -Steevo

ThE_MaD_ShOt is online now  
Crunching for Team TPU
Reply With Quote
Old Aug 16, 2012, 10:15 PM   #4
Drone
1000 Posts
 
Drone's Avatar
 
Join Date: Sep 2010
Location: Nonlocal location
Posts: 1,897 (1.92/day)
Thanks: 62
Thanked 822 Times in 525 Posts

System Specs

If you have problems with grub here's a straightforward guide from ubuntu forums:

Open terminal and type

sudo grub

This will get you a "grub>" prompt (i.e. the grub shell). At grub>. enter this

find /boot/grub/stage1

This will return a location. If you have more than one, select the installation that you want to provide the grub files. THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)

root (hd?,?)

Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1). Next enter the command to install grub to the mbr

setup (hd0)

Finally exit the grub shell

quit

That is it. Grub will be installed to the mbr.
When you reboot, you will have the grub menu at startup.

http://ubuntuforums.org/showthread.php?t=224351
__________________
...the young Universe was filled with a hot dense soup of interacting protons, electrons and photons at about 2700ºC. When the protons and electrons joined to form hydrogen atoms, the light was set free
Drone is offline  
Reply With Quote
Old Aug 19, 2012, 05:17 PM   #5
GoFigureItOut
75 Posts
 
Join Date: Dec 2011
Posts: 89 (0.17/day)
Thanks: 7
Thanked 5 Times in 5 Posts

System Specs

For simplicity, sake I use a CD called Boot-Repair-disk.
GoFigureItOut is offline  
Reply With Quote
Old Aug 20, 2012, 11:18 PM   #6
SIGSEGV
200 Posts
 
SIGSEGV's Avatar
 
Join Date: Mar 2012
Location: Bandung, Indonesia
Posts: 363 (0.88/day)
Thanks: 103
Thanked 73 Times in 45 Posts

System Specs

boot with the ubuntu installation cd, open terminal, find root hdd for linux booting and mbr hdd partition then mounting and re-mapping it to grub, finally re-installing grub by typing #grub-install /mount-dir/mapped-mbr-partition /dev/orig-mbr-partition.

note : if you have 2 different disk locations for linux partition and windows mbr partition, while on successfully grub booting you should edit grub parameter by pressing 'e' then do manual re-map linux root partition
SIGSEGV is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Move Boot Loader? sonnytiger General Software 1 Feb 16, 2010 06:17 AM
How to delete Nvidia RAID Boot Loader and install new HD? bud951 General Hardware 0 Jan 31, 2010 03:48 AM
How do I remove the Linux Boot Loader? vbx Linux / BSD / Mac OS X 3 May 6, 2009 09:19 PM
issues with Boot Loader ASRockIQ General Software 7 Apr 30, 2009 11:57 PM
how to change the entry point for secondary boot loader? Lucky443 Linux / BSD / Mac OS X 0 Apr 9, 2009 04:56 AM


All times are GMT. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts