LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2007, 09:35 PM   #1
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora/Tiny Core/Android
Posts: 93

Rep: Reputation: 15
Question Dual Boot HDD Crash - Missing /boot


I have a dual boot Windows 2000/Red Hat Enterprise Linux 4 WS on my PC. Windows 2000 was on hard drive a (/dev/hda1) with RHEL4 on hard drive b (/dev/hdb1). Hard drive a with Win 2K crashed and I have since replaced the hard drive. Now, I don't have the boot partion (/boot) on /dev/hda2, but RHEL4 is still on hard drive b. When I do the command "df" in linux rescue, I get the following:

/dev/root.old
/tmp/loop0
/dev/hdb1
/dev/root.old

Is there a way install the boot partion (/boot), so I can use the command "grub-install /dev/hda2" in linux rescue to install grub again?

Thank you for your help,
John
 
Old 05-04-2007, 09:51 PM   #2
jerrydr
LQ Newbie
 
Registered: Nov 2006
Location: Pahrump, NV
Distribution: SuSE, Slackware
Posts: 16

Rep: Reputation: 0
I'm not familiar with grub, but when I found myself in that condition I had to modify lilo.conf to match the new mount point for the /boot (/mnt/boot in my case) partition using the rescue disk. Don't forget to backup the original config so you can restore once you are booting normally.
 
Old 05-05-2007, 07:41 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If when you installed Red you did not include a /boot, you don't need it. You do need to install grub in the MBR of the disc set to boot in the bios. Normally this is the primary drive which I assume is where Windows is installed. Putting grub in the MBR of the second drive where Red is installed will not give you a menu including both Windows and Linux because the bios would normally be set to boot the Windows drive. If you want to install it on the second drive you would have to set it to boot first in the bios, but you may end up having to go through an extra step to boot Windows. The proper set up is to install the boot loader on the first drive. Google to find how to use the Red Hat installation disc in rescue mode to reinstall the boot loader and put it in /dev/hda for a IDE drive, or /dev/sda for a SCSI drive, and you will only have to select the system you want without fiddling in the bios to boot the one you want.
When installing grub to /dev/hda in rescue mode, everything will be taken care of as far as having the right files/configuration in the first sector of /dev/hdb1, (the Red / partition). You did not mention what is the second partition on the first drive (/dev/hda2), this has me wondering why you want to put it there, this is a partition, the boot loader needs to be installed in the MBR (first sector of the drive), not the PBR (partition boot record, first sector of a partition). If you want to install it in a Linux / or /boot partition, you will need to add the Linux to the Windows boot loader. Which is allot more complicated than just installing grub in the MBR in rescue mode and all will be taken care of.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to do a dual boot (Windows on portable HDD) linux on computer HDD izquierdista Linux - General 5 01-28-2006 09:50 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Moving root from a dual-boot HDD to a new HDD Androoski SUSE / openSUSE 1 05-13-2005 10:34 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM
Dual Boot with 2 HDD rhsam Linux - Software 17 08-09-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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