• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install / repair your Grub (1.98) install from the Ubuntu 10.04 live CD
#1
How to install / repair your Grub (1.98) install from the Ubuntu 10.04 live CD

With the recent saga of my XP install failing.
http://mcompute.co.uk/showthread.php?tid=836

I re-installed Windows XP, and as we know the rule of thumb is install the older version of Windows first then Linux. So installing Windows XP when Ubuntu is install is going to wipe Grub out and replace it with Windows MBR, (which doesn't recognise Linux installs). Problem.. you can now only boot into Windows.


Solution

1) Boot off the Live CD and click "Try it"
2) When In the desktop environment, open a terminal and escalate to root. (sudo su)
3) Find out with partition your Linux install in on, (can do this using gparted)
4) mount /dev/sda3 /mnt
5) grub-install --root-directory=/mnt /dev/sda
6) umount /mnt
7) exit
8) reboot

Now, you can boot back into your Linux install, but not your Windows ! So, go ahead and boot back into your Linux install as normal then open a terminal and type

9) sudo update-grub

It should now recognise you have Windows installed and update Grub for you.

Job done.
  Reply
#2
I have an excellent question! On step 9, do you have to type sudo if you are logged in as root?
Having long hair is great until you have to pull a footlong out of the dog's butt. flatank.blogspot.com
I. AM. LATCH.
  Reply
#3
If you are logged in as root, you do not have to type sudo, but on step 9 it requires a reboot into your installed Linux partition and by default you're not root on a terminal and if you're only issuing one command you just put sudo before it. (To escalate it)
  Reply
#4
Unless of course you're recovering BT from Ubuntu?
[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
  Reply
#5
Why would one have Backtrack and Ubuntu installed on the same machine? Backtrack is pretty much Ubuntu, just a little less pretty with some things pre-installed.
  Reply
#6
Many people dual boot Backtrack and Ubuntu. You keep the OS's separate. It's only recently that Backtrack has become a little better for day to day use, and I can confirm it's a pain in the arse now to do it on a day-to-day basis.
[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
  Reply
#7
It was created as a live CD, not designed for day to day, it's only recently in BT4 moved over to the Ubuntu kernel, previously it was Slackware based, they moved over due to an exploit being found and it was hard to roll out a fix or something. I can't remember the details.
It is a pain as a day to day tool, yes. That's why you install the select 10-20 tools on Ubuntu as use that.

  Reply
#8
You are in a retaliative mood. Is something wrong with Marks masculinity? Or maybe it's a hormone imbalance. Fighting with all the other monkeys to prove he's the top, well, monkey.
You could do that, but when you're a lazy fucker with no intention of doing that, having the tools there. Finding out how they work but just using man [tool] and [tool] --help is much more fun. :tongue
[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
  Reply
#9
(18-03-2011, 10:52 PM)Drumm Wrote: You are in a retaliative mood. Is something wrong with Marks masculinity? Or maybe it's a hormone imbalance. Fighting with all the other monkeys to prove he's the top, well, monkey.
You could do that, but when you're a lazy fucker with no intention of doing that, having the tools there. Finding out how they work but just using man [tool] and [tool] --help is much more fun. :tongue

There is always the the Pack3t SynAck3r --help method some some choose to use as well. Although that method forces you to think and that can be considered too difficult. Although it has been known to get stubborn linux drivers to start working.
[Image: icpn5k.jpg]
Trolls are the last thing you need to be concerned with.

VCD Wrote:// Forever more, count and reply, bitch.
  Reply
#10
Anyway, I used to Tri-boot XP, Backtrack 3 and Ubuntu 8.10, they were all different then of course, on my hacktop now I only have Windows XP and Ubuntu 10.04 with the things I need installed, (mainly wireless and networking tools).
I find many people use backtrack as backtrack and that's good, yet they only use select tools from the suite. meh.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu KDE? DerpyTurtle1337 1 7,183 11-11-2012, 02:10 PM
Last Post: Mark
  How to Install East Asian Language Support / Chinese Under Windows XP Mark 0 5,714 13-04-2012, 12:35 PM
Last Post: Mark
  How to install KDE 4 in OpenSuse 12.1 Mark 1 11,419 11-01-2012, 06:46 PM
Last Post: Drumm
  How to use Gnome instead of Unity in Ubuntu 11.04 Mark 1 8,115 13-10-2011, 06:01 PM
Last Post: Drumm
  Setting DNS in Ubuntu Pack3t SynAck3r 8 25,757 30-08-2011, 10:42 PM
Last Post: pat778mal

Forum Jump: