So, I'm in a situation were I want to install ubuntu in my laptop (currently running windows 8) but I don't happen to have pendrives, CDs or the like available. The only "external" device I have with me is a samsung galaxy s2 with a micro SD-card in it.
Is it possible to use the phone as a pendrive to install ubuntu from it somehow? (without damaging the phone's OS and data)
Best Answer
It is perfectly possible. You can carry multiple live CD images on your phone all the time and use them when needed, but you will need root access to your phone for that. There is an Android app called DriveDroid. DriveDroid allows you to boot your PC from ISO/IMG files stored on your phone. This is ideal for trying Linux distributions without the need to burn different CDs or USB flash drives.
Alternatively, if your phone has mass storage emulation (Android 4 usually has NOT) AND your PC supports UEFI, then, in theory, you can place rootfs and UEFI boot partition on that emulated storage. In theory.