Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 –  hbdgaf Oct 18 '12 at 0:10
1  
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

1 Answer 1

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

 
discard

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