LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-02-2009, 11:57 PM   #1
vikku
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
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 ....

Thanks in advance

Regards
Vikku
 
Old 06-03-2009, 12:07 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You don't give the failure message, but assuming it is c"command not found", try grub-install
 
Old 06-03-2009, 01:22 AM   #3
vikku
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hello Bill,

It just says "Grub installation failed" but no pointers whatsoever...


regards
Vikku
 
Old 06-03-2009, 01:42 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Oh I just noticed. What is the prompt you are at that increments a>, b>, etc ?

The disk may be /dev/sda rather than /dev/hda (grub uses different naming so don't mix the two).

Try fdisk -l

Last edited by billymayday; 06-03-2009 at 01:43 AM.
 
Old 06-18-2009, 09:36 PM   #5
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
Hi, Vikku

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


hope this helps
 
  


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
Dual Booting (2 Linux from Separate Drives) GRUB issue. RensoreK Linux - Desktop 1 08-22-2008 12:01 AM
Dual booting on separate SATA drives tewald Linux - Newbie 4 03-16-2008 10:35 PM
dual booting mandrake 10.1 and xp on separate drives I_Come_anon3410 Linux - Software 6 12-23-2004 01:13 AM
Dual Booting, 2 separate hard drives Jotun Linux - Newbie 6 04-30-2004 12:18 PM
Dual-booting with two separate hard drives leeman_s Linux - General 3 01-22-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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