FORUMS
Remove All Ads from XDA

[TUT] Sharing data between android and ubuntu touch

336 posts
Thanks Meter: 160
 
By MTN_HD2, Senior Member on 3rd January 2014, 10:06 AM
Post Reply Email Thread
hi there.
one of the issues of dual booting android with ubuntu touch is not being able to access your files in the other OS.

in ubuntu :
the android files (or /sdcard/ content) are located at /userdata/media/0 while your files are at ~/. make a mount point and bind these two directories: (i used adb for this)
Code:
$adb shell
#su - phablet
$cd ~
$sudo mkdir android 
$sudo mount --bind /userdata/media/0 ~/android
$sudo chmod 775 android
$sudo chown phablet:phablet android
after this you'll be able to access your data with ubuntu's file manager
in android :
ubuntu files are at /data/user-data/phablet/ while your files are at /data/media/0. unfortunately only the app that performs the mount (for me terminal emulator) can see the files i don't know why... more info @ http://forum.xda-developers.com/show....php?t=2065856
and as you can see stickmount doesn't support nexus 4. so if you've got something else give it a try
Code:
mount -o bind /data/user-data/phablet /data/media/0/ubuntu
you can always access your ubuntu files using a file explorer with root permissions.

notes:
i've got a nexus 4 but it should work for all supported devices.

Quote:
Originally Posted by Tasssadar

If you're using MultiROM, update to the latest version and replace /userdata/media/0 with /android/realdata/media/0

The Following 3 Users Say Thank You to MTN_HD2 For This Useful Post: [ View ] Gift MTN_HD2 Ad-Free
26th February 2014, 10:08 PM |#2  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by MTN_HD2

hi there.
one of the issues of dual booting android with ubuntu touch is not being able to access your files in the other OS.

in ubuntu :
the android files (or /sdcard/ content) are located at /userdata/media/0 while your files are at ~/. make a mount point and bind these two directories: (i used adb for this)

Code:
$adb shell
#su - phablet
$cd ~
$sudo mkdir android 
$sudo mount --bind /userdata/media/0 ~/android
$sudo chmod 775 android
$sudo chown phablet:phablet android
after this you'll be able to access your data with ubuntu's file manager
in android :
ubuntu files are at /data/user-data/phablet/ while your files are at /data/media/0. unfortunately only the app that performs the mount (for me terminal emulator) can see the files i don't know why... more info @ http://forum.xda-developers.com/show....php?t=2065856
and as you can see stickmount doesn't support nexus 4. so if you've got something else give it a try
Code:
mount -o bind /data/user-data/phablet /data/media/0/ubuntu
you can always access your ubuntu files using a file explorer with root permissions.

notes:
i've got a nexus 4 but it should work for all supported devices.


hi

i have a problem doing this it says that the directory /userdata/media/0 does not exist
line that the command does give out : mount : special device /userdata/media/0 does not exist
btw i am using stable saucy but i will try the newes version now
any suggestions with that ?
28th February 2014, 04:13 PM |#3  
woernsn's Avatar
Senior Member
Flag Schwaz
Thanks Meter: 55
 
More
Quote:
Originally Posted by chris1005

hi

i have a problem doing this it says that the directory /userdata/media/0 does not exist
line that the command does give out : mount : special device /userdata/media/0 does not exist
btw i am using stable saucy but i will try the newes version now
any suggestions with that ?

It's "/host/media/0"
1st March 2014, 11:11 AM |#4  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by woernsn

It's "/host/media/0"

This gave me same error as before
what i forgot to say is that i am using Multiboot for the Teamwin recovery / this app to install Ubuntu Touch
https://play.google.com/store/apps/d...ar.multirommgr

Also i tried to find the folder with cd and ls but i couldnt find it.

but thanks for your support
1st March 2014, 05:37 PM |#5  
woernsn's Avatar
Senior Member
Flag Schwaz
Thanks Meter: 55
 
More
Quote:
Originally Posted by chris1005

This gave me same error as before
what i forgot to say is that i am using Multiboot for the Teamwin recovery / this app to install Ubuntu Touch
https://play.google.com/store/apps/d...ar.multirommgr

Also i tried to find the folder with cd and ls but i couldnt find it.

but thanks for your support

mmmh.. did you try searching for something, that is on the SD with 'find' via adb shell?
helped me

Sent from my Nexus 4 using Tapatalk
1st March 2014, 05:52 PM |#6  
nikwen's Avatar
Senior Member
Thanks Meter: 1,615
 
More
Quote:
Originally Posted by chris1005

This gave me same error as before
what i forgot to say is that i am using Multiboot for the Teamwin recovery / this app to install Ubuntu Touch
https://play.google.com/store/apps/d...ar.multirommgr

Also i tried to find the folder with cd and ls but i couldnt find it.

but thanks for your support

MultiROM uses a different partition layout. Maybe @Tasssadar can tell you more about that. (I would be interested as well.)
1st March 2014, 06:17 PM |#7  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by nikwen

MultiROM uses a different partition layout. Maybe @Tasssadar can tell you more about that. (I would be interested as well.)


Ok thanks you for the support

chris
The Following User Says Thank You to chris1005 For This Useful Post: [ View ] Gift chris1005 Ad-Free
1st March 2014, 06:20 PM |#8  
nikwen's Avatar
Senior Member
Thanks Meter: 1,615
 
More
Quote:
Originally Posted by chris1005

Ok thanks you for the support

chris

If you get any information on that topic, please share it here.
1st March 2014, 06:28 PM |#9  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by nikwen

If you get any information on that topic, please share it here.

I wrote Tasssadar if he has a solution for the problem i will post this
The Following User Says Thank You to chris1005 For This Useful Post: [ View ] Gift chris1005 Ad-Free
1st March 2014, 09:02 PM |#10  
nikwen's Avatar
Senior Member
Thanks Meter: 1,615
 
More
Quote:
Originally Posted by chris1005

I wrote Tasssadar if he has a solution for the problem i will post this

Thank you very much.
1st March 2014, 09:37 PM |#11  
Tasssadar's Avatar
Inactive Recognized Developer
Flag Brno
Thanks Meter: 6,168
 
Donate to Me
More
@chris1005: Install MultiROM v22b, go to recovery -> Advanced -> MultiROM -> List ROMs -> *ubuntu* -> Re-patch init and boot to Ubuntu. The "real" /data will be mounted under /android/realdata, so use folder /android/realdata/media/0/ instead of /userdata/media/0.
The Following 2 Users Say Thank You to Tasssadar For This Useful Post: [ View ] Gift Tasssadar Ad-Free
Post Reply Subscribe to Thread

Tags
android, files, share, ubuntu touch

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes