Ubuntu – How to take a copy of wubi ubuntu system as it is

Ubuntuwubi

I have installed ubuntu (as a dual boot) using wubi (Windows-based UBuntu Installer) installer for windows, and have been working in linux since then. Now that I have many projects with many dependencies, I'd want to install the same ubuntu to other machines, so that I don't need to install Ubuntu first, and then each and every project and it's dependencies. There is a folder called ubuntu in my windows drive, which was created by wubi and which contains all the ubuntu stuff.

Other machines have only windows 7 installed and have the same configuration.

Is there any way to install the same ubuntu I am using on the other machines ?

Best Answer

this is the method I use...

  1. install Ubuntu using WUBI on target PC and copy your Wubi ROOT.DISK file to the same location in the other PC and replace it.

  2. next you have to use a ubuntu live cd.boot from the live cd then mount the windows partition (if your Ubuntu installation is in windows partition)

    sudo mkdir /win sudo mount /dev/sda1 /win

    Replace sda1 with the appropriate device (a = disk, 1 = partition number), then mount the virtual disk therein (use fdisk -l" or Disk utility for the device number)

    sudo mkdir /vdisk sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

  3. Now the content of the virtual disk will be visible under /vdisk

  4. Now edit the grub.cfg file gksu gedit /vdisk/boot/grub/grub.cfg file and remove all lines above the first “menuentry”.

  5. Done !!!

Related Question