PDA

View Full Version : [SOLVED] I need help with some Linux terminal commands.



wizarddrummer
August 1st, 2010, 04:54 AM
Hi,

Since not one person understood my question I will try the question phrased a different way.


I need to know the commands to enter into the terminal to do these three things...

1) fix the mbr of a linux system that does not boot.

2) uninstall grub.

3) re-install grub on the linux hard drive.

wizarddrummer
August 2nd, 2010, 12:21 AM
I hope someone can help me.

jerenept
August 2nd, 2010, 12:39 AM
You want to check out "Grub2 Guide".
It describes all the you are looking for.
:http://ubuntuforums.org/showthread.php?t=1195275

confused57
August 2nd, 2010, 03:13 AM
Here's a link to your other thread, in case someone else may see your problem and can offer another solution:
http://ubuntuforums.org/showthread.php?t=1540489
If your system is capable of booting first to your drive with Ubuntu, you can use section#13 from the link jerenept provided to install grub to it's mbr. The instructions I gave you in your previous thread should allow you to boot XP when your Ubuntu drive is disconnected, which is what I understood you needed to do.

wizarddrummer
August 2nd, 2010, 08:20 AM
You want to check out "Grub2 Guide".
It describes all the you are looking for.
:http://ubuntuforums.org/showthread.php?t=1195275

Thanks,

reinstalled grub and it's working again.

wizarddrummer
August 2nd, 2010, 08:23 AM
Here's a link to your other thread, in case someone else may see your problem and can offer another solution:
http://ubuntuforums.org/showthread.php?t=1540489
If your system is capable of booting first to your drive with Ubuntu, you can use section#13 from the link jerenept provided to install grub to it's mbr. The instructions I gave you in your previous thread should allow you to boot XP when your Ubuntu drive is disconnected, which is what I understood you needed to do.

Thanks,

I would just caution people that don't know is that if you have two hard drives; one ubuntu and the other XP only install grub on the hard drive with linux.

I disconnected the XP disk, installed grub while in the live cd mode. this brought the hard drive back where it could boot.

i connected the xp disk and grub found it.

all is well

confused57
August 2nd, 2010, 02:08 PM
Thanks,

I would just caution people that don't know is that if you have two hard drives; one ubuntu and the other XP only install grub on the hard drive with linux.

I disconnected the XP disk, installed grub while in the live cd mode. this brought the hard drive back where it could boot.

i connected the xp disk and grub found it.

all is well
Thanks for the update.
Good to hear you were able to get your problem solved. Many people who install Ubuntu to an external USB device experience the same problem, grub's IPL gets installed to the internal drive's mbr & the computer won't boot unless the USB device is connected.

During the installation of Ubuntu, one can click the "Advanced" button & select to install grub's IPL to the Ubuntu drive's mbr(e.g. /dev/sdb).