Over written Grub and 2 separate h/d for dual booting
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Over written Grub and 2 separate h/d for dual booting
Hello People,
I checked similar topics but i have a little different scenario.
I have 2 hard disk , the primary master (hda) is the bootable disk with WIn XP in it , which actually overwrote the grub boot loader when i was reinstalling Win XP , now iam not able to boot into Ubuntu (which is in secondary slave or i could attach it in secondary master too) and i want to re-install grub in primary master ... towards this i do following :
1> Load Ubuntu CD and rescue the broken system
2> Run the command line and run the following cmd :
Code:
a> # grub-installer
b> # grub-intaller /dev/hda
But both the cmd fail ..... what could be the reason for this ?
Is it because the concerned binary and config files are in the other
hard disk containing Ubuntu , (this has all the partition ie bin , sbin, var,opt, usr, swap etc )...
Please write me detailed steps or some site to read through ....
First off all swap the drives e.g.
hda > hdb , hdb to hda
Boot your cd with grub and enter the grub shell by typing grub as root
i assume your partition with /boot/grub will then be hd0,0
type: root (hd0,0)
setup (hd0)
to make windows think it's still on the hda drive,
edit the menu.lst like this
title Windows
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.