Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.