Post Reply

[APP][2.2+] DriveDroid - host ISO/IMG files to boot your PC from

18th March 2013, 09:26 PM   |  #1  
OP Senior Member
Thanks Meter: 437
 
294 posts
Join Date:Joined: Aug 2009
Donate to Me
DriveDroid allows you to boot your PC from ISO/IMG files stored on your phone. This is ideal for trying Linux distributions or always having a rescue-system on the go... without the need to burn different CDs or USB pendrives. The paid version of DriveDroid does not include ads and helps the developer.

DriveDroid also includes a convenient download menu where you can download USB-images of a number of operating systems from your phone.
You can also create USB-images which allows you to have a blank USB-drive where you can store files in. Another possibility is to use tools on your PC to make a bootable USB-drive out of the blank image that DriveDroid created.

DriveDroid (free)
DriveDroid (paid)

Website
Changelog and downloads
List of distributions available in DriveDroid
Donate
IRC (#drivedroid on chat.freenode.net)

Beta
To participate in the beta join the Google Group here: https://groups.google.com/d/forum/drivedroid
After that join the beta of either DriveDroid (Free) or DriveDroid (Paid)

USB Mass Storage (UMS)
DriveDroid relies on the kernel of Android, in particular the USB Mass Storage (UMS) feature. It allows your phone to act as an USB-drive and have a device (SDcard) or file (ISO/IMG) be used as the content for that emulated drive.

Different Android devices implement this feature differently. Most modern devices do not have UMS enabled by default, but it is supported by the kernel. I've added a option to DriveDroid to change the USB-mode for devices that do not support UMS by default, but no guarantees. I'm getting very mixed reports of devices working and not.

I need all the help I can get to fix this problem. Hopefully we can figure out some method to enable UMS in a stable way.

Hybrid-ISOs
Since most phones only support emulating USB-drives, DriveDroid will not act as an CD-drive. This means that not all ISO files will work, only hybrid-ISOs and IMG files. Hybrid-ISOs are specially crafted ISOs that is used on many modern Linux-distributions. DriveDroids downloadlist contains most of the distributions I've found that do have hybrid-ISOs.

This is just to notify you that you have to convert non-hybrid ISOs by writing the ISO to the emulated USB-drive. You can get a blank emulated USB-drive by creating a blank image through DriveDroids + menu.

Tutorials
Since some popular uses are not available out-of-the-box, I've written a few tutorials on my website that handle some of those uses:
Using Rufus to burn any ISO to DriveDroid *Recommended*
Windows installation on DriveDroid
Install Hirens Boot CD on DriveDroid (download the pre-built Hirens Boot CD image here)
Shrinking images on Linux to save space on your phone

USB-drive and CD-drive emulation
These two modes allow your phone to act as an USB-drive or as an CD-drive. Most devices only support USB-drive emulation. Some devices only support CD-drive emulation. To get both USB-drive as well as CD-drive emulation on your phone you need a patched kernel (see below).

With USB-drive emulation it is possible to boot IMG files and most Linux-based ISO. It also allows you to write to the disk, which allows you to create data-disks as well as install an OS onto the USB drive. The downside of this mode is that some ISOs will not boot, since those ISOs are created for CD-drives.
With CD-rom emulation it is possible to boot all CD-based ISOs.
So, having both USB-drive emulation as well as CD-rom emulation is preferable.

Most CyanogenMod-based kernels have the patches. To get a full list of supported kernels, check CyanogenMods patch reviewing system. To know which kernel your device is using, check out this list.

Other custom kernels that have the right CD-rom patches applied are:
Dorimanx Kernel 8.33 on stock and AOSP/CM roms for the Samsung Galaxy S II (I9100)
Dorimanx Kernel 9.33 on AOSP/CM roms for the Samsung Galaxy S II (I9100)
CyanCore Kernel v2.8.6 by ts1506 for the Samsung Galaxy S (I9000)
BMS Kernel by GideonX for Samsung Galaxy S3 Sprint (d2spr)
BMS Kernel by GideonX for Samsung Galaxy S3 AT&T (d2att)
BMS Kernel by GideonX for Samsung Galaxy S3 Verizon (d2vzw/d2usc)
Patched stock kernel by porear for Samsung Galaxy S3 T-Mobile
GearKernel 1.0.4 and higher for Samsung Captivate
GearKernel 1.0.4 and higher for Samsung Galaxy S i9000 and i9000B
GearKernel 1.0.4 and higher for Samsung Vibrant
DooMKernel for Xperia Z
DooMKernel for Xperia Z1
Devil2 kernel for Samsung Galaxy Note 2 (GT-N7100)
X-NOTE Leonardo Edition for Samsung Galaxy Note 3 (N9005)
ThunderZap for Xperia L
ShinTo for Samsung Galaxy Note 3
Unofficial CyanogenMod-compatible Galaxy Note 3 kernel by unic09
If this list is missing any rom/kernel that has the feature, please contact me.
If your favorite kernel is not supporting this feature, direct the kernel developer to this section.
If you know your way around kernel code and patching, you can get the patches here:
Patch to allow applications (like DriveDroid) to switch between USB and CD-mode
Patch to fix booting from the emulated CD-rom drive (only needed for Android 2.x kernels)
Last edited by FrozenCow; 10th September 2014 at 12:02 AM.
The Following 160 Users Say Thank You to FrozenCow For This Useful Post: [ View ]
18th March 2013, 09:34 PM   |  #2  
OP Senior Member
Thanks Meter: 437
 
294 posts
Join Date:Joined: Aug 2009
Donate to Me
[post for future use]
Last edited by FrozenCow; 14th March 2014 at 03:24 PM.
The Following 21 Users Say Thank You to FrozenCow For This Useful Post: [ View ]
19th March 2013, 12:41 AM   |  #3  
Zoot Allures's Avatar
Senior Member
Thanks Meter: 65
 
245 posts
Join Date:Joined: Jul 2011
Hi,

Now there's a dedicated topic. The place to give a bit of feed-back.

As I already said there, congrats for this idea and most of all, well made and user friendly. Thanks, mate.


It worked with no problem with the Samsung GS3 i9300 on WanamLite JB MB5 v6.2 with Wanam's Adam kernel v1.2 (I don't really know what Wanam cooked there but it works fine) that is MTP/PTP. Note that when DriveDroid's UMS is enabled, both check-boxes in the regular S3 USB panel have no marks (can normaly have only one checked, never none unchecked).
Other people may please confirm if it works on Galaxy S3 i9300 with stock or other custom kernels.


