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...
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.
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
Now the content of the virtual disk will be visible under /vdisk
Now edit the grub.cfg file gksu gedit /vdisk/boot/grub/grub.cfg file and remove all lines above the first “menuentry”.
Done !!!