Monday, March 7, 2011

Restor Linux booting

If you are in the habit of trying out the various flavours of Linux, then there may be times when the boot sector is lost or overwritten by Windows. Even the SUSE Repair or Rescue option do not help. I've always followed this method to restore booting.
Using the Linux installation CD/DVD, go to Shell and type grub. Then issue the following commands :

#root(hd0,X)                  // where X is one minus the Linux Root Partition number
#setup(hd0)
#quit

After rebooting, you will be back to Linux.