LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-19-2004, 02:45 PM   #1
varunnarang
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: RHL 9.0
Posts: 22

Rep: Reputation: 15
Post help GRUB is lost! I need to boot Linux from HardDisk


hi everyone!
I have a little strange problem with me which is as follows:
1. I had a system installed with Windows2000,
2. Then I installed Linux (Red Hat 9.0) on my machine.
3. Everything went right and I was having a boot menu with 2 options of Windows & Linux on it.
4. After some time, as per the ususal behaviour of Windows, it got corrupted and I reinstalled it.
5. Now after the installation I am not able to boot in to the Linux and I can't afford to reinstall it and loose my important data.
Please help me to reconfigure GRUB and restore my boot menu with both options having Linux & Windows.
Please help me. Thanks in advance.
 
Old 11-19-2004, 02:51 PM   #2
obscure-shadow
Member
 
Registered: Nov 2004
Location: Lawrence, Kansas
Distribution: SuSE 10.2 Gentoo Knoppix
Posts: 63

Rep: Reputation: 15
grub has given me nothing but trouble, and the worst part is that it really doesnt tell you what is wrong unless you can get it to actually boot... so what i did was just switch to the lilo bootloader. it is a bit simpler to work with. i just had this same trouble. the only way that i could boot linux was from the disk, and it wouldnt let me boot windows at all, and it woulnt mount my harddrives.
lilo should solv the problem, or at least give you error messages that will tell you what is wrong.

there is also some extensive data on the grub bootloader and fixes and all that here :http://www.linuxquestions.org/questi...5&goto=newpost

just hit search and type in grub, and you'll get a bunch of good stuff..
 
Old 11-19-2004, 02:52 PM   #3
bignerd
Member
 
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98

Rep: Reputation: 15
Make a boot disk for linux.. or use the one you SHOULD have made when you installed.

Boot from boot disk. <-- that should have been obvious.

Then:

# grub-install /dev/hda

Assuming hda is the right drive.

Cake.

-b
 
Old 11-19-2004, 03:06 PM   #4
varunnarang
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: RHL 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the invaluable suggestions.
After issuing the command, do I need to configure GRUB some how or will it work fine enough to DUAL boot my system?
Regards,
Varun Narang.
 
Old 11-19-2004, 03:23 PM   #5
zajelo3
Member
 
Registered: Mar 2004
Location: Central Florida
Distribution: Gentoo & Fedora
Posts: 153

Rep: Reputation: 30
It depends, when you reinstalled windows did you reformat the whole harddrive or just the partition windows was on? If you reformatted the whole drive then your Redhat install is gone and you will have to reinstall Redhat. If you only formatted the windows partition then your Redhat install is fine and your original grub.conf file is fine also, no configuration is necessary.
 
Old 11-19-2004, 05:21 PM   #6
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Rep: Reputation: 15
I have a couple of questions about all this as it happened to me too:
I have MDK 10.1 and I installed M$ winXP (out of need) and I lost my lilo. I booted Knoppix Live CD 3.3 and I tried to make lilo install on the mbr of my /dev/hda and to make it use the files that reside in my /boot partition - boot.img, vmlinuz and so on - and I did not make it.
Q1: How can I make lilo install for another OS than the one that is currently up?

I managed to install Grub for that partition but with the command line.
I managed to make him take my kernel into account and start using it to boot but it gave me a kernel panic. Smth about the root fs.
Q2: is there any way I could have booted using grub?
 
Old 11-19-2004, 06:54 PM   #7
obscure-shadow
Member
 
Registered: Nov 2004
Location: Lawrence, Kansas
Distribution: SuSE 10.2 Gentoo Knoppix
Posts: 63

Rep: Reputation: 15
well.. it would seem to me that you could install lilo with knoppix, and make it so that it will also boot that other stuff, and then just put knoppix on the bottom, it would then be as if you had 2 different versions of linux available to boot as well as windows. i dont belive that you would even need to have knoppix all the time because it would load lilo from the /boot
 
Old 11-20-2004, 09:53 AM   #8
varunnarang
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: RHL 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thnaks for the response zajelo3.

hi engima82!
I got ur problem. Nut I think, if you are using Knoppix Live CD then there is no need to include it as an item in the boot menu and it can boot by itself from the CD ROM Drive.
Rest is about Mandrake Linux, so about that you can boot it from your Bootable Linux CDs or the Floopy that you should have created at the installation time and that too in the rescue mode. This can also be done with the Red Hat Linux. After that you can fix the problem as described above.
I think this can satisfy you.
Have A Nice Time.
 
Old 11-20-2004, 11:09 AM   #9
naren
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
hi

Boot with u r linux first installation cd n then

at boot:

type

"linux rescue"

and at the coming prompt type

"chroot /mnt/sysimage"

now install grub by

"grub-install /dev/hda"

"reboot"

this solves the problem but u r pc now boots in to linux alwys

with no options at the boot up....

For this to take care

"fdisk -l"

at the command prompt

and add the following to u r /etc/grub.conf

title windows
rootnoverify hd(x,y)
chainloader +1
boot

x,y r chosen frm the output frm fdisk -l

take care u have to decrease by 1 the no

Then i think ) u must have restored u r previous grub....
 
Old 11-20-2004, 11:19 AM   #10
naren
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
hi there,

for the previous solution i gave

in the windowz restoration part



rootnoverify (hd0,0)
makeactive
chainloader +1
boot

use this instead of that
 
  


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
HELP: Lost Grub Linux Booter kevingpo Linux - General 6 11-27-2005 04:43 AM
Dual boot problem in Redhat linux 9 (GRUB Lost) cyberguy2 Linux - Software 11 11-20-2005 09:00 AM
boot Linux after harddisk replacement thort Linux - Newbie 10 08-30-2005 09:16 AM
best method to upgrade RH Linux 6.0 harddisk with lilo boot Noorul LQ Suggestions & Feedback 1 08-25-2004 06:32 AM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM

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

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