Less surprisingly, it works fine with Samsung GS2 i9100 on (WanamLite JB LSE v14.3) since it always had Mass Storage Transfer, afaik (but I'm not sure), actually on Wanam's v14.3 it has.


Working on pure CD format (like Daemon Tools for Windows or any Virtual CD mount system) would be top notch —TonyHoyle has cooked a kernel patch to enable virtual CD support, there's an idea to dig, Apple dmg should follow.

But for the moment with what is given, creating own disc ISO to fill with whatever you need later on a computer, is really fine. Polishing the angle to reach v1.0.
The Following 4 Users Say Thank You to Zoot Allures For This Useful Post: [ View ]
19th March 2013, 05:55 AM   |  #4  
atrix4g18's Avatar
Senior Member
Thanks Meter: 1,154
 
1,191 posts
Join Date:Joined: Jun 2012
Re: [APP][2.2+] DriveDroid - host ISO/IMG files to boot your PC from
I've always wanted to do this. Thank you.

Sent from my MB860 using xda premium
19th March 2013, 06:08 AM   |  #5  
jzero88's Avatar
Senior Member
Flag Orange County
Thanks Meter: 152
 
1,134 posts
Join Date:Joined: Feb 2010
More
Re: [APP][2.2+] DriveDroid - host ISO/IMG files to boot your PC from
Awesome, just awesome freaking app!!!!!!!!ˇ!!!!!!!!!!!!!

Sent from my Nexus 4 using xda app-developers app
19th March 2013, 11:33 AM   |  #6  
Member
Thanks Meter: 7
 
45 posts
Join Date:Joined: Dec 2010
Re: [APP][2.2+] DriveDroid - host ISO/IMG files to boot your PC from
Hi, again i have 3 questions id like to así:
-is there any test i can do todo verify if a ISO file is compatible?
-what method por spp do you use todo make a compatible file from an ISO format not supported?
-how can check if cdrom feature is working?

Great work!

Enviado desde mi GT-I9000B usando Tapatalk 2
19th March 2013, 12:11 PM   |  #7  
Junior Member
Thanks Meter: 2
 
18 posts
Join Date:Joined: Feb 2007
CD-Rom Support in Existing Kernels
Hi,

I'm using this on my Samsung Galaxy S3 using Omega Rom 43.x and the USB Drive support works great, once I turned off USB Debugging.

Does anyone know if any of the current Kernels for the Samsung Galaxy S3 have the required patches for the CD-rom support as I would also like to boot a couple of CD's from my phone.

Thanks

Kevin.
19th March 2013, 01:48 PM   |  #8  
Magnumutz's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 127
 
1,033 posts
Join Date:Joined: Jun 2010
Donate to Me
More
FrozenCow. does your app now support Note II fully?
19th March 2013, 06:19 PM   |  #9  
arunreturns's Avatar
Senior Member
Flag Chennai
Thanks Meter: 39
 
241 posts
Join Date:Joined: Mar 2012
More
Re: [APP][2.2+] DriveDroid - host ISO/IMG files to boot your PC from
Any how tos. I tried. But it's not working. Not complaining. The app is fine. I know I'm doing something wrong. Any help is appreciated thanks

EDIT:

Got it working. Awesome work dev. Here's a small step by step instructions for those who were noobs like me.

Download slitaz from within the app
Select slitaz iso.
Select S3C1 and F Mass Storage 1
Also enable Usb storage.
Disable ADB (Android Debugging)
Reboot system.
Do the thing with your boot procedure.
And voila, (I hope)


Thanks a lot dev. This really made my day. Keep rocking. All the best for this app. I will follow it closely :thumbup:

EDIT 2: Btw my device S2 9100 on Alliance ROM 7.02

Sent from my GT-I9100 using Tapatalk 2
Last edited by arunreturns; 20th March 2013 at 03:27 AM.
19th March 2013, 08:07 PM   |  #10  
OP Senior Member
Thanks Meter: 437
 
294 posts
Join Date:Joined: Aug 2009
Donate to Me
Quote:
Originally Posted by diosemperador

-is there any test i can do todo verify if a ISO file is compatible?

Yes, check whether the image has a partition table usually gives a very accurate indication that the disk is hybrid. To do this (under Linux) use the command:
Code:
$ fdisk -l myimage.iso
It'll show some info about the disk, but also a partition (usually that partition is marked as being NTFS/FAT, but I think that is part of the trick to make it work on both CD and disk). If it shows no partitions at all you know it probably isn't a hybrid disk.
Quote:
Originally Posted by diosemperador

-what method por spp do you use todo make a compatible file from an ISO format not supported?

For Linux distributions that are build on a recent version on syslinux you can use the tool 'isohybrid' like this:
Code:
$ isohybrid myimage.iso
It'll convert the iso so that it is hybrid. For all other ISOs (that are not build on syslinux) you can you the methods described for that OS to burn it to a USB drive. First create an image in DriveDroid, select the image so that it shows up on your PC as a USB disk, next use the OS-specific tools to burn the iso to the (emulated) disk. It'll be stored on the IMG you made.

You can try this on the official ISO of SliTaz 4 (so not the image form DriveDroids downloadlist). The devs forgot to make version 4 of their OS hybrid, but it does rely on syslinux, so it's possible to convert it using isohybrid. I've done this and put the converted ISO on my server, so that the hybrid-ISO is available in the downloadlist (I've only done this for SliTaz because it is so small and awesome).

If you see that a distro is convertable with isohybrid you should contact those devs. Some of them do not realize that this option is available or what the advantage is. When they distribute their ISO as a hybrid one I can put their distro on DriveDroids downloadlist too.

Quote:
Originally Posted by diosemperador

-how can check if cdrom feature is working?

Ah, well, DriveDroid should show a CD icon next to the USB and locked-USB icons when selecting an image. At the moment only CyanogenMod nightly builds for the i9000 (kernel is named android_kernel_samsung_aries)

Quote:
Originally Posted by diosemperador

Great work!

Thanks!
Quote:
Originally Posted by kjtaylor13

Does anyone know if any of the current Kernels for the Samsung Galaxy S3 have the required patches for the CD-rom support as I would also like to boot a couple of CD's from my phone.

Question to all: if you have applied the patches on their kernel, please post it here so others can try it. As far as I know no-one has put such a kernel/rom online yet, except for CyanogenMod nightly for the Samsung Galaxy S.

Quote:
Originally Posted by arunreturns

Got it working. Awesome work dev. Here's a small step by step instructions for those who were noobs like me.

Download slitaz from within the app
Select slitaz iso.
Select S3C1 and F Mass Storage 1
Also enable Usb storage.
Reboot system.
Do the thing with your boot procedure.
And voila, (I hope)

Add "Disable ADB (Android Debugging)" to those instructions. It seems that's the final thing I need to add to DriveDroid to make it work for a lot of people. I've had several reports some Nexus devices stopped working because I fixed DriveDroid to allow ADB (previous versions just disabled ADB without consent). Some devices work with ADB running too (like my phone), but some just won't boot (although they do show up as USB devices on their OS).
Last edited by FrozenCow; 19th March 2013 at 08:17 PM.

The Following 3 Users Say Thank You to FrozenCow For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
drivedroid, img, linux, ums, usb
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Android Apps and Games by ThreadRank