Post Reply

[Q] How can I successfully create a folder in the root directory?

OP cobala

28th August 2013, 03:27 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Aug 2013
I want to change the mount location of the SD card from /mnt/sdcard to /storage/sdcard0 and the problem is that the /storage/sdcard0 directories that I created get deleted after rebooting the phone.

I backed up /system/etc/vold.fstab and then changed the SD mount location in vold.fstab to /storage/sdcard0

Phone is already rooted. In es file manager, I changed the root permissions to RW. Created the /storage/sdcard0 folders and even changed the permissions to match those of /mnt/sdcard. Android system deletes the /storage/sdcard0 directories on reboot.

How can I force android not to delete /storage/sdcard0 directories that I created?
13th May 2014, 11:18 PM   |  #2  
MathewCNichols's Avatar
Junior Member
Flag Norwood
Thanks Meter: 0
 
4 posts
Join Date:Joined: Sep 2010
Donate to Me
Quote:
Originally Posted by cobala

I want to change the mount location of the SD card from /mnt/sdcard to /storage/sdcard0 and the problem is that the /storage/sdcard0 directories that I created get deleted after rebooting the phone.

I backed up /system/etc/vold.fstab and then changed the SD mount location in vold.fstab to /storage/sdcard0

Phone is already rooted. In es file manager, I changed the root permissions to RW. Created the /storage/sdcard0 folders and even changed the permissions to match those of /mnt/sdcard. Android system deletes the /storage/sdcard0 directories on reboot.

How can I force android not to delete /storage/sdcard0 directories that I created?

I would like to know the same. I'm trying to create a .ssh folder in the root directory so I can drop my id_rsa private key for SSH access through Terminal emulator. This is the default directory (/.ssh) however, Android doesn't create this directory.

I can create the folder with Cyanogenmod file browser, or recovery with ADB, but on reboot it is deleted.

I know Connectbot is great, I'm just looking for a terminal native SSH option.

*I've found that the root (/) partition of Android is an initrd.img. I'm not sure if I can modify this or not. Perhaps Cyanogenmod could consider adding the .ssh directory in the future for those using terminal emulator to SSH.

---------- Post added at 06:18 PM ---------- Previous post was at 05:53 PM ----------

Quote:
Originally Posted by sonicfrequency

I would like to know the same. I'm trying to create a .ssh folder in the root directory so I can drop my id_rsa private key for SSH access through Terminal emulator. This is the default directory (/.ssh) however, Android doesn't create this directory.

I can create the folder with Cyanogenmod file browser, or recovery with ADB, but on reboot it is deleted.

I know Connectbot is great, I'm just looking for a terminal native SSH option.

*I've found that the root (/) partition of Android is an initrd.img. I'm not sure if I can modify this or not. Perhaps Cyanogenmod could consider adding the .ssh directory in the future for those using terminal emulator to SSH.

A lot to learn!

Here is a similar thread regarding the root file system: http://forum.xda-developers.com/show....php?t=1790941
Last edited by MathewCNichols; 13th May 2014 at 11:05 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Questions and Answers by ThreadRank