Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
There is a thread on this topic here: http://www.linuxquestions.org/questi...-linux-735733/
In general it's a good idea to search this site for similar problems and if that doesn't help doing a google before starting a thread. This saves you a lot of time and trouble.
As you will see, installing windows on top of a linux installation is often a cause of trouble. Doing the reverse, installing linux on top of a windows installation is not. You can read all about it in the thread mentioned above.
If you had searched LQ you could have easily got through some similar threads. Your grub has been wiped out and windows has written its own loader.
Boot using RHEL cd to boot to rescue mode.
Once you have a shell type the command
PS: Assuming that your drive is recognized as sda. You should first check it with fdisk -l
As i came to know for recovery the linux i should follow:
1.insert RHEL first cd and press any key to boot from CD
2.at the prompt i should type "linux rescue" and press enter
3.after few seconds and reply no to start network settings
4.at the # prompt i should type chroot /mnt/sysimage
5.grub -install /dev/hda
here i am confusing; what should i type i.e. hda or sda. How do i know that it should be <n>da; i.e. result of fdisk -l
1.inserted RHEL cd 1 in cdrom.
2.boot from CD
3.linux rescue at the command prompt
4.after few seconds; selecting US keyboard and No to network settings i got the prompt.
6.grub -install /dev/hda
When i see fdisk -l there was no entry of sda in the output; so i just hit hda. After 4-5 seconds, i got my prompt again without any error.
7.removed the cd from cdrom
I got the two options as earlier and now both OS are working fine.
I wish to thank you and all of them who replied to my question.