Grub not loading
hi
i had a dual boot with c: having windows 2k and red hat 9.i later formatted the c drive to install windows me .After installation i found that windows was automatically loading and i was not getting the grub boot loader.I have a linux boot disk however.now when i need to run linux i use the disk.Is there a way of restoring grub so that i get the choose from any one of the os. i think i need to use the grub-install --rootdirectory but where.I get a command not found when i run in a shell. Any idea? jayasurya |
in fedora (almost red hat) to reinstall you boot off the install disk and type "linux rescue" at the prompt. When it loads run these commands
chroot /mnt/sysimage grub-install /dev/hda that will install grub to your MBR add a partition number if you want it on a specific partition. some kernels also support the command "update-grub" to self generate a grub config. |
hi
thanks ,it worked . jayasurya |
Would the same go for lilo?
|
i think to install lilo you just type "lilo" (i typed lilo at a slack command prompt and it seemed to install it)
|
grub not loading in dual boot (rhel 5)
hi
i have dual boot of windows 2000 and rhel 5 later on i formatted c: drive and i installed other windows os now i am not getting the grub boot loader so i tried the linux rescue mode and chroot /mnt/sysimage and grub-install /dev/sda6 (/boot partition) and it is saying that grub installed and any problem fix it and run grub-install if required after that when i try to reboot the system i am getting the message that /dev/initctl file missing like that (these problem are in rhel5) i dont what to do what kind of future action i have to take to rectify this problem kindly help me regarding this issue |
I think you installed grub to /dev/sda6 - but what you probably wanted is to install it in the MBR of /dev/sda
That is most likely the location where windows has written its bootloader - if you want to replace that with grub you need to install grub to /dev/sda - and then add windows to grubs list of systems it should boot. That is probably the way it was before. Windows always overwrites the already installed bootloader with its own... |
All times are GMT -5. The time now is 02:20 PM. |