How to mount an ext4 filesystem sdcard and make it accessable for apps? - General Questions and Answers

I had tried "mount -t ext4 /dev/block/*** /storage/sdcardext",but only apps run by root user can access "/storage/sdcardext" and see files in the folder, normal apps just found an empty folder,and can not see any files..
What can I do to solve this problem?android 6 phone.

Related

Can't use ringtones that stored on /sdcard/ringtones

Suddenly I couldn't find any of my ringtones that stored on the /sdcard/ringtones directory from Ringtones Settings.
The /sdcard/ringtones is still avaliable on the sdcard and If I tried to play them throw the mp3 player they works fine.
I found out that the sdcard is mounted as Read-Only and not Read/Write as before. Even if I plug it in to the PC I can't change any of the data on the sdcard only read it.
The latest change that I made few days ago was to store all cache files on the sdcard. I am not sure that this is the reason but it could be.
Does anyone here have any idea why it happened?
install Rings Extended from the market. Open your soundsettings with the program. It will prompt to open with rings extended or standard.
Don't know about the read-only stuff, but you could take a look at the ownership and the rights you have as a user/admin... if all fails.. format?
thanks for the advice, I will try it...
does anyone have more ideas regarding the read only issue?
yes could this be your problem too http://forum.xda-developers.com/showthread.php?t=473256
unfortunately its not the same issue, I have root access to the phone and when I run the mount command this is the output I have for /sdcard
/dev/block/mmcblk0p1 on /sdcard type vfat (ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)
I can't use the camera and the ringtones because of that.
I do able to remount the /sdcard as rw but any time I reboot the phone it become ro.
can you please copy for me the output that you have from mount command on /sdcard/ and the permissions you have on that directory from ls -l command?
zrubi said:
unfortunately its not the same issue, I have root access to the phone and when I run the mount command this is the output I have for /sdcard
/dev/block/mmcblk0p1 on /sdcard type vfat (ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)
I can't use the camera and the ringtones because of that.
I do able to remount the /sdcard as rw but any time I reboot the phone it become ro.
can you please copy for me the output that you have from mount command on /sdcard/ and the permissions you have on that directory from ls -l command?
Click to expand...
Click to collapse
I suspect the fat partition on your sdcard got corrupted. Try a reformat
you were right thanks
I did chkdisk from windows and it did fix the fs.
now its working just fine...

[Q] How to have write permission in some file in /system???

My captivate is already rooted, i use the Astro app to edit files and now im trying to edit the /system/etc/gps.conf, but when i try to save...does not save...i notice this file is read only rights. How can i edit that and save it???
to mount /system as read write, you need to be rooted (obviously) and open up an adb shell.
mount -o rw /dev/block/stl9 /system
depending on what kernel you're running and what filesystem /system is mounted as you *may* need to specify the filesystem ("-t vfat" for rfs, "-t ext4" for voodoo) but I've never had to before.

[research]Another way to extend /data

In almost mobile ,the /data is too small.Can we use extend tf card instead data to get more space?
I try do something:
use a 8GB tf card,format to ext4.
My device is a tv box,is a android OS device.
It mount tf to /mnt/sda/sda1.
I copy /data all file to it: cp /data/* /mnt/sda/sda1 -rf
Set a flag to check the tf is mount when android start.
touch /mnt/sda/sda1/tf
write a script:/system/etc/install-recovery.sh,This file is run when system start.
#!/system/bin/sh
while [ ! -f /mnt/sda/sda1/tf ]
do
sleep 1
done
mount -o bind /mnt/sda/sda1 /data
Android started,it show /data is 8GB.
But when I install app,reboot device ,i can't see the app,but /data/app have the corresponding apk file,/data/data have the corresponding data file,
and /data/dalvik-cache have corresponding dex file.
What problem happend?
android will search installed app when it starting.
Maybe is search before install-recovery.sh running?
which is the search app? is service installd?

[Q] How to mount ext sdcard as read-only in 4.1.2

Hi,
I have a Samsung Galaxy S3 verizon model. Its rooted and running CleanROM 6.0R2 ROM android 4.1.2.
I am trying to accomplish below
1. Mount external sdcard in read-only mode. This is to avoid files on the extsdcard being accidentally deleted.
I have music and some old photos in there. Sometimes my son plays with the phone. I don't want him
to delete all the photos/music on the external sdcard.
I have tried following, but none of then resolved the issue
1. Partition external sd card as ext3 and set all files/dir to read-only permission from ubuntu box.
This didn't work because, phone doesn't recognize the sdcard and partitions on it.
2. Partition extsdcard as vfat and set permission for the files/dir to read-only using root-explorer.
I cannot set permissions for vfat partition.
3. Partition extsdcard as vfat and Mount extsdcard as read-only using "root-explorer".
Doesn't work. Files can be deleted from other apps like Gallery.
4. Partition extsdcard as vfat and mount extsdcard as read-only using terminal and busybox.
This works. But files are owned by root. For group and other, permission is None. Hence
other apps are not able to view the files.
From reading many posts, I conclude, partition has to be vfat for apps like Gallery/video player etc to view it.
Only option to achieve read-only on a vfat partition is to mount it read-only. Based on this, any idea how I can achieve my objective?
Also, once set, what happens is the phone is rebooted? Anyway to repeat the sets at boot time?
Thanks

/system remounting as RO after explicit RW mount

I have used the adb shell to mount my system partition as RW (mount -o remount,rw /system) but it appears to revert to RO. I can't tell exactly why.
I wish to move app updates to /system.
I have used CF Auto Root to root the device.
I installed Titanium Backup Pro.
I have set the app mode to AUTO/indirect as recommended for Samsung devices.
I select Integrate updates to system ROM (or similar, I don't have the screen in front of me). As soon as I do this, the /system partition is remounted as read only (cat /proc/mounts | grep system)
TB just seems to hang. The Gmail base.apk has been copied to /system/apps and the com.google.android.gm-1 folder has been removed from /data/app.
If I don't mount /system as RW the same thing happens.
If I manually copy the app data from /data/app to /system/app and set the permissions the app still fails to function.
Does anyone have any ideas why this is happening?
EDIT:
I cannot load apks via adb - I am told I have a RO file system, even though I can clearly see the /system partition is mounted.

Categories

Resources