Showing posts with label Linux Loader. Show all posts
Showing posts with label Linux Loader. Show all posts

Thursday, July 10, 2008

How to save Linux Boot Loader

Needs to Reinstall Windows & wants to Save Your Linux Boot Loader....
Save your Linux boot loader for windows boot loader (for any linux Operating System)
  1. sudo su root
  2. dd if=/dev/sda of=/media/drive_c/ubuntu7.img count=1 bs=512
  3. now open windows c:\boot.ini file and append following line

    1. c:\ubuntu7.img="Load My Ubuntu boot Loader"
Note:
  • /dev/sda stands for your hard drive it might be different use according to your hard disk.
If you don't know you can get it from the following command
  • sudo su root
  • cfdisk
/media/drive_c is the mounted file system for your Drive C
If you are not able to mount, then use the path ~/home/ubuntu7.img and you can take back up of the file using any USB Device. and then switch to windows and put it into the boot.ini and modify it

  • Tested with Ubuntu 7.10 and 8.04 and Fedora 7, but it will work for any Linux OS
  • How it works? => This will generate a file named ubuntu7.img which contains starting 512 bytes of your hard disk.