LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2004, 08:09 AM   #1
mainstreet
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
Red Hat:Can boot the HD from FD but can't boot directly off of HD


Red Hat. I synced (low level copied) the entire hard disk to a 2nd hard disk. The second hard disk is now the main disk but i can't get it to boot directly without a boot floppy. Once booted the disk runs all aps correctly. I ran fdisk and the boot partition is 'bootable'. Is there a simple command to make the hard disk bootable?? Thanks in advance! Dave
 
Old 06-25-2004, 08:55 AM   #2
srichand
Member
 
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
have you installed a boot loader on the new harddisk?
if not, do a
# /sbin/lilo
when you boot in from the fd.
you could choose grub if you like..


Srichand
 
Old 06-25-2004, 09:32 AM   #3
mainstreet
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Grub is installed and the grub.conf file has :
---
root(hd0,0)
kernel /vmlinuz ro root=/dev/hda3
initrd /initrd.img
---
Note: i didn't re-install grub after copying the original hd to the 2nd hd.
I just booted the original hd and it is running grub at bootup and the grub config files match on both hd's.
Do i need to re-run grub on the new HD to update a boot track???
 
Old 06-25-2004, 09:41 AM   #4
srichand
Member
 
Registered: May 2004
Location: Bangalore, India
Distribution: Fedora Core 2 (modified), Debian
Posts: 34

Rep: Reputation: 15
from your grub.conf file

root(hd0,0)

appears fishy, are you sure this is the exact location of the boot partition?


kernel /vmlinuz ro root=/dev/hda3

again, are you sure /dev/hda3 is the correct location of the kernel image? not /dev/hdb ?
as in, is this the older harddrive still connected? that is referred to as hda
Prim master is /dev/hda

i think the problem lies in those lines

cheers
Srichand
 
Old 06-25-2004, 09:58 AM   #5
mainstreet
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
The old drive is not connected. The new drive replaced the old drive. Only 1 hd in the system. (at a time)
(when i say i just booted the old drive - i unplugged the new one and plugged back in the old one).

This exact situation happend to me 2 years ago and a linux tech gave me a simple command to make the hard disk bootable. i don't recall if the command was at the 'floppy boot:" prompt or after the computer was booted up?? I sure wish I kept 'notes' better!!! I am pretty sure it was a simple one line command. I don't recall having to run 'grub' or any re-install.
 
Old 06-25-2004, 01:38 PM   #6
mainstreet
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
FYI - i got my system to boot off the hd by running the 'grub install' command:
install (hd0,0)/grub/stage1 (hd0) (hd0,0)/grub/stage2 p(hd0,0)/grub/grub.conf

Thanks for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - Newbie 15 10-21-2005 11:29 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 08:08 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 08:07 AM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 09:49 PM
Red Hat 9.0 Wont Boot Lost Boot Disk! AndrewBalmos Linux - Newbie 8 01-05-2004 08:06 PM


All times are GMT -5. The time now is 03:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration