Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im just wondering is it possible to install windows7 or any linux to a loop file from ubuntu. Just reverse of what wubi offers. Loop file has to be on ext partition.

I wish to easily switch to different test os without the hassle of partitioning. Is it possible.?

share|improve this question
not afaik without using something like bartpe which may or may not actually count as windows anyway – RobotHumans Oct 18 '12 at 0:10
Please note that this question has been expanded by the OP into something that we can probably answer and which is definitely on topic. There is, or was, something called Lubi, for installing a GNU/Linux system inside another such system using principles similar to Wubi. Perhaps someone knowledgeable about that could post an answer here. – Eliah Kagan Oct 18 '12 at 16:48

Windows: no, Linux yes. In the case of Ubuntu, it isn't supported by the regular installer, but you can set up the loopback mount yourself and then use debootstrap to initialize the system, then configure a custom grub entry to boot it with the loop= command line argument to point the kernel to the image file.

You may find it easier to set up a virtual machine, or LVM, which makes it a snap to add, remove, and resize partitions without even needing to reboot or unmount anything.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.