LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 09-13-2014, 11:27 AM   #1
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Smile 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.
 
Old 09-13-2014, 05:04 PM   #2
windows50plinux50p
Member
 
Registered: Sep 2014
Location: Murfreesboro,TN
Distribution: Debian,Linux Mint,Ubuntu,Android
Posts: 36
Blog Entries: 1

Rep: Reputation: Disabled
Yeah.It is also how I reset the password with ntpassreset on a victim's PC
 
Old 09-14-2014, 10:42 AM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Didn't know about ntpassreset. Good to know in case of need.
 
Old 09-14-2014, 04:55 PM   #4
FrozenCow
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by odiseo77 View Post
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.
 
Old 09-14-2014, 05:37 PM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by FrozenCow View Post
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.
 
Old 09-14-2014, 06:02 PM   #6
FrozenCow
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by odiseo77 View Post
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 .
 
Old 10-17-2014, 05:52 PM   #7
windows50plinux50p
Member
 
Registered: Sep 2014
Location: Murfreesboro,TN
Distribution: Debian,Linux Mint,Ubuntu,Android
Posts: 36
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by FrozenCow View Post
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?
 
Old 10-17-2014, 05:59 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,289

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
sounds cool... does it support persistence ?
 
Old 10-17-2014, 06:51 PM   #9
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by schneidz View Post
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.
 
1 members found this post helpful.
Old 10-18-2014, 01:16 AM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
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.
 
Old 10-18-2014, 04:40 PM   #11
FrozenCow
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by windows50plinux50p View Post
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 View Post
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 View Post
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.
 
1 members found this post helpful.
Old 10-18-2014, 06:34 PM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,289

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
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.
 
Old 10-18-2014, 06:41 PM   #13
FrozenCow
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
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.

Last edited by FrozenCow; 10-18-2014 at 06:44 PM.
 
1 members found this post helpful.
Old 10-18-2014, 09:24 PM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,397

Rep: Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439Reputation: 3439
Looks good - must try it out. Although I alread have a boatload of USDs ...
 
Old 04-01-2016, 06:13 AM   #15
hCN
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
Talking Thx

Quote:
Originally Posted by FrozenCow View Post
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!
 
  


Reply

Tags
android, boot, iso, linux, rescue


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration