Temporary fix for Internal SD mount in CM11 - Sony Xperia L

Hello
Finally i found a way to mount sd partition used in 4.2.2(after 2 hours ) on 4.4.2(cm11)...
So this is the way i do it:
Be sure that your checked ADB Debugging in Developer menu,your phone is recognized in ADB and you have rooted your rom.
Run ADB and tipe this:
Code:
adb root
adb shell
mount -o rw -t vfat /dev/block/mmcblk0p32 /mnt/shell/emulated/0
Symlinks will do the rest.
Then go with any android explorer to /sdcard or /storage/sdcard0 and see if all is good (ye,it will be used for internal sd) Now you have full access to your old 4gb sdcard used in 4.2. (And finally you can download asphalt 8 or any other big game )
The only bug i found is Settings>Storage dont show 4gb,but its there.
Work when connect with computer too No problems with Gplay,camera too.
This is temporary fix,so use it till @varun.chitre15 release kernel with the real fix
You need to repeat this steps after every restart
Please test and report
P.S.- Im using CM11 alpha 2 with ThunderZap 4.1 kernel

Didn't worked on PA BETA 6.

I discovered this few days ago, but I had used /sdcard2 as the new mount point to avoid conflicts with the default path.
Instead of using init.d script the correct way of doing this is replacing all references of /data/media and emulated sdcard with the new block.
I will post a new kernel tomorrow here which will fix the internal storage completely on any android 4.4 ROM
Sent from my C2105 using Tapatalk

not working
Not working on CM11 either

varun.chitre15 said:
I discovered this few days ago, but I had used /sdcard2 as the new mount point to avoid conflicts with the default path.
Instead of using init.d script the correct way of doing this is replacing all references of /data/media and emulated sdcard with the new block.
I will post a new kernel tomorrow here which will fix the internal storage completely on any android 4.4 ROM
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
Ye,I used /data/sdcard2 first,but then i try to mount it directly to sdcard0 and that was the place where it worked correct
Will wait for your kernel Good luck with it.
Navneet Suresh said:
Not working on CM11 either
Click to expand...
Click to collapse
Wait for the new kernel from varun

Shivam Kuchhal said:
Didn't worked on PA BETA 6.
Click to expand...
Click to collapse
Navneet Suresh said:
Not working on CM11 either
Click to expand...
Click to collapse
This should work for anyone
1. Create a folder in root say sdcard2
2. Open terminal or shell with root permissions
Then type
Code:
mount -t vfat /dev/block/mmcblk0p32 /sdcard2
Now you can access your true internal storage but only through terminal emulator Here is how
Code:
su
cd sdcard2
ls
This will give you root level access to your storage.
Sent from my C2105 using Tapatalk

Not working
varun.chitre15 said:
This should work for anyone
1. Create a folder in root say sdcard2
2. Open terminal or shell with root permissions
Then type
Code:
mount -t vfat /dev/block/mmcblk0p32 /sdcard2
Now you can access your true internal storage but only through terminal emulator Here is how
Code:
su
cd sdcard2
ls
This will give you root level access to your storage.
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
Not working am unable to create sdcard2 folder with Solid Explorer any other way (not even with terminal explorer)

Navneet Suresh said:
Not working am unable to create sdcard2 folder with Solid Explorer any other way (not even with terminal explorer)
Click to expand...
Click to collapse
I updated OP.Try it and be sure that you phone is recognized in ADB and of course rooted rom

Ok works now
Navneet Suresh said:
Not working am unable to create sdcard2 folder with Solid Explorer any other way (not even with terminal explorer)
Click to expand...
Click to collapse
varun.chitre15 said:
This should work for anyone
1. Create a folder in root say sdcard2
2. Open terminal or shell with root permissions
Then type
Code:
mount -t vfat /dev/block/mmcblk0p32 /sdcard2
Now you can access your true internal storage but only through terminal emulator Here is how
Code:
su
cd sdcard2
ls
This will give you root level access to your storage.
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
siankatabg said:
I updated OP.Try it and be sure that you phone is recognized in ADB
Click to expand...
Click to collapse
Ok works now but only shows in terminal I used this config as I wasn't able to use it directly :
Made a folder in emulated sdcard
Changed the mount point to it
Code:
mount -t vfat /dev/block/mmcblk0p32 /storage/emulated/legacy/sdcard2/
Then
Code:
su
cd sdcard2
ls
It shows in Terminal only as stated by Varun
Nice work :good: @varun.chitre15
EDIT : o.f.c am rooted -_- leave it it worked with a small workaround stated above.

