Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,458 Members 47,644 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
cobala
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Aug 2013
Default [Q] How can I successfully create a folder in the root directory?

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?
 
MathewCNichols
Old
(Last edited by MathewCNichols; 13th May 2014 at 11:05 PM.)
#2  
MathewCNichols's Avatar
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Sep 2010
Location: Norwood

 
DONATE TO ME
Quote:
Originally Posted by cobala View Post
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 View Post
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes