LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Has anyone tried DriveDroid? (https://www.linuxquestions.org/questions/linux-mobile-81/has-anyone-tried-drivedroid-4175518465/)

Hungry ghost 09-13-2014 10:27 AM

Has anyone tried DriveDroid?
 
Hi guys,

Just tried this little app and it's great. It lets you boot any hybrid iso image on your PC or laptop from your Android device. It's useful to recover your system in case of emergency, or simply to try out and install new distros from your tablet/phone, as you would with a USB key. You can have as many iso images as your device's storage capacity allows and boot the one you need.

Best Android app I've found so far. BTW, requires a rooted device.

windows50plinux50p 09-13-2014 04:04 PM

Yeah.It is also how I reset the password with ntpassreset on a victim's PC

Hungry ghost 09-14-2014 09:42 AM

Didn't know about ntpassreset. Good to know in case of need.

FrozenCow 09-14-2014 03:55 PM

Quote:

Originally Posted by odiseo77 (Post 5237268)
Hi guys,

Just tried this little app and it's great. It lets you boot any hybrid iso image on your PC or laptop from your Android device. It's useful to recover your system in case of emergency, or simply to try out and install new distros from your tablet/phone, as you would with a USB key. You can have as many iso images as your device's storage capacity allows and boot the one you need.

Best Android app I've found so far. BTW, requires a rooted device.

Thanks for the kind words, and spreading the app! Always cool to see DriveDroid mentioned somewhere.

Hungry ghost 09-14-2014 04:37 PM

Quote:

Originally Posted by FrozenCow (Post 5237938)
Thanks for the kind words, and spreading the app! Always cool to see DriveDroid mentioned somewhere.

Are you the developer? Thanks for creating this app! It will spare me burning CDs and dd'ing images into USB keys to try new distros. And it's good to have a set of iso images in my tablet to use in emergencies.

Cheers.

FrozenCow 09-14-2014 05:02 PM

Quote:

Originally Posted by odiseo77 (Post 5238069)
Are you the developer? Thanks for creating this app! It will spare me burning CDs and dd'ing images into USB keys to try new distros. And it's good to have a set of iso images in my tablet to use in emergencies.

Cheers.

Yes, I saw your post through Google Alerts since it mentioned DriveDroid. Good to hear it serves you so well! It's exactly the reason I've initially looked for such an app and finally found a way to built my own ;).

windows50plinux50p 10-17-2014 04:52 PM

Quote:

Originally Posted by FrozenCow (Post 5238077)
Yes, I saw your post through Google Alerts since it mentioned DriveDroid. Good to hear it serves you so well! It's exactly the reason I've initially looked for such an app and finally found a way to built my own ;).

Did you also make Slitaz?

schneidz 10-17-2014 04:59 PM

sounds cool... does it support persistence ?

Hungry ghost 10-17-2014 05:51 PM

Quote:

Originally Posted by schneidz (Post 5255289)
sounds cool... does it support persistence ?

It has a 'Writable USB' option, but I haven't tried it yet. I guess it works with distros that support persistence.

Drakeo 10-18-2014 12:16 AM

is it open source can I read the code mm . Is there anyway I can prove it is ok with out reading the code . If you can read the code all is good.

FrozenCow 10-18-2014 03:40 PM

Quote:

Originally Posted by windows50plinux50p (Post 5255284)
Did you also make Slitaz?

No I haven't. I recommend it to some people because it is such a small download for such great features (great bang for buck ;)).

Quote:

Originally Posted by schneidz (Post 5255289)
sounds cool... does it support persistence ?

Well, your phone becomes a USB drive (or CD drive depending on your phones kernel/rom). If you can make your OS persistent on a USB thumb drive, you can do the same in DriveDroid. Usually you can just install the OS onto the USB disk (just like any other /dev/sdX)

Quote:

Originally Posted by Drakeo (Post 5255428)
is it open source can I read the code mm . Is there anyway I can prove it is ok with out reading the code . If you can read the code all is good.

I haven't open sourced it yet. I'm kindof on the fence on it. Most of what DriveDroid does is call a specific feature of kernel (USB gadget) to let it host a certain image. A lot of the complexity of DriveDroid comes from making it compatible with all phones... if you ignore that and presume your phone is 'normal' then I can explain what DriveDroid does.

1. First it acquires root with:

$ su

2. Then it sets the USB gadget mode to 'mass_storage':

# echo "mass_storage" > /sys/devices/virtual/android_usb/android0/functions

3. Then it hosts an image onto the mass storage device:

# echo "/path/to/your/image.iso > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file

There are a number of details I'm leaving out of this (powering on/off USB, setting USB PID, stuff like that), but these steps are the core of what DriveDroid does on most phones.

schneidz 10-18-2014 05:34 PM

i have a galaxy s2 (unnamed rom). part of the reason i never upgraded is the fones ability to mount as a normal flash drive.

maybe i can get a newer fone and use it to drag-and-drop music and videos without the need for mtp.

FrozenCow 10-18-2014 05:41 PM

Quote:

Originally Posted by schneidz (Post 5255759)
i have a galaxy s2 (unnamed rom). part of the reason i never upgraded is the fones ability to mount as a normal flash drive.

maybe i can get a newer fone and use it to drag-and-drop music and videos without the need for mtp.

Ah, alright. The Galaxy S2 can certainly be used as a USB drive, however Samsung has hardcoded it as a CD drive in their kernel/rom. More information can be found on the DriveDroid-thread on XDA under "USB-drive and CD-drive emulation": http://forum.xda-developers.com/show....php?t=2196707

Basically a patched kernel can be both a CD drive as well as an USB drive. CyanogenMod has a patched kernel for your phone. Check the link for possible other patched kernels.

syg00 10-18-2014 08:24 PM

Looks good - must try it out. Although I alread have a boatload of USDs ... :rolleyes:

hCN 04-01-2016 05:13 AM

Thx
 
Quote:

Originally Posted by FrozenCow (Post 5237938)
Thanks for the kind words, and spreading the app! Always cool to see DriveDroid mentioned somewhere.

Thx for developing drivedroid, that app is one of the best andoid apps i've ever used and it has made my life so much easier many many times! :D


All times are GMT -5. The time now is 01:02 AM.