Nice
Dont know why my method not work for you... but i can see all the files with explorer(got picture in op) and its used for internal sd (i can use it from computer too)
But lets all wait for the real fix from varun

hmm
siankatabg said:
Nice
Dont know why my method not work for you... but i can see all the files with explorer(got picture in op) and its used for internal sd (i can use it from computer too)
But lets all wait for the real fix from varun
Click to expand...
Click to collapse
Even if I use your method stated in OP it shows the emulated one it must be a CM11 bug

Navneet Suresh said:
Ok works now but only shows in terminal I used this config as I wasn't able to use it directly :
Made a folder in emulated sdcard
Changed the mount point to it
Code:
mount -t vfat /dev/block/mmcblk0p32 /storage/emulated/legacy/sdcard2/
Then
Code:
su
cd sdcard2
ls
It shows in Terminal only as stated by Varun
Nice work :good: @varun.chitre15
EDIT : o.f.c am rooted -_- leave it it worked with a small workaround stated above.
Click to expand...
Click to collapse
You need to mount the root subsystem as root and then create the folder
Code:
mount -o rw, remount /
mkdir /sdcard2
Sent from my C2105 using Tapatalk

Navneet Suresh said:
Even if I use your method stated in OP it shows the emulated one it must be a CM11 bug
Click to expand...
Click to collapse
This emulated folders are the method used from sony,I only mount the mmcblk0p32 there to use it for internal sd(not for third sd),so when i mount it there,symlinks do all the rest and you can see it in /sdcard,/storage/sdcard0 and so on
P.S.-Dont know why ,but if you mount it with ADB you will see the files with explorer not only with terminal

varun.chitre15 said:
You need to mount the root subsystem as root and then create the folder
Code:
mount -o rw, remount /
mkdir /sdcard2
Sent from my C2105 using Tapatalk
Click to expand...
Click to collapse
siankatabg said:
This emulated folders are the method used from sony,I only mount the mmcblk0p32 there to use it for internal sd(not for third sd),so when i mount it there,symlinks do all the rest and you can see it in /sdcard,/storage/sdcard0 and so on
P.S.-You can mount it with ADB and you will see the files with explorer not only with terminal
Click to expand...
Click to collapse
Ok guys it seems the issue has a temporary fix, @varun.chitre15 I forgot to remount as RW my bad :silly:

Oh man thats really great

Wow!! Finally bug is fixed!! Will be checking for your kernel tomorrow @varun.chitre15
Thank you so much

The fact is you can also access the internal storage using ddms from android sdk

varun.chitre15 said:
The fact is you can also access the internal storage using ddms from android sdk
Click to expand...
Click to collapse
Oh hmm yep. BTW for those who don't know what's DDMS

More progress ...!
Works completely fine as a separate partition. Now you have the 2GB emulated and 4GB true internal storage completely accessible. Bonus right?
Await my tomorrows release. I am also going to release updated CM with some more fixes of others in thread by @#root or a new thread maybe.
But I have got exams from Tuesday. Will try as hard as possible to release everything tomorrow. Finally got this irritating bug fixed
Cheers

varun.chitre15 said:
More progress ...!
Works completely fine as a separate partition. Now you have the 2GB emulated and 4GB true internal storage completely accessible. Bonus right?
Await my tomorrows release. I am also going to release updated CM with some more fixes of others in thread by @#root or a new thread maybe.
But I have got exams from Tuesday. Will try as hard as possible to release everything tomorrow. Finally got this irritating bug fixed
Cheers
Click to expand...
Click to collapse
Oh great i am backing up my data and waiting for you release of cm11 tomorrow

Related

[Q] 3.2 and the MicroSD Card Read-Only

