Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,513 Members 51,683 Now Online
XDA Developers Android and Mobile Development Forum

Symlink to external Micro SD

Tip us?
 
Jaggions
Old
#1  
Member - OP
Thanks Meter 4
Posts: 54
Join Date: Nov 2013
Location: Bergamo

 
DONATE TO ME
Default Symlink to external Micro SD

Hi. I'm on a rooted Nexus 5, stock ROM and kernel. I have a Micro USB SD card reader and since I have many GBs of music I'd like to put the music on the SD card (which is mounted on the device using StickMount) and then symlink it to the internal memory so that I can play it using Google Play Music and other apps. How can I do that? Thank you.
About me: theiphonewiki.com/wiki/User:Jaggions
 
gee2012
Old
#2  
gee2012's Avatar
Recognized Contributor
Thanks Meter 2805
Posts: 7,721
Join Date: Jul 2010
Location: Heerlen
Quote:
Originally Posted by Jaggions View Post
Hi. I'm on a rooted Nexus 5, stock ROM and kernel. I have a Micro USB SD card reader and since I have many GBs of music I'd like to put the music on the SD card (which is mounted on the device using StickMount) and then symlink it to the internal memory so that I can play it using Google Play Music and other apps. How can I do that? Thank you.
Look here for info https://www.google.nl/search?q=googl...m=122&ie=UTF-8.
USE Search: /this thread /all threads/Google before posting your question, you`re most likely not the first one having this issue
The Following User Says Thank You to gee2012 For This Useful Post: [ Click to Expand ]
 
Alex240188
Old
#3  
Alex240188's Avatar
Senior Member
Thanks Meter 633
Posts: 1,000
Join Date: May 2010
Location: Hull
The problem is Google play music only looks in the music directory for songs.
Also you cannot create symlinks in the fused sdcard.
You could try the following in a terminal emulator.
(Note you may have to change the following paths as I can't remember the exact path stickmount mounts your device to)
Code:
mount -o bind /sdcard/music/sd /sdcard/usbdisk/sda1
This should create a folder called sd in the music folder which Google play music is looking in. It should be then linked to your mounted storage in stick mount.
But beware this may crash your phone when you remove the card requiring a reboot.

Sent from my Nexus 5 using xda app-developers app
The Following User Says Thank You to Alex240188 For This Useful Post: [ Click to Expand ]
 
rootSU
Old
#4  
rootSU's Avatar
Senior Member
Thanks Meter 9960
Posts: 21,091
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by Alex240188 View Post
mount -o bind /sdcard/music/sd /sdcard/usbdisk/sda1
Have you tested this? The reason I ask is that unless something has changed which I don't know about, this will not be possible. Since 4.2, Google changed how android handles mounts and this is no longer possible with root (root does not have elevated enough permissions).

Hence why I created this script back in the 4.2 days:

http://forum.xda-developers.com/show....php?t=2178863

*Note, I no longer support that script so do NOT use it...

...which in turn lead to this:

http://forum.xda-developers.com/show....php?t=2192122

I myself use FolderMount as it works well and scripts are just a bit too clunky (hence why I ceased working on and supporting my script).

The only issue is you will need to move everything in your current music folder (which foldermount will do nicely for you) so you must always have your external media with you to play music. You cannot simply expand your current folder, its all or nothing (unless you can mount a subfolder of your music directory and music will see that? Not sure, you'll have to test).
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
Jaggions
Old
#5  
Member - OP
Thanks Meter 4
Posts: 54
Join Date: Nov 2013
Location: Bergamo

 
DONATE TO ME
Quote:
Originally Posted by rootSU View Post
Have you tested this? The reason I ask is that unless something has changed which I don't know about, this will not be possible. Since 4.2, Google changed how android handles mounts and this is no longer possible with root (root does not have elevated enough permissions).

Hence why I created this script back in the 4.2 days:

http://forum.xda-developers.com/show....php?t=2178863

*Note, I no longer support that script so do NOT use it...

...which in turn lead to this:

http://forum.xda-developers.com/show....php?t=2192122

I myself use FolderMount as it works well and scripts are just a bit too clunky (hence why I ceased working on and supporting my script).

The only issue is you will need to move everything in your current music folder (which foldermount will do nicely for you) so you must always have your external media with you to play music. You cannot simply expand your current folder, its all or nothing (unless you can mount a subfolder of your music directory and music will see that? Not sure, you'll have to test).
I'm now trying foldermount, but it seems it's moving all my music from the external SD do the internal memory... Then what? Is it supposed to move all the music back to the SD card before unmounting? I can see no point to this...
About me: theiphonewiki.com/wiki/User:Jaggions
 
rootSU
Old
#6  
rootSU's Avatar
Senior Member
Thanks Meter 9960
Posts: 21,091
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by Jaggions View Post
I'm now trying foldermount, but it seems it's moving all my music from the external SD do the internal memory... Then what? Is it supposed to move all the music back to the SD card before unmounting? I can see no point to this...
Sounds like you've done it backwards.

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
Jaggions
Old
#7  
Member - OP
Thanks Meter 4
Posts: 54
Join Date: Nov 2013
Location: Bergamo

 
DONATE TO ME
Quote:
Originally Posted by rootSU View Post
Sounds like you've done it backwards.

Sent from my Nexus 5 using Tapatalk
Woops :P So now it does make sense :P

Well yeah, It works perfectly and it did what I wanted, thank you!
About me: theiphonewiki.com/wiki/User:Jaggions
 
rootSU
Old
#8  
rootSU's Avatar
Senior Member
Thanks Meter 9960
Posts: 21,091
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
No probs

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
Alex240188
Old
#9  
Alex240188's Avatar
Senior Member
Thanks Meter 633
Posts: 1,000
Join Date: May 2010
Location: Hull
Quote:
Originally Posted by rootSU View Post
Have you tested this? The reason I ask is that unless something has changed which I don't know about, this will not be possible. Since 4.2, Google changed how android handles mounts and this is no longer possible with root (root does not have elevated enough permissions).
No I hadn't tested this. I just knew it was an alternative to symlinking which worked on the one x. I didn't realise that they had killed this in 4.2.
I also didn't know about foldermounts which should be a great alternative.

Sent from my Nexus 5 using xda app-developers app
 
rootSU
Old
#10  
rootSU's Avatar
Senior Member
Thanks Meter 9960
Posts: 21,091
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Yeah its a good app. Use it for games myself

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes