Restoring Linux – Restoring Grub
If you install Windows on a sytem that has Linux or if you reinstall Windows on dual boot system, the boot loader will be overwritten by Windows Installation.
Good news is that, this does not overwrite the Linux installation, but just the bootloader in the MBR.
Here are the steps to recover your Linux partition:
1. Boot from Linux Installation disk. You need to boot in a special mode called “Linux Rescue”.
2. Depending on the Linux version you may be presented a command prompt or GUI.
If command line, type : linux rescue
If GUI, select: Rescue installed system.
3. chroot /mnt/sysimage
4. cd /sbin
5. grub
6. find /boot/grub/stage1
7. From the list, select the suitable partition that had Grub previsouly installed.
Eg: grub > find /boot/grub/stage1
(hd0,4)
(hd0,5) <————— Assuming that this is the drive, our next command will be
8. root (hd0,5)
9. setup (hd0)
Note : Here (hd0) represents MBR, and it is not a typo
No comments yet.
-
Recent
- How to mount Windows Partition in Linux?
- Adding default route in Linux
- vmap allocation error on Linux
- Importing contacts from another phone onto a Nokia phone
- How to “remote desktop” into a Windows machine from Linux?
- How to overcome a hang in remote PC while using Remote Desktop?
- How to mount Windows shares in Linux?
- How to change Linux runlevel at boot time?
- Ubuntu 9.10 Tricks and Workarounds
- Formatting USB disk under Linux
- How to turn off system bell in Ubuntu?
- Restoring Linux – Restoring Grub
-
Links
-
Archives
- January 2012 (1)
- July 2011 (1)
- March 2011 (1)
- January 2011 (1)
- December 2010 (3)
- November 2010 (1)
- September 2010 (1)
- October 2009 (1)
- July 2009 (1)
- January 2009 (3)
- December 2008 (1)
- November 2008 (3)
-
Categories
-
RSS
Entries RSS
Comments RSS
Leave a comment