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!
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.
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.
cheers,
jdk
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
grub-install /dev/sda
PS: Assuming that your drive is recognized as sda. You should first check it with fdisk -l
Thanks chaitanya.
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.
5.chroot /mnt/sysimage
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
8.reboot
Bingo...!!!
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.
Well done. Happy to know you got it working and found help here. If you think you got help from here, then click the Thumps up icon for all those who helped you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.