FORUMS

Earthquake Early Warning in Your Pocket

Probably all of us reading this have a smartphone in our pocket. For many of us, the … more

Sony: The OEM You Want To Save

In our recent Discuss article, we asked you readers on which OEM you would like to help. While the … more

How to Lock and Protect Your Apps – XDA Xposed Tuesday

The smartphone revolution has passed. Everybody has mobile apps. Some of … more

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years … more

Symlink to external Micro SD

65 posts
Thanks Meter: 4
 
Post Reply Subscribe to Thread Email Thread
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.
 
 
15th February 2014, 09:36 AM |#2  
gee2012's Avatar
Recognized Contributor
Flag Heerlen
Thanks Meter: 3,735
 
More
Quote:
Originally Posted by Jaggions

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.
The Following User Says Thank You to gee2012 For This Useful Post: [ View ]
15th February 2014, 09:48 AM |#3  
Alex240188's Avatar
Senior Member
Flag Hull
Thanks Meter: 689
 
More
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: [ View ]
15th February 2014, 12:06 PM |#4  
danarama's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 18,658
 
More
Quote:
Originally Posted by Alex240188

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).
The Following User Says Thank You to danarama For This Useful Post: [ View ]
15th February 2014, 12:50 PM |#5  
OP Member
Flag Bergamo
Thanks Meter: 4
 
Donate to Me
More
Quote:
Originally Posted by rootSU

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...
15th February 2014, 01:07 PM |#6  
danarama's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 18,658
 
More
Quote:
Originally Posted by Jaggions

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
The Following User Says Thank You to danarama For This Useful Post: [ View ]
15th February 2014, 01:19 PM |#7  
OP Member
Flag Bergamo
Thanks Meter: 4
 
Donate to Me
More
Quote:
Originally Posted by rootSU

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!
15th February 2014, 01:20 PM |#8  
danarama's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 18,658
 
More
No probs

Sent from my Nexus 5 using Tapatalk
15th February 2014, 01:41 PM |#9  
Alex240188's Avatar
Senior Member
Flag Hull
Thanks Meter: 689
 
More
Quote:
Originally Posted by rootSU

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
15th February 2014, 01:45 PM |#10  
danarama's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 18,658
 
More
Yeah its a good app. Use it for games myself

Sent from my Nexus 5 using Tapatalk
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes