• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

fstab on android?

pauld99

Newbie
Can someone please tell me how android devices decide how to mount what, where, on boot?

My specific problem is that my SD card is now being mounted in a different place (I'm using cyanogenmod if that makes a difference, thought I have used it before without having this problem). It matters because there are some apps that cannot see the card, and I need it for music etc.

My first thought was to edit fstab, but there doesn't seem to be one.

Thanks!
 
Look through /init* scripts, and perhaps /fstab* - the latter may be suffixed with qcom for example.

Okay, thanks for that, the problem lies in the init script that for some reason symlinks /sdcard to /storage/emulated/legacy.

I can change the link to /storage/sdcard1 and everything works, till next boot. I have tried editing init.qcom.rc which is where the symlinks are set up to comment out the ones I don't want and insert a new one, but on reboot. this file has been changed back to its original form, so something presumably generates it at boot. Any idea what?

I don't reboot the phone all that often so I could just put an extra script in there to do what I want. but I would like to know what is going on.
 
Back
Top Bottom