So apparently I have to use my computer or root explorer to write to my SD card since the 3.2 update. Does anyone know how this might be fixed to allow general file managers or applications to take advantage of?
same here....
f'ing moto fail here....this is NOT sd support to me
i have been using file manager HD and it will copy files to & from the sd card and delete from the sd card. it just wont "move" to the sd card.
EDIT- was using root explorer...not the other one.
Did you do anything special since upgrading to #Version three point two? I use the same program and it won't move, copy, or delete.
jase33 said:
i have been using file manager HD and it will copy files to & from the sd card and delete from the sd card. it just wont "move" to the sd card.
Click to expand...
Click to collapse
I can copy from the SD card but not paste to using the same software...this mean its read only
To be clear, I updated using update.zip and now running tiamat kernel, but I'm sure it was read only before I flashed the new kernel
I updated to 3.2 with ota and manually rooted. using stock kernel. write to sd works fine. maybe the method you updated from or the kernel you use is causing an issue.
sdcard
heh i find it amusing:
Real SDCard = /mnt/external1
Same ole crap SDCard = /mnt/sdcard, /sdcard, /data/media, and i bet more if i care to look harder.
jase33 said:
I updated to 3.2 with ota and manually rooted. using stock kernel. write to sd works fine. maybe the method you updated from or the kernel you use is causing an issue.
Click to expand...
Click to collapse
Are u talking about the Sdcard folder or the external1 folder?
I updated via update.zip method
Edit: Attached screenshot of my external1 permission
jase33 said:
i have been using file manager HD and it will copy files to & from the sd card and delete from the sd card. it just wont "move" to the sd card.
Click to expand...
Click to collapse
Moving from one source to another isn't possible. It's a linux/android thing. So that's nothing to worry about.
Remount /mnt/external1 as read/write
Here's what I've done to make /mnt/external1 read/write accessible:
adb shell or any other terminal emulator to get to a shell on the xoom
su to get to the # prompt
umount /mnt/external1
mount -t vfat -o fmask=0000,dmask=0000,rw /dev/block/platform/sdhci-tegra.2/mmcblk0p1 /mnt/external1
That remounts the sdcard without using vold, which is enforcing a mask on the perms.
Now to get this to happen at boot...
Stealyourface said:
Moving from one source to another isn't possible. It's a linux/android thing. So that's nothing to worry about.
Click to expand...
Click to collapse
Yeah I know.....I was just responding simply
Sent from my HD2
Stealyourface said:
Moving from one source to another isn't possible. It's a linux/android thing. So that's nothing to worry about.
Click to expand...
Click to collapse
I move files all the time in Linux, via both command line and file manager. I don't know where you are getting this "Linux/Android can't move files" from.
Given up and revert back to Tiamat 1.1
I reflashed stock and upgraded to 3.1 then 3.2 only to learn that the SD card was not writable within the xoom. I have full confidence that one of the devs will release a mod for 3.2 to get us all the features that we are accustomed to. Until then I've flashed back to Tiamat 1.1.
ekarelis said:
Here's what I've done to make /mnt/external1 read/write accessible:
adb shell or any other terminal emulator to get to a shell on the xoom
su to get to the # prompt
umount /mnt/external1
mount -t vfat -o fmask=0000,dmask=0000,rw /dev/block/platform/sdhci-tegra.2/mmcblk0p1 /mnt/external1
That remounts the sdcard without using vold, which is enforcing a mask on the perms.
Now to get this to happen at boot...
Click to expand...
Click to collapse
This is exactly right. It appears vold is now placing special perms above standard media_rw perms. So, apps without this level of permission can not write to external storage. We will address this in the upcoming Tiamat Rom release.
looking forward to 3.2 cusrom rom
Thanks brd. Very much looking forward to the tiamat 3.2 based rom.
mambomta said:
I move files all the time in Linux, via both command line and file manager. I don't know where you are getting this "Linux/Android can't move files" from.
Click to expand...
Click to collapse
Move a file from your xoom (if you even have one) from internal storage to external. It either won't let you, or it'll get corrupted in the process.
Stealyourface said:
Move a file from your xoom (if you even have one) from internal storage to external. It either won't let you, or it'll get corrupted in the process.
Click to expand...
Click to collapse
My Xoom should arrive tomorrow. If the Xoom is not allowing a move, it is a bug, not a limitation in Linux.

Titanium backup

Does it work for anyone else with the external SD problems?
Tiamat rom 2.0/oc 'ed kernal
Sent from my Xoom using Tapatalk
Motive101 said:
Does it work for anyone else with the external SD problems?
Tiamat rom 2.0/oc 'ed kernal
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
Are you asking if TB is working for any of us, or are you referring to SD card issues?
Could you clarify your question?
If you mean that under stock 3.2 external1 is not writeable by default then yes you may have issues with TB.
Mine was backing up only data to external1 no apps.
There is a thread which shows some adb commands to get external writeable but you have to do it on every boot.
So I'll find that link and post it here. My advise is do that, TB backup and then flash the new 2.0 rom
Edit: right I found something else, now I have not tried this as I don't need to any more but someone has written an app
http://forum.xda-developers.com/showthread.php?t=1173195
Other than that, you can do long hand, what I did
adb shell or any other terminal emulator to get to a shell on the xoom
su to get to the # prompt
umount /mnt/external1 mount -t vfat -o fmask=0000,dmask=0000,rw /dev/block/platform/sdhci- tegra.2/mmcblk0p1 /mnt/external1
Sent from my Xoom using Tapatalk

SDCard and SDCard-ext wrong location

I just installed a new ROM and the SDCARD and SDCard-ext are in the wrong location. They are listed under the root director ( / ) and /storage instead of under /mnt/sdcard
Does it work? You could create a symlink. If that fixed it, put it in a script on bootup.
post-mortem said:
Does it work? You could create a symlink. If that fixed it, put it in a script on bootup.
Click to expand...
Click to collapse
Does it work is a relative question. (wasn't meant to sound wise-a$$). I can access them, but apps do not see them at all. They are looking for the cards in /mnt therefor not finding them.
I changed them in /system/etc/vold.fstab but now it won't boot. The not booting is not an issue, I can fix that, but I don't know how to fix these incorrect paths/
No one else who's using this ROM is having these problems? I say either reflash, create symlinks, or choose another ROM.
post-mortem said:
No one else who's using this ROM is having these problems? I say either reflash, create symlinks, or choose another ROM.
Click to expand...
Click to collapse
Not sure if anyone else is running it. Haven't been able to find a thread on here for it. How do you do symlinks?
mikemikemikexxx said:
Not sure if anyone else is running it. Haven't been able to find a thread on here for it. How do you do symlinks?
Click to expand...
Click to collapse
ln -s target shortcut
See a bit more here.
Make a script in your /system/etc/init.d directory, so these links will be created on every boot.
post-mortem said:
ln -s target shortcut
See a bit more here.
Make a script in your /system/etc/init.d directory, so these links will be created on every boot.
Click to expand...
Click to collapse
From what I have read you cannot use them on FAT.
Why does editing this file not work? I fail to see how Android could do anything other than read the file, provided permissions are the same.
mikemikemikexxx said:
From what I have read you cannot use them on FAT.
Why does editing this file not work? I fail to see how Android could do anything other than read the file, provided permissions are the same.
Click to expand...
Click to collapse
The internal memory is not FAT; typically, only the 1st partition on the SD card is FAT, everything else should be EXT. So, executing ln -s /storage /sd-ext should work (or wherever it's currently being mounted).
post-mortem said:
The internal memory is not FAT; typically, only the 1st partition on the SD card is FAT, everything else should be EXT. So, executing ln -s /storage /sd-ext should work (or wherever it's currently being mounted).
Click to expand...
Click to collapse
I meant the card but ln is not working.
One more thing I am going to try is an ADB pull and push. If that doesn't work I really need some community support.
bump to the front.
Are my questions that complex or that dumb that I get so few replays? /bump
Sent from my XT875 using xda app-developers app
Is there a good reason that you don't want to use another ROM?
Mainly speed and compatibility. I need the offline commands only available in JB. Stock ROM is dead slow and is only ICS. Other custom ROMs were also on the slow side and/or battery hogs.
Sent from my XT875 using xda app-developers app
So, is this right?
FAT partition is currently being mounted as /storage
EXT partition is currently being mounted as /mnt/sdcard
post-mortem said:
So, is this right?
FAT partition is currently being mounted as /storage
EXT partition is currently being mounted as /mnt/sdcard
Click to expand...
Click to collapse
Well the way my phone is laid out is
System (I assume too large so they split it in two which resulted in the below SD-Card)
SD-Card
SD-Card EXT (The actual SD Card) - FAT32
I assume the System and SD-Card are standard Android partition format.
Do you use a file manager on the phone, such as ES File Explorer? Are you familiar with using adb?
Edit: Basically, I'm trying to figure out the exact path of the mounted partitions, and where they're supposed to be mounted.
post-mortem said:
Do you use a file manager on the phone, such as ES File Explorer? Are you familiar with using adb?
Edit: Basically, I'm trying to figure out the exact path of the mounted partitions, and where they're supposed to be mounted.
Click to expand...
Click to collapse
They are 100% supposed to be mounted under: /mnt/sdcard and /mnt/sdcard-ext
Right now they are mounting to: /storage/sdcard and /storage/sdcard-ext
There is also an entry in under root ( /sdcard and /sdcard-ext --- For these two I am booting into stock ROM to see if they are suppose to be directly in root as well, will post up when I know)
Check the scripts in your init.d to see if one of them is mounting the sd partitions under /storage.
I suppose you could also try booting without the sd card in place, and see if those /storage directories still exist. Not sure how much that will tell you, though.
post-mortem said:
Check the scripts in your init.d to see if one of them is mounting the sd partitions under /storage.
I suppose you could also try booting without the sd card in place, and see if those /storage directories still exist. Not sure how much that will tell you, though.
Click to expand...
Click to collapse
The init.d for sure says to load sdcards to /storage . (on this particular ROM only)
I will try without the sdcard as you suggested and let you know. Battery died on me, phone won't boot even when plugged in until at least 10%.
Which script is mounting the sd card to /storage? Is it part of the ROM, or is it something which the dev included in this ROM? I ask in case the ROM expects the sd card to be mounted there.
Regardless, try changing the script to link to /sdcard.

[KERNEL][Test] KitKat [Fixed Internal SD][TWRP flash from Internal SD]

Hello.
I will be short.
This is test kernel with my work from here:
http://forum.xda-developers.com/showpost.php?p=51236354&postcount=41
Kernel is purely stock with fix for deep sleep,TWRP recovery with working flash from internal SD and my internal SDcard fix.
Instructions for flash:
1.Flash kernel with Flashtool or fastboot.
2.Flash modules.zip from recovery
Instructions to fix your SD files location:(to see them in /sdcard and /storage/sdcard0) (you need to have root)
First way is with root explorer:
1.Go to /data/media and move all the files and folders without "legacy,obb,0" to /data/media/0
Second way is with terminal:
1.Just tipe:
Code:
su
cd /data/media
mv !(0|legacy|obb) 0
You need to do this once.
If all went well,you will have your 4gb sd back on place.
Download:
Boot.img -> http://www.mediafire.com/download/emg35kqh8sqj0d1/boot-kk-twrp.img
Modules.zip -> http://www.mediafire.com/download/335zedpjks9i2g6/KitKat+modules.zip
Test and report,please.
Kernel is tested on CM11,but should work on other KitKat roms too.
I am not responsible for bricked devices.Do it at your own risk.
Аll can use my method or ramdisk, just mention me in your thread.
Credits:
@KillerKink - For DeepSleep issue fix
@vishal_android freak - For the great TWRP recovery,link here -> http://forum.xda-developers.com/xpe.../kernel-stock-kernel-twrp-integrated-t2667370
Nice work.
Will the sd internal fix work without flashing the kernel
or should the kernel be there for the commands to work ?
Anyways thanx for your help
The fix lies in ramdisk only or you've done some changes while compiling kernel also?
BTW thanks for one more way fixing storage.
Shivam Kuchhal said:
The fix lies in ramdisk only or you've done some changes while compiling kernel also?
BTW thanks for one more way fixing storage.
Click to expand...
Click to collapse
Just ramdisk changes.
nandroidz said:
Will the sd internal fix work without flashing the kernel
or should the kernel be there for the commands to work ?
Anyways thanx for your help
Click to expand...
Click to collapse
You need to flash it and if you flash other kernel after that you will lose your storage again.
Sent from my C2105 using xda app-developers app
siankatabg said:
Just ramdisk changes.
Sent from my C2105 using xda app-developers app
Click to expand...
Click to collapse
Any drawbacks of this method noticed so far?
Shivam Kuchhal said:
Any drawbacks of this method noticed so far?
Click to expand...
Click to collapse
No.All apps and games working fine for me.Only settings>storage dont show correct space,but this is OS bug i think.I will update this kernel today to use /mnt/media_rw/sdcard0 as mount point and fuse,because with this recovery(for stock rom) we dont need to use /data/media.This way i think there will be no problems to wipe data or format sd at all
siankatabg said:
No.All apps and games working fine for me.Only settings>storage dont show correct space,but this is OS bug i think.I will update this kernel today to use /mnt/media_rw/sdcard0 as mount point and fuse,because with this recovery(for stock rom) we dont need to use /data/media.This way i think there will be no problems to wipe data or format sd at all
Click to expand...
Click to collapse
It looks like I'll wait for your update to merge the fix into my kernel as waiting for 1 day isn't a big deal.
Shivam Kuchhal said:
You've made changes in recovery also?
And it looks like I'll wait for your update to merge the fix into my kernel as waiting for 1 day isn't a big deal.
Click to expand...
Click to collapse
Im done with update i think Now i formated /data and /sdcard survive it Will test sdcard format and will upload it.
For recovery: Im using vishal_android recovery for stock rom.Nothing changed there.
Test kernel 2. Changed mount point and fuse to /mnt/media_rw/sdcard0 ,so now you need to move files from there to /mnt/media_rw/sdcard0/0
If you moved them on the previous kernel you dont need to do that again.This needs to be done once on the first use of my fix.
Download here:
http://www.mediafire.com/download/5ck8z6or1b0r8jg/boot-kk-twrp-2.img
P.S.- Terminal command is same,just use "cd /mnt/media_rw/sdcard0"
I forgot to say that you can wipe /data without problems now.
Thanks bro Great work!
But isnt there a way to mount the internal storage as the 'REAL' internal storage
i mean make it the storage where we install apps and games and place game data etc !
Me_Shazzy said:
Thanks bro Great work!
But isnt there a way to mount the internal storage as the 'REAL' internal storage
i mean make it the storage where we install apps and games and place game data etc !
Click to expand...
Click to collapse
It is mounted as the real sdcard.I'm using it since one week for apps and games without problems.
But don't use this kernel, I got permissions from varun to add my fix to ThunderZap kernel.Go to official TZ kernel thread and you will find link.
Sent from my C2105 using xda app-developers app
siankatabg said:
It is mounted as the real sdcard.I'm using it since one week for apps and games without problems.
But don't use this kernel, I got permissions from varun to add my fix to ThunderZap kernel.Go to official TZ kernel thread and you will find link.
Sent from my C2105 using xda app-developers app
Click to expand...
Click to collapse
Thanks~
siankatabg said:
Test kernel 2. Changed mount point and fuse to /mnt/media_rw/sdcard0 ,so now you need to move files from there to /mnt/media_rw/sdcard0/0
If you moved them on the previous kernel you dont need to do that again.This needs to be done once on the first use of my fix.
Download here:
http://www.mediafire.com/download/5ck8z6or1b0r8jg/boot-kk-twrp-2.img
P.S.- Terminal command is same,just use "cd /mnt/media_rw/sdcard0"
I forgot to say that you can wipe /data without problems now.
Click to expand...
Click to collapse
Can you update first post with updated commands now please? I am trying out this fix in my kernel right now. Thanks.
EDIT:
 @siankatabg
I typed these commands, are they correct?
Code:
su
cd /mnt/media_rw/sdcard0
mv !(0|legacy|obb) 0
Shivam Kuchhal said:
Can you update first post with updated commands now please? I am trying out this fix in my kernel right now. Thanks.
Click to expand...
Click to collapse
I updated this fix in thunderzap kernel again.Moved mount from fstab to init.sony.rc.Here is what you need to add:
on init add this:
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
on fs,after mount_all fstab.sony add this:
# Mount internal SDcard partition.
wait /dev/block/mmcblk0p32
mount vfat /dev/block/mmcblk0p32 /mnt/media_rw/sdcard0 rw wait
and on sdcard service,change them to this:
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /mnt/media_rw/sdcard0 /mnt/shell/emulated
class late_start
disabled
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
Im adding init.sony.rc here,so you can compare it with stock one and see whats changed in better way.
And the commands for terminal are:
su
cd /mnt/media_rw/sdcard0
mv !(0|legacy|obb) 0
P.S.- Just rename the file.
Shivam Kuchhal said:
EDIT:
@siankatabg
I typed these commands, are they correct?
Code:
su
cd /mnt/media_rw/sdcard0
mv !(0|legacy|obb) 0
Click to expand...
Click to collapse
Yes.If you see all your SD files in /sdcard,all is good.
P.S.2- One more thing.You can swap internal and external SD with simple edit on sdcard service:
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /mnt/media_rw/sdcard1 /mnt/shell/emulated
class late_start
disabled
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard1
class late_start
disabled
siankatabg said:
I updated this fix in thunderzap kernel again.Moved mount from fstab to init.sony.rc.
Click to expand...
Click to collapse
I don't want to swap
And I must say you've done an awesome job in this method. Can you tell me for what is the 1.5gb partition is used now? I mean the partition which was previously mounted as sdcard0
Shivam Kuchhal said:
I don't want to swap
And I must say you've done an awesome job in this method. Can you tell me for what is the 1.5gb partition is used now? I mean the partition which was previously mounted as sdcard0
Click to expand...
Click to collapse
For nothing i think./data/media is part of /data,so when now its empty this space will be used for your installed apps,libs and so on in /data.
siankatabg said:
For nothing i think./data/media is part of /data,so when now its empty this space will be used for your installed apps,libs and so on in /data.
Click to expand...
Click to collapse
I need bit of your help here bro.
I'm using this method and I can see my files under sdcard0/0 but the problem is that I copied some data under Android/obb folder for paying a game. After I went to sdcard0 through es file explorer shortcuts, I failed to delete obb folder but when I went to sdcard0 by navigating to mnt/media_rw/sdcard0/0. It deleted successfully. Is there any reason? The game for which I copied the data for also kept force closing. Also when I type those commands that you gave for moving data, they keep giving me errors like TWRP isn't empty and no such file or directory.
Shivam Kuchhal said:
I need bit of your help here bro.
I'm using this method and I can see my files under sdcard0/0 but the problem is that I copied some data under Android/obb folder for paying a game. After I went to sdcard0 through es file explorer shortcuts, I failed to delete obb folder but when I went to sdcard0 by navigating to mnt/media_rw/sdcard0/0. It deleted successfully. Is there any reason? The game for which I copied the data for also kept force closing. Also when I type those commands that you gave for moving data, they keep giving me errors like TWRP isn't empty and no such file or directory.
Click to expand...
Click to collapse
I already stated on how to mount obb directory correctly in TZ kernel thread. Take a look at this post.
http://forum.xda-developers.com/showpost.php?p=51310631&postcount=724
Sent from my Xperia SP using Tapatalk 2

4.4.2 fix internal sd help

i use phantom kernel and AOSPA 4.0 Beta-6 DB-1 i dont fix internal sd pls help me
now internal sd 2gb
taylan08 said:
i use phantom kernel and AOSPA 4.0 Beta-6 DB-1 i dont fix internal sd pls help me
now internal sd 2gb
Click to expand...
Click to collapse
http://forum.xda-developers.com/xperia-l/development/kernel-kitkat-t269004
NEXT TIME, SEARCH OVER THE FORUM, BUT READ THIS THREAD, PLEASE!
I saw it., but I do not understand. trial but did not try to
taylan08 said:
I saw it., but I do not understand. trial but did not try to
Click to expand...
Click to collapse
Have you reboot?
After flashing must reboot once then you have 4gb..follow guide to access internal storage..
I use this method. bit more can you explain (google translate )
1. flash phantom kernel 7
2. system.img
3.userdata.img
4.gapps
5.reboot
6.start up
7.reboot and flash.zip phantom kernel 7 and start up phone but internal sd 2 gb
and
i dont understant this method
Instructions to fix your SD files locationto see them in /sdcard and /storage/sdcard0) (you need to have root)
First way is with root explorer:
1.Go to /data/media and move all the files and folders without "legacy,obb,0" to /data/media/0
Second way is with terminal:
1.Just tipe:
Code:
su
cd /data/media
mv !(0|legacy|obb) 0
You need to do this once.
taylan08 said:
I use this method. bit more can you explain (google translate )
1. flash phantom kernel 7
2. system.img
3.userdata.img
4.gapps
5.reboot
6.start up
7.reboot and flash.zip phantom kernel 7 and start up phone but internal sd 2 gb
and
i dont understant this method
Instructions to fix your SD files locationto see them in /sdcard and /storage/sdcard0) (you need to have root)
First way is with root explorer:
1.Go to /data/media and move all the files and folders without "legacy,obb,0" to /data/media/0
Second way is with terminal:
1.Just tipe:
Code:
su
cd /data/media
mv !(0|legacy|obb) 0
You need to do this once.
Click to expand...
Click to collapse
All that process are in mnt folder...root your phone than you can checked
Mnt folder there are sdcard and 0 folder..op mention to move from sdcard to 0 folder...In 0 folder you'll have another sdcard that you'll paste all file...
Using terminal command is more easier.
So,, the only Bug in KK is Bluetooth?
Sent from my C2105 using XDA Premium 4 mobile app
I tried it a lot times aswell and it do not work....
Edit: I use Paranoid Android AOSPA
passie99 said:
I tried it a lot times aswell and it do not work....
Edit: I use Paranoid Android AOSPA
Click to expand...
Click to collapse
I'm using paranoid aospa beta6[rooted], with thunderzap4.1 storage fixed kernel... nd all is working well...storage 4gb.
taylan08 said:
I use this method. bit more can you explain (google translate )
1. flash phantom kernel 7
2. system.img
3.userdata.img
4.gapps
5.reboot
6.start up
7.reboot and flash.zip phantom kernel 7 and start up phone but internal sd 2 gb
and
i dont understant this method
Instructions to fix your SD files locationto see them in /sdcard and /storage/sdcard0) (you need to have root)
First way is with root explorer:
1.Go to /data/media and move all the files and folders without "legacy,obb,0" to /data/media/0
Second way is with terminal:
1.Just tipe:
Code:
su
cd /data/media
mv !(0|legacy|obb) 0
You need to do this once.
Click to expand...
Click to collapse
My fix is not using /data/media folder to mount SD anymore.
Here you can read what you need to do:
http://forum.xda-developers.com/showpost.php?p=51293864&postcount=720
Also in Phantom kernel thread: (Q: What do I need to do for proper functioning of storage in KitKat kernel?)
http://forum.xda-developers.com/showpost.php?p=46822872&postcount=3
Civic kernel too: (HOW TO DEAL WITH KITKAT STORAGE?)
http://forum.xda-developers.com/xperia-l/development/kernel-civic-1-0-t2557602
:cyclops:
siankatabg said:
My fix is not using /data/media folder to mount SD anymore.
Here you can read what you need to do:
http://forum.xda-developers.com/showpost.php?p=51293864&postcount=720
Also in Phantom kernel thread: (Q: What do I need to do for proper functioning of storage in KitKat kernel?)
http://forum.xda-developers.com/showpost.php?p=46822872&postcount=3
Civic kernel too: (HOW TO DEAL WITH KITKAT STORAGE?)
http://forum.xda-developers.com/xperia-l/development/kernel-civic-1-0-t2557602
:cyclops:
Click to expand...
Click to collapse
I tried every single one but it do not work... when I try it with adb shell, there comes "failed on Android - directory not empty"
what am I doing wrong?
Empty the folder that it claims to be not empty or try to move files using explorer. Not terminal.
Sent from my C2105 using xda app-developers app
[quote name="siankatabg" post=51564843]My fix is not using /data/media folder to mount SD anymore.
Here you can read what you need to do:
http://forum.xda-developers.com/showpost.php?p=51293864&postcount=720
Also in Phantom kernel thread: (Q: What do I need to do for proper functioning of storage in KitKat kernel?)
http://forum.xda-developers.com/showpost.php?p=46822872&postcount=3
Civic kernel too: (HOW TO DEAL WITH KITKAT STORAGE?)
http://forum.xda-developers.com/xperia-l/development/kernel-civic-1-0-t2557602
:cyclops:
Click to expand...
Click to collapse
I tried every single one but it do not work... when I try it with adb shell, there comes "failed on Android - directory not empty"
what am I doing wrong?[/QUOTE]
Let me guess, TWRP folder? Just delete it and try again.
Or just move them manually.
Sent from my C2105
siankatabg said:
I tried every single one but it do not work... when I try it with adb shell, there comes "failed on Android - directory not empty"
what am I doing wrong?
Click to expand...
Click to collapse
Let me guess, TWRP folder? Just delete it and try again.
Or just move them manually.
Sent from my C2105[/QUOTE]
I also did it manually... But it does not work... I moved all files and folders to 0, when I reboot then, nothing had changed. By the way I use newest Thunderzap kernel with internal storage fix
You sure about this?
Try checking by connecting your phone to the laptop. Do you still see only 2 GB?
No. My computer shows 4gb, I don't know whats wrong
Edit:
but in settings of my phone it just show 2gb..
but when I have a look on root explorer, it shows me the internal 4gb storage. but I can´t move apps to it. And file commander shows the 4gb storage as internal storage aswell, and file comander works without root... I am so confused..
and I have to add that the 4gb internal storage is shown as "sdcard" in root explorer. The microsd card is shown there as "sdcard1"..
it shows that way only. As sd card for the internal storage. That is normal. You have access to the 4gb storage now. You can wait till someone gets that up so perfectly for the setting screen.
Sent from my C2105 using xda app-developers app
Okay thanks but I can't move apps to the storage
Sent from my C2105 using xda app-developers app
Welcome!
passie99 said:
Okay thanks but I can't move apps to the storage
Sent from my C2105 using xda app-developers app
Click to expand...
Click to collapse
Use folder mount app from the market and see if that helps!
You can hit that thanks button over there to add up to that thanks you know
Thats a good idea haha, it could have been my own idea I thank you so much !!
Sent from my C2105 using xda app-developers app

Categories

Resources