Pages

Saturday, January 22, 2011

Reinstall Ubuntu after installing Windows

   Long story here.  Ubuntu is well documented and documentation updated. Ubuntu forums are great also. So I had Ubuntu Maverick already installed, and installed Windows XP. It wrote over the mbr. Now, to restoration:
  • I booted using an USB live image
  • Mounted the ext4 partition containing the Ubuntu 10 installation and restored burg:
    sudo burg-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda
    
    (0d104aff-ec8c-44c8-b811-92b993823444 is the label of the mounted Ubuntu root partition. I use burg, so for grub it's the same, except grub-install instead.)
  • To list Windows also in the menu list of grub,
    sudo update-burg 
    
    or is using grub2:
    sudo update-grub2
    
  • I also had to modify /boot/burg/burg.cfg file, because Windows installation was automatically detected on /dev/sda3 (hd0,3), instead of /dev/sda4 ((hd0,4)).
    Note: changes made manually in the burg.cfg file are not persistent after burg-update, because burg-update automatically generates it based on /etc/burg.d files.
Hope I didn't miss any steps. For more detailed information:

No comments:

Post a Comment