Post Reply

Symlink to external Micro SD

OP Jaggions

15th February 2014, 08:43 AM   |  #1  
OP Member
Flag Bergamo
Thanks Meter: 4
 
62 posts
Join Date:Joined: Nov 2013
Donate to Me
More
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,146
 
8,561 posts
Join Date:Joined: Jul 2010
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: 637
 
1,000 posts
Join Date:Joined: May 2010
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  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 12,267
 
23,261 posts
Join Date:Joined: Aug 2010
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 rootSU For This Useful Post: [ View ]
15th February 2014, 12:50 PM   |  #5  
OP Member
Flag Bergamo
Thanks Meter: 4
 
62 posts
Join Date:Joined: Nov 2013
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  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 12,267
 
23,261 posts
Join Date:Joined: Aug 2010
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 rootSU For This Useful Post: [ View ]
15th February 2014, 01:19 PM   |  #7  
OP Member
Flag Bergamo
Thanks Meter: 4
 
62 posts
Join Date:Joined: Nov 2013
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  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 12,267
 
23,261 posts
Join Date:Joined: Aug 2010
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: 637
 
1,000 posts
Join Date:Joined: May 2010
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  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 12,267
 
23,261 posts
Join Date:Joined: Aug 2010
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


Top Threads in Nexus 5 Q&A, Help & Troubleshooting by ThreadRank