LinuxQuestions.org
Visit Jeremy's Blog.
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 10-04-2003, 10:14 AM   #1
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Rep: Reputation: 0
Angry GRUB loader messed up


Hi Guys,

I messed up my grub.conf file by writing this line into it

hdc=ide-cd

ever since I did it I can't load grub. I realise how stupid it was but unfortunetaly it's already done so now I have to find the way out of this. When I restart the computer, what it does is it starts loading grub and then it gets stuck. So now I can't get either into my linux or winxp.
I've got laptop without floppy, so advices like boot from floppy are irrelevant in my case. I've got bootable cds of booth linux and winxp, so I can actualy reinstall everything if I wanted to, but I don't want to loose my data on the HDD.

cheers
rf

 
Old 10-04-2003, 10:24 AM   #2
voldermort
Member
 
Registered: Sep 2003
Location: Wales
Distribution: Mandrake 9.1
Posts: 37

Rep: Reputation: 15
What distro are you using?

Most setup disks have a repair feature built into them, I know mine do, and so does winxp. Try booting into winxp, by reinstalling the loader. Then you can edit the boot.ini so it can boot linux.

From another forum:
Add this into boot.ini
c:\bootsect.lnx="YOUR LINUX LABEL"
and then remove /fastdetect

Hope it helps
 
Old 10-04-2003, 10:54 AM   #3
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Original Poster
Rep: Reputation: 0
I'm using RH9. I think problem is that GRUB probably messed up MBR as well. It seems that I'll have to reinstall everything from scratch.
Anyway, many thanks for help.

rf
 
Old 10-04-2003, 12:09 PM   #4
thcmwz
Member
 
Registered: Aug 2003
Distribution: Debian (Woody)
Posts: 36

Rep: Reputation: 15
Use Rescue Disk

You don't need to reinstall!!!
You can use your RH9 Install CD to fix GRUB.
http://www.redhat.com/docs/manuals/l...escuemode.html
 
Old 10-04-2003, 12:21 PM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
wait don't reinstall yet! I am guessing that you installed grub on the mbr, the most common way to install. All you need to do is take that line out, hdc=ide-cd. You have two options, the first being using your boot disk that redhat has you make during installation to get into linux. Then you can easily fix it. If you did not make a boot disk, you can use your first install cd to get into linux. Follow the directions, I think it will ask you to type "linux rescue" at the prompt, then you will need to type one other thing. The only thing about using this method is you will have to use vi (get the directions on the web) to edit grub.conf. once you are in the command line you will enter
#vi /boot/grub/grub.conf then you can edit your file.

THIS CAN BE FIXED, DON'T REFORMAT
 
Old 10-04-2003, 02:46 PM   #6
filkacik
LQ Newbie
 
Registered: Aug 2003
Distribution: rh9
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a lot guys, particularly thank you shanenin, I can see now that you're right. BUT as I was trying all sort of different things I run some commands in dos mode and I saw my MBR was damaged. So I run FIXMBR which as I found later destroyed my NTFS table. So I had to format HDD and when I did it I saw lot of errors, surprisingly enough, not only in my MBR. So I fixed it but on the expens of REFORMATING HDD.

Thank you very much guys for all the advices.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FOR ALL OTHER NEWBIES TO LINUX, NEVER EVER PUT

hdc=ide-cd

LINE INTO YOUR GRUB.CONF FILE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

rf
 
Old 10-04-2003, 04:39 PM   #7
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Rep: Reputation: 15
Don't reformat another time. Use FDISK /MBR right away to repair your MBR. Then proceed with GRUB.
 
  


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
Grub is messed up Hit3k Linux - Software 9 11-22-2005 07:07 AM
Grub loader messed up Sousuke Linux - General 1 08-12-2005 07:07 PM
Please help - messed up boot loader suse 9.1 tw001_tw Linux - Distributions 7 06-28-2004 11:06 PM
SuSe Linux 9.0 Pro, GRUB Loader is messed up. Just asking for some Support plz. v8n3t Linux - Software 1 03-05-2004 03:10 PM
Messed up boot loader help please!!!! jerrit Linux - General 4 02-07-2004 09:16 AM

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

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