LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2003, 05:35 PM   #1
deardron
Member
 
Registered: Dec 2003
Location: Russia/Iceland
Distribution: Ubuntu 6, NetBSD 3.1, Cygwin
Posts: 39

Rep: Reputation: 15
repairing GRUB


After having repaired my Windows it re-wrote MBR where I had had GRUB sector for booting both Linux and Windows. I tried to repair GRUB, run grub-install and it restored GRUB. But then I found that for some unknown reasons my /boot folder didn't have 'vmlinux' and 'initrd.img' (although they must have been there before as I had used GRUB without problems). By then I loaded my RedHat 9.0 from rescue diskette. I copied these files from floppy into boot partition and started the loading process from command line:

1. root (hd1,0)
2. kernel /vmlinux root=/dev/hdb0
3. initrd /initrd.img

At stage 3 it stopped completely. It just didn't see initrd.img. I tried 'find' command but GRUB didn't find it again. I created initrd.img again by 'mkinitrd' but it gave the same result. So far I can't tune my GRUB and am forced to use the rescue diskette. My question is... you must have already guessed it!

Last edited by deardron; 12-28-2003 at 05:39 PM.
 
Old 12-28-2003, 08:19 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Have you tried re-installing the RPMs for the Kernel and GRUB ?
Using the rpm command with --replacepkgs may work.

Last edited by Mathieu; 12-28-2003 at 08:21 PM.
 
Old 12-29-2003, 11:50 AM   #3
deardron
Member
 
Registered: Dec 2003
Location: Russia/Iceland
Distribution: Ubuntu 6, NetBSD 3.1, Cygwin
Posts: 39

Original Poster
Rep: Reputation: 15
I'm feeling this wont help but I will try it, thanks.
I've got a question here - does it matter that my initrd/img file is called like this, without the kernel number like it was before. It still completely strange to me that GRUB shell doesn't see this file whilst it does all other ones.
 
Old 12-29-2003, 02:11 PM   #4
Mikecore
Member
 
Registered: Dec 2003
Distribution: Fedora Core 1
Posts: 35

Rep: Reputation: 15
I just had almost the same problem

I have two 80 gig harddrives
on one I have Gentoo and on the other I have Fedora

after installing Gentoo it loaded a new grub.conf file and since
i forgot to write down my settings for booting Fedora I played hell
getting them back (Mostly cause im a complete noob to linux)

But I did get them

My problem was a little bit better cause i'm running two linux des

you have linux and windows problem with that is you can't
boot windows and then open up your old grub.conf file and see your old settings
thats what i did i booted Gentoo then mounted my second harddrive
that had Fedroa on it and was able to view my old grub.conf file

I don't know what kernel you were using but maybe this will help
if your were using this one

kernel /vmlinuz-2.4.22-1.2135.nptl
initrd /initrd-2.4.22-1.2135.nptl.img

good luck
 
Old 12-29-2003, 02:24 PM   #5
Dapper Dan
Member
 
Registered: May 2003
Location: South Carolina
Distribution: Home: Fedora Core 1, Mepis RC4, Red Hat 6.2. Work: Fedora Core 1&2, Mandrake 9.0.
Posts: 99

Rep: Reputation: 15
I screwed my grub.conf in RH 9 just two days ago, and my home computer became a boat anchor. Luckily I had a copy of Morphix (live cd distro) lying around, so I booted it, mounted hda5 did vi /boot/grub/grub.conf and was able to repair it. Morphix is a great cd rescue for Linux if you need one...

http://morphix.sourceforge.net/modules/news/
 
Old 12-29-2003, 04:11 PM   #6
deardron
Member
 
Registered: Dec 2003
Location: Russia/Iceland
Distribution: Ubuntu 6, NetBSD 3.1, Cygwin
Posts: 39

Original Poster
Rep: Reputation: 15
It's not a question of 'grub.conf' file, I do have it and it stopps when proceeding to initrd.img, so it doesn't change a thing.

You can easily boot from a rescue diskette if you set in your BIOS the first boot sequence to Floppy and then boot your system on the hard drive. Thanks for the link, I see there are dozens of live CD linuxes already, I personally use Knoppix.
 
  


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
urgent help needed fir repairing grub loader testuserx Linux - General 11 05-06-2005 01:18 PM
Repairing KDE 3.3? msie02 Fedora 1 10-17-2004 01:23 AM
Repairing the MBR artistikone Linux - Hardware 3 06-26-2004 06:13 PM
Need help repairing GRUB! Please! DJSpaceMouse Linux - Software 19 05-27-2003 01:44 PM
Repairing? cjnkns Linux - Hardware 4 03-19-2003 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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