LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-11-2005, 04:19 PM   #1
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Grub won't load; re-install doesn't work.


I've got a server with a dead/dieing HDD. I bought another HDD and have been trying to simply copy everything from one drive to the other (HDDs are different sizes, so dd wouldn't work). I've been able to copy all of the content, but the problem is that I can't get Grub to install correctly. When I boot from the new drive, All I get is
Code:
GRUB
From googling, I know that this means that Grub can't load its first stage. So I d/l'ed Knoppix to rescue the system. Knoppix sees the drive just fine, can mount, read, write, etc. to the drive just fine. I then go into the Grub shell:
Code:
grub> root (hd0,0)
  Filesystem type is ext2fs, partition type0x83

grub> find /grub/menu.lst
  (hd0,0)

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embeded
succeeded
 Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/menu.lst"... succeeded
Done.

grub> quit
# init 6
INIT: switching to runlevel: 6
...
Now the system runs through the POST process, the screen clears as if its going to go to Grub, then it reboots. This cycle repeats infinitely as far as I can tell. Going to do some more googling, but I though I'd ask for help here too. TIA.
 
Old 04-11-2005, 08:39 PM   #2
contiang
Member
 
Registered: Dec 2004
Location: malaysia
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46

Rep: Reputation: 15
Hi guys,

Thanks a lot, I just recover from this problem today. Previously I installed
new kernel (2.4.30) on my linux machine. And because of my silly mistake,
I accidentally lost my grub.conf file. So my linux machine refused to load.
Thanks god I found this thread... thanks guys...

- contiang
 
Old 04-11-2005, 10:30 PM   #3
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Original Poster
Rep: Reputation: 30
Is that a question or a solution??
 
Old 04-12-2005, 12:18 AM   #4
contiang
Member
 
Registered: Dec 2004
Location: malaysia
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46

Rep: Reputation: 15
its an appreciation actually... i m thinking this matter for such period
of time. Can i delete my old kernel after i installed a new one?
if i can do so? how can i? can i simply rm -rf <my-old-kernel-directory> just
like that?
 
  


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
I have Windows XP and Fedora 3. If i install Slack, what i must do for grub to work? zahadumy Linux - Software 11 05-30-2005 03:08 PM
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 08:48 PM
FC1: GRUB won't load after install screwage Fedora 4 03-19-2005 12:59 PM
GRUB won't load after install realityescapear Fedora - Installation 4 01-16-2005 02:59 AM
I can't load windows! I need it for school but i can't get grub to work! help. l2ich84 Linux - Newbie 1 02-10-2004 07:23 AM

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

All times are GMT -5. The time now is 05:51 AM.

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