I have a HTC One M8. I have a sdcard with 2 partitions. /dev/block/mmcblk1p1 is vfat, /dev/block/mmcblk1p2 is ext4. I've used this to mount the sdcard:
Code:
mount -o remount,rw /
mkdir /storage/sdcard3
mount -o remount,ro /
mount -t ext4 /dev/block/mmcblk1p2 /storage/sdcard3
mkdir /storage/sdcard0/user-data
sdcard /storage/sdcard3 /storage/sdcard0/user-data 1023 1023 &
As root in a terminal, I can read and write to /storage/sdcard0/user-data no problem, however none of the apps can see it, not even file managers with root access. Maybe there is an extra step involved for KitKat? I'm also using the HandleExternalStorage Xposed module, which at least helps with the vfat partition.
Bump.
Related
I've been trying to swap sdcard on kitkat, but no avail. any Ideas about how to swap or even remove the internal sdcard?
been trying to remount with this script but it's black screen with force closes, maybe theres something wrong with it?
Code:
LOG=/data/swap.log
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /storage/emulated/legacy
umount /mnt/shell/emulated
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:33 /mnt/shell/emulated 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:33 /storage/emulated/legacy 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:33 /storage/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:33 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:33 /storage/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:33 /mnt/secure/asec 1>>$LOG 2>>$LOG
I saw some build.prop tweak to swap them(without init.d or any other modification),try to find it in google.
P.S.-I found a way to mount sdcard(ye,4gb partition used in 4.2.2 ) partition throw ADB,but i need help to make init.d script... For now its work correct,no problems with Googleplay(installing apps),camera(save pictures without problems)...
hmm
siankatabg said:
I saw some build.prop tweak to swap them(without init.d or any other modification),try to find it in google.
P.S.-I found a way to mount sdcard(ye,4gb partition used in 4.2.2 ) partition throw ADB,but i need help to make init.d script... For now its work correct,no problems with Googleplay(installing apps),camera(save pictures without problems)...
Click to expand...
Click to collapse
I can help you with init.d script just PM me
siankatabg said:
I saw some build.prop tweak to swap them(without init.d or any other modification),try to find it in google.
P.S.-I found a way to mount sdcard(ye,4gb partition used in 4.2.2 ) partition throw ADB,but i need help to make init.d script... For now its work correct,no problems with Googleplay(installing apps),camera(save pictures without problems)...
Click to expand...
Click to collapse
Make it public pls, system and data filled that emulated storage thing and now i can't store a thing :/
lybxlpsv said:
Make it public pls, system and data filled that emulated storage thing and now i can't store a thing :/
Click to expand...
Click to collapse
Its public
Just go here and read or wait for permanent fix.
http://forum.xda-developers.com/xperia-l/general/help-solution-sd-card-mount-cm11-t2683432
not to bring up an old tread
But would this method work with any phone or tablet with kitkat on it? Because I'm trying to do the same thing
On my previous HTC phones, I was able to mount an ext4 partition simply by doing:
Code:
mount -o remount,rw /
mkdir /storage/sdcard3
mount -o remount,ro /
mount -t ext4 /dev/block/mmcblk1p2 /storage/sdcard3
Problem is, I can only see the files in terminal. None of the other apps can see anything, even with root access. Anyone been able to do this successfully on this phone?
Bump. From the terminal, I see no reason why this shouldn't work. I've mounted with the same options as other partitions, and even used chmod and chown to modify permissions to be identical to those in other mounts. I'm not sure if this is a KitKat issue, or something HTC has done to the ROM itself.
I've been able to do this on both my Incredible and Rezound, both with stock and AOSP ROMs. I'm really stumped why I can't get this working on my M8.
Whelp, I screwed up my filesystem. So I was messing around with commands and tried to remount /data and /cache in rw mode.
I used this command
mount -o remount,rw /
Forgot to finish typing and pressed enter, and it mounted the rootfs into rw mode.
Tried to fix so I ran
mount -o remount,ro /
Probally shouldn't have done that now that I think about it.
It mounted all of the partitions in ro mode including the sdcard.
So I was like lets go to recovery and do a nandroid restore, well it somewhat worked. It fixed all the partitions, I think, except /sdcard
Now when I try to: mount -o remount,ro /sdcard I get an error saying there is no such object.
Same with mount -o remount,ro /storage/emulated/0
Is there a command to fix this or do I need to reflash firmware?
My first gen moto g is stuck in a bootloop, everything i have done so far has not worked.I have tried to flash using fastboot and mfastboot with different stock images in all I get failed to erase partition, remote failure.
The internal storage says it has 0 mb of space. I have Twrp installed and using cat /proc/partitions finds no partitions
~ # ←[6ncat /proc/partitions cat /proc/partitions major minor #blocks name
I have managed to push a Stock rom but can´t flash it with mount data error,mount sd card error, mount system error and mount cache error..
I have tried to use Adb remount but it fails
remount failed: Success
I also tried the following commands
adb shell
su
mount -o rw,remount -t yaffs2 /system
mount -o rw,remount -t yaffs2 /data
mount -o rw,remount -t yaffs2 /cache
And they give the following error
adb shell ~ # ←[6nsu su /sbin/sh: su: not found ~ # ←[6nmount -o rw,remount -t yaffs2 /system mount -o rw,remount -t yaffs2 /system mount: can't find /system in /proc/mounts ~ # ←[6nmount -o rw,remount -t yaffs2 /data mount -o rw,remount -t yaffs2 /data mount: can't find /data in /proc/mounts
In recovery mode, i went to advanced, then Terminal Command, then entered the command df and it listed
Filesystem 1K BLocks Used Available %Use
tmpfs/dev 443852 48 443804 0
tmpfs/tmp 443852 24 443828 0
I have also uploaded a recovery.log
Any help would be greatly appreciated
I have found this xda post with the partition table and sizes of the moto g. http://forum.xda-developers.com/showpost.php?p=48855450&postcount=35
I also found this xda post where they partition the emmc http://forum.xda-developers.com/showthread.php?t=2596521 , if someone could help me identify what should I put in adb.
I think the solution is to reformat using adb but i dont know how.
I have the exact same problem and would love to know if you have fixed it please.
Guys, I'm completely lost in tutorials so pls help me I'm freaking out!
I'm trying to bring to life my mother's HTC Explorer so I installed CM11 (cm-11-20140316-UNOFFICIAL-pico.zip) using some yt tutorial .
It works fine and now I'm trying to increase the phone internal memory. But in vain :'(
I tried:
1) editing build.prop
Code:
persist.sys.vold.switchexternal=1
ro.vold.switchablepair=/storage/sdcard0,/storage/sdcard1
-> no change
2) Trying to execute the StorageSwap.sh
Code:
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:97 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:8 /mnt/media_rw/sdcard1
-> not working! permission denied
Can someone pls share a proved and easy way to make this work??