Directory Bind possible? - Honor 7 Q&A, Help & Troubleshooting

Hi
I do not have any success for binding from internal sd to external sd.
Anyone who can help me?
Tried folder mount and directory bind.
What ist the right source what the right destination?
Mike
Gesendet von meinem PLK-L01 mit Tapatalk

Code:
mount -obind /source /destination
requires su obviously

sminki said:
Code:
mount -obind /source /destination
requires su obviously
Click to expand...
Click to collapse
sure. Both programs also need root access.
I will try
Gesendet von meinem PLK-L01 mit Tapatalk

mount -obind /storage/sdcard0/Download /storage/sdcard1/Test
Or
mount -obind /sdcard/Download /storage/sdcard1/Test
Does not work.
Mount shows me for both as result:
/data/media /storage/sdcard1/Test sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1023 0 0
Gesendet von meinem PLK-L01 mit Tapatalk

dft601 said:
mount -obind /storage/sdcard0/Download /storage/sdcard1/Test
Or
mount -obind /sdcard/Download /storage/sdcard1/Test
Does not work.
Mount shows me for both as result:
/data/media /storage/sdcard1/Test sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1023 0 0
Gesendet von meinem PLK-L01 mit Tapatalk
Click to expand...
Click to collapse
Hmm, you are correct!
However I tested it and the files in ls /storage/sdcard1/Test are those in the source directory /storage/sdcard0/Download
EDIT:
of course they are, /data/media is /storage/sdcard0 :silly:

Sorry do not really understand.
I do:
mount -obind /storage/emulated/0/Download /storage/sdcard1/Test
Files are on external sd in directory test
Files on internal folder download should go to this directory on external sd
After bind I have in mount:
/data/media /storage/sdcard1/Test sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1023 0 0
ls /storage/emulated/0/Download
Shows 0 files...
And should show files on external sd in directory Test. Right?
Gesendet von meinem PLK-L01 mit Tapatalk

dft601 said:
Sorry do not really understand.
I do:
mount -obind /storage/emulated/0/Download /storage/sdcard1/Test
Files are on external sd in directory test
Files on internal folder download should go to this directory on external sd
After bind I have in mount:
/data/media /storage/sdcard1/Test sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1023 0 0
ls /storage/emulated/0/Download
Shows 0 files...
And should show files on external sd in directory Test. Right?
Gesendet von meinem PLK-L01 mit Tapatalk
Click to expand...
Click to collapse
So you want to use the files that exist on the sdcard (source) as if they were on the internal storage (destination) ? Swap the two directories around in the command.
Code:
mount -obind /storage/sdcard1/Test /storage/emulated/0/Download
I hope I understand what you want to do

Yes that's what I wanted to do. I turned the mount command and you're right. If I use LS command everything is allright but when I use any file commander there does no binding exist.
Gesendet von meinem PLK-L01 mit Tapatalk

dft601 said:
Yes that's what I wanted to do. I turned the mount command and you're right. If I use LS command everything is allright but when I use any file commander there does no binding exist.
Gesendet von meinem PLK-L01 mit Tapatalk
Click to expand...
Click to collapse
Was anyone successfull ? I tried now with 3 apps...
Folder Mount
Directory Bind
Apss2SD
and with the terminal....
when i look at the "mount" there is as result: (tried another folder than download)
/dev/fuse/ /storage/emulated/0/recordings fuse rw,nosuid,nodev,relatime,user:id=1023,group_id=1023,default_permissions,allow_other 0 0
If I have a look afterwards with ls on both directories , I can see the same files ! Good as far.
If I use any file commander, I cannot see !
So I also recognized. If I use the ls command without SU I also cannot see the files in the directory.
Only with super user : ls /storage/emulated/0/recordings (su)
Can you also recognize this behaviour ?
Edit: I just testet after factory reset and no change

As your goal appears to be to use the sdcard as your "internal storage", but the bind is being ignored by applications, you could try a possible easy way out:
"Settings" > "Storage" > "Default location" > "SD Card"
(but you seem an intelligent guy, and probably have already )

? thanks. Yes I have. Problem are the programs which obviously do not know an external sd and use much storage.. Okay.. Android 6 should help....
Gesendet von meinem PLK-L01 mit Tapatalk

Related

[EXPANDSD] Join your external SD with internal SD!

WARN: For developer only.
attachment is the EXPANDSD script.
Why use it?
So many applications use /sdcard for mass data storage(gameloft, navigation...),
but I9100's internal_sd size is limit to 11G, so we need external_sd's space.
But these applications dosen't know how to use external_sd, old method is hack the apk for external_sd, but this will change apk's signature, and need smali/baksmali to work. My method work in system level, don't need change any apk file.
How to use:
1.make expandsd.ownhere dirctory in external_sd root directory.
2.move internal_sd's directory(for example:/gameloft) to expandsd.ownhere
3.run init_expandsd.sh
Theory:
use 'mount --bind' feature, bind external_sd's dir to internal_sd.
Because the sd card using fat32 partition format, the 'ln -s' command does not work, so the "mount --bind" is the only way to dynamically change the directory content.
Hi mate,
Thks for your shares. I have a question. How run init_expandsd.sh?
I tried gscript and init.d, but doesn't seem to be working
woohoo a great dev has come. glad you got here mate! love your work on Desire section.
harrynghiem said:
Hi mate,
Thks for your shares. I have a question. How run init_expandsd.sh?
Click to expand...
Click to collapse
you can try to use terminal emu, just type su then navigate to folder where the script located, then type sh init_expandsd.sh then enter. this might do the trick to execute .sh
dexterdave said:
you can try to use terminal emu, just type su then navigate to folder where the script located, then type sh init_expandsd.sh then enter. this might do the trick to execute .sh
Click to expand...
Click to collapse
Does it work for you?
It's a great idea thanks a lot for your work. I was wondering why ln was not working.
But too bad it does not work for me, i get the following error :
[1] Segmentation fault
Do you have any idea why ?
Thanks again
problems when connecting phone to pc
hi,
tried the "mount --bind" in order to try your script.
works fine. the directory contents is shared between the 2 path's,
but i have a problem when i connect the phone to a pc.
when i try to disconnect, the sdcard and external_sd are not
available anymore until i reboot the phone
note: the commands that i have executed are:
Code:
mkdir /mnt/sdcard/external_sd/foo
echo "test" > /mnt/sdcard/external_sd/foo/test
mkdir /mnt/sdcard/foo
mount --bind /mnt/sdcard/external_sd/foo /mnt/sdcard/foo
Can this script be placed in init.d folder for autorun at boot?
Edit: sorry, already answered above: no, it cannot.
Sent from my GT-P1000 using Tapatalk
Seems abandoned by @ownhere
Sent from my GT-I9100
Idan73 said:
Seems abandoned by @ownhere
Sent from my GT-I9100
Click to expand...
Click to collapse
too bad, it could be very useful..
TheFirstBen said:
It's a great idea thanks a lot for your work. I was wondering why ln was not working.
But too bad it does not work for me, i get the following error :
[1] Segmentation fault
Do you have any idea why ?
Thanks again
Click to expand...
Click to collapse
got the same problem please help
How to use?
ownhere said:
WARN: For developer only.
attachment is the EXPANDSD script.
Why use it?
So many applications use /sdcard for mass data storage(gameloft, navigation...),
but I9100's internal_sd size is limit to 11G, so we need external_sd's space.
But these applications dosen't know how to use external_sd, old method is hack the apk for external_sd, but this will change apk's signature, and need smali/baksmali to work. My method work in system level, don't need change any apk file.
How to use:
1.make expandsd.ownhere dirctory in external_sd root directory.
2.move internal_sd's directory(for example:/gameloft) to expandsd.ownhere
3.run init_expandsd.sh
Theory:
use 'mount --bind' feature, bind external_sd's dir to internal_sd.
Because the sd card using fat32 partition format, the 'ln -s' command does not work, so the "mount --bind" is the only way to dynamically change the directory content.
Click to expand...
Click to collapse
thanks,
this is genius
I'm not using your script (have myself some ux & scripting skills) but did not know about the -bind option on android
Ridiculously simple and efficient
Did it my own way and it works great
Thanks a lot for this
dawabz94 said:
thanks,
this is genius
I'm not using your script (have myself some ux & scripting skills) but did not know about the -bind option on android
Ridiculously simple and efficient
Did it my own way and it works great
Thanks a lot for this
Click to expand...
Click to collapse
Then why not share with us please !
Let us know how you did
Yes I'd like to know another method also.!
Sent from my GT-I9100 using XDA
Chairmansaab said:
Then why not share with us please !
Let us know how you did
Click to expand...
Click to collapse
Hi,
it's very easy indeed, once you got the point.
I do most of my stuff using an "adb shell" session so I'll post here my steps to get it working.
Also I like simple implementation so my script is the strict minimum needed to mount necessary folders
I assume you have a rooted device with working busybox and a kernel that supports /etc/init.d/
I suggest you do the test on a dummy folder before applying on a real folder.
So start by creating a folder called /sdcard/dummy
Do it the way you want , I do it with an "adb shell" session
Code:
cd /sdcard
mkdir dummy
Then copy some files in it (photos for examples)
Code:
cd /sdcard
cd DCIM
cd Camera
cp `ls -1 |tail -5` /sdcard/dummy
From now on, we consider we want to move transparently /sdcard/dummy to the external SD
1. move the folder to the external sd
CAUTION : I'm running a CM9 rom => my external sd is mounted on /mnt/emmc
Standard samsung sdcard mount is /sdcard/external_sd
The path might be different according to your brand and rom
Moving the folder code
Code:
cd /sdcard
mv dummy /mnt/emmc/
2. Create the mount point in the indernal SD
Code:
cd /sdcard
mkdir dummy
3.a Check the mount is successful by manually doing it
Code:
mount --bind /mnt/emmc/dummy /sdcard/dummy
3.b Check you see exactly the same thing on both folders
Both commands should return exactly the same output
Code:
ls -l /sdcard/dummy
Code:
ls -l /mnt/emmc/dummy
If everything is fine, then you're good to go
4. Automate mount at boot time
Create a script in /etc/init.d to automate the mount at boot time
I personally use "vi" but most people prefer graphical UIs, I can't recommend any here, do it your own way
So basically you would go root,remount /system in read/write mode and create the file
Code:
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cd /etc/init.d
vi 90binds
Insert following lines, save and exit
Note that the "sleep 60" is to let the system boot up before mounting partitions (thanks to the initial script shared here)
Code:
#!/system/bin/sh
sleep 60
mount --bind /mnt/emmc/dummy /sdcard/dummy
Change owner and permissions, flush disk cache and remount /system in read only
Code:
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cd /etc/init.d
chown root:shell
chmod 6755 90binds
sync
mount -o remount,ro /dev/block/mmcblk0p9 /system
To check, run
Code:
su
cd /etc/init.d
ls -l 90binds
The output should look like this :
Code:
-rwsr-sr-x 1 root shell [I]0 MMM D HH:MM[/I] 90binds
5. Now you can reboot and check - after reboot - that the mount is done
Both commands should return exactly the same output (always ran in an "adb shell" session)
Code:
ls -l /sdcard/dummy
Code:
ls -l /mnt/emmc/dummy
6. Now you're good to move other folders
Basically, you move the folder to external SD
Create the mount point on the internal SD
Append the mount command in the 90binds script
And that's it
Hope this helps
---------- Post added at 11:09 AM ---------- Previous post was at 11:04 AM ----------
benc88 said:
Yes I'd like to know another method also.!
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
Just posted
Take time to read and understand the idea

[Q] cm-10-20121008-NIGHTLY-p5113.zip - Int. SD unavailable for apps

Hi,
I just installed cm-10-20121008-NIGHTLY-p5113.zip on my GT-P5113. Everything works 100%, but my apps can't access my internal SD. I can browse it with a file manager and I see it's used/total space in settings, but no apps can work with it for some reason. For example, I can load anything from my dropbox. I get an error message saying that my SD is unavailable or full.
I flashed my SGH-I727R and my friends HTC One S on CM10 without any issues...
What am I doing wrong with my tablet?
Thanks
Are partitions that are supposed to be read-write mounted as read-write?
How can I check?
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I copied and pasted the mount cmd in terminal
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:25 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Sent from my GT-P5113 using Tapatalk 2
Is everything working now? If so, have you rebooted? You can probably get some information about how partitions are mounted with:
Code:
cat /proc/mounts
pretty much the same info
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:25 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Sent from my GT-P5113 using Tapatalk 2
Updated to cm10 10-09-2012 for P5110. Same thing...
Sent from my GT-P5110 using Tapatalk 2
I noticed the the sdcard0 folder is owned by "root" and sdcard1 (ext. sd) is owned by "system". I got that info with "ls -la" command. This is why any superuser app can R/W on the internal SD but not "normal" apps. How can I put the proper owner on that mount folder?
Thanks
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
FIXED
I backed up everything, put my original ROM back with CWM. Updated the tablet with kies and did a factory reset in original recovery. Then, I redid the whole process of installing CWM and flashing a custom rom. Now, running on CM10 without any issues. Int SDcard available for all apps.
Sent from my GT-P5113 using Tapatalk 2

[Q] Internal/external sd not mounting [SOLVED]

Hi,
Since my last upgrade of cynaogenmod nighties yesterday on my galaxy s2, my internal AND external sdcard are not mouting anymore
I tried to understand why and I found that my /storage folder was empty. I think it should have been populated by /init.smdk4210.rc script :
Code:
...
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage 0775 system system
mkdir /storage/sdcard0 0775 system system
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
...
I tried to mount /storage/sdcard0, but without success (in fact I am not sure to have the right method).
Extract of /system/etc/vold.fstab
Code:
...
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
...
I thought that
Code:
mount /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 /storage/sdcard0
would have been sufficient, but unfortunately not (I tried with /sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0 to).
I would like to retrieve my internal sdcard content.
Thank you in advance,
Bill
Ok after some investigations it is a known bug from 20130121 cyanogen nighties.
To get back internal sdcard :
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
You can find more information here : http://forum.cyanogenmod.org/topic/63994-cm101-internal-sd-card-dont-mount/
Problem should be solved in future cyanogen nighties release https://github.com/cyanogenmod/android_system_core/commit/7cc503720f1a8a6aa9481c5f9fd4552bc463a501
Thanks for help
Bill
deleted
HELP!
my phone shows up on my computer but only my external sd card shows up, not my internal! help me fix it! ive attached some screenshots. btw, what are you guys using to run that code? (im a noob)
i ran the commands in terminal emulator but after reboot, everything remained the same?
billdangerous said:
Ok after some investigations it is a known bug from 20130121 cyanogen nighties.
To get back internal sdcard :
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
You can find more information here : http://forum.cyanogenmod.org/topic/63994-cm101-internal-sd-card-dont-mount/
Problem should be solved in future cyanogen nighties release https://github.com/cyanogenmod/android_system_core/commit/7cc503720f1a8a6aa9481c5f9fd4552bc463a501
Thanks for help
Bill
Click to expand...
Click to collapse
I have the same problem and would like to get my phone back up and running.
How did you solve it?
I mean, where do I have to write those commands?
I'm a noobie, so please be so kind to explain
Peter.
kreatiir said:
I have the same problem and would like to get my phone back up and running.
How did you solve it?
I mean, where do I have to write those commands?
I'm a noobie, so please be so kind to explain
Peter.
Click to expand...
Click to collapse
If you have adb on your computer (and an usb cable to connect your phone to the computer), type these commands on a terminal window :
Code:
adb root
adb shell
then (as stated in pervious post) :
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
If you do not have adb on your computer, you may download a terminal emulatror application on your android, then type the 2nd block of commands given above.
May the Force be with you !
Erm, if you have the problem with CM10.2 20130821, this solution is sadly not working...
SD card not mounting
I have got a symphony w125 from Bangladesh. It was running afterwards. After 2/3 months I rooted it from androidkothon.com . But after some days I got a notification... "Preparing phone memory
Checking for errors"
I neglected it and thought it'll be fine soon. But it won't. When I opened ES file manager, it showed me SD card unmounted. (Both for internal & external) .I tried my 16 GB m SD card inserting again. but it again showed the same notification . Then I did once "factory reset' and once "clear eMMC". Then also the same thing happened. While running suddenly shows system ui not responding automatically turns off. Then it doesn't start until I open the battery and insert it again. How to get my storage back now...?
sir i have a spreadtrum phone its board is sp6820gb_7620 and cpu id is 8810 cpu frequency is 1ghz and ram is 512mb with mali 300 gpu,
android version is 2.3.6 and kernal version is 2.6.35.7 [email protected] #7, software version is mocordroid2.3.6.w12.20_p20.01_20130715.130506, hardware version is 1.1.0. my problem is that my phone has only 128 mb of internal memory and when i tried to edit vold.fstab to swap its memory with memory card it stopped detecting sd card when turned on but when in recovery mode sd is shown present, i think its very similar to karbonn a1+ in hardware and software part so can you please help me with my phone?
[
Help me bro's please.
I swapped internal memory to sd card using vold.fstab file replacing.And now my int storage n sd card arent mounting ????
using karbonn smart a26 mobile
Internal and external sdcard unmounted
yj121 said:
i ran the commands in terminal emulator but after reboot, everything remained the same?
Click to expand...
Click to collapse
Accidently i formated my internal sd card and external sd card , now i am unable to mount it...
Plz help :angel:
---------- Post added at 05:23 PM ---------- Previous post was at 05:16 PM ----------
shailoo said:
Accidently i formated my internal sd card and external sd card , now i am unable to mount it...
Plz help :angel:
Click to expand...
Click to collapse
I ran all codes and my device is tablet micromax funbook P560....
Plz help
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
Hi, i have this same problem with S3 mini, i can use this same command for my device or i will brick it?
I need mount internal storage, i have 0.00 bytes :/
Thanks!!
Hi
i am new to this and trying to fix my note 1 gt n7000
it was working fine till yesterday and suddenlly the internal memory the sdcard0 stopped
it does not mount and also when i turn the mobile on a pop up comes saying cannot download as not storage available.
there are some important photos in that which i would like to recover.
please help i tried the code mentioned below in terminal emulater but when i type
it says
not found and also for the latter commands it says permission denied.
i have rooted my device.
please help.
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
If you do not have adb on your computer, you may download a terminal emulatror application on your android, then type the 2nd block of commands given above.
May the Force be with you ![/QUOTE]
same problem
yj121 said:
my phone shows up on my computer but only my external sd card shows up, not my internal! help me fix it! ive attached some screenshots. btw, what are you guys using to run that code? (im a noob)
Click to expand...
Click to collapse
I have the same problem. Please help me solve it
its not working for me
billdangerous said:
Hi,
Since my last upgrade of cynaogenmod nighties yesterday on my galaxy s2, my internal AND external sdcard are not mouting anymore
I tried to understand why and I found that my /storage folder was empty. I think it should have been populated by /init.smdk4210.rc script :
Code:
...
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage 0775 system system
mkdir /storage/sdcard0 0775 system system
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
...
I tried to mount /storage/sdcard0, but without success (in fact I am not sure to have the right method).
Extract of /system/etc/vold.fstab
Code:
...
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
...
I thought that
Code:
mount /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 /storage/sdcard0
would have been sufficient, but unfortunately not (I tried with /sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0 to).
I would like to retrieve my internal sdcard content.
Thank you in advance,
Bill
Click to expand...
Click to collapse
i have tried to correct this bug on my ROM tried it hard .
its the only bug i have
so
billdangerous said:
Hi,
Since my last upgrade of cynaogenmod nighties yesterday on my galaxy s2, my internal AND external sdcard are not mouting anymore
I tried to understand why and I found that my /storage folder was empty. I think it should have been populated by /init.smdk4210.rc script :
Code:
...
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage 0775 system system
mkdir /storage/sdcard0 0775 system system
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
...
I tried to mount /storage/sdcard0, but without success (in fact I am not sure to have the right method).
Extract of /system/etc/vold.fstab
Code:
...
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
...
I thought that
Code:
mount /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 /storage/sdcard0
would have been sufficient, but unfortunately not (I tried with /sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0 to).
I would like to retrieve my internal sdcard content.
Thank you in advance,
Bill
Click to expand...
Click to collapse
i know the problem has been solved but...
i had the same issue. what i did was run the command:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
but it only takes effect after a reflash of the rom. after reboot for me, it never fixed and would never mount, but after a clean flash of the rom i was using, it seemed to mount fine. so you must reflash, as reboot does not do anything.
Cannot mount internal sd card
I just flashed my honor 4x with flyme Custom ROM
but now my phone doesn't mount my internal sd card
I tried running these commands on shell using ADB, but it doesn't fix the issue
Pleasr help me out here
Thanks
My phone is a BluLifeOne 2015. One day it stopped booting past the logo so I tried to reflash stock with QFIL to no avail. I no longer can access recovery or OS but I can boot into fastboot and boot into TWRP with the command fastboot boot recovery.img. When I try and format the system it says 0mb and can't mount data, cache or system (argument invalid). The internal storage, data, cache and system are all showing as 0mb and I've tried to change file system on all of them but it does not change the size or give me access to the internal storage. I also tried to flash a zip file but same invalid arguments everytime. Can someone help.

[Q] Emulated internal storage as sdcard

Hello everyone.
Yesterday I received my Huawei Honor 3C and I've installed MIUI ASAP instead of Emotion UI.
Everything's great but I have a problem with double SD Card, I mean: I have my own external card and the phone got his own by emulating it's internal storage as SD Card (it's a symlink to /storage/emulated/0 and it's the same as /storage/emulated/legacy, so this fake sd is eating up my storage, there are also other symlinks in /storage/, /mnt/ and even in root folder there is a symlink sdcard->/storage/emulated/legacy). Phone and apps are correctly seeing external card as SD Card but in reality the internal storage is being used for everything.
Because of this I have only about 5GB available instead of 64GB
Is there any way to terminate the emulation or changing it's target to sdcard2 so that I could use my card correctly? I've tried few things but nothing works. Symlinks are being recreated during boot so editing or deleting them does not work. Editing vold.fstab does nothing because ext is being mounted after boot while the emulation stars while in it - I guess that a proped ini script could do the work.
huaweiproblem said:
Hello everyone.
Yesterday I received my Huawei Honor 3C and I've installed MIUI ASAP instead of Emotion UI.
Everything's great but I have a problem with double SD Card, I mean: I have my own external card and the phone got his own by emulating it's internal storage as SD Card (it's a symlink to /storage/emulated/0 and it's the same as /storage/emulated/legacy, so this fake sd is eating up my storage, there are also other symlinks in /storage/, /mnt/ and even in root folder there is a symlink sdcard->/storage/emulated/legacy). Phone and apps are correctly seeing external card as SD Card but in reality the internal storage is being used for everything.
Because of this I have only about 5GB available instead of 64GB
Is there any way to terminate the emulation or changing it's target to sdcard2 so that I could use my card correctly? I've tried few things but nothing works. Symlinks are being recreated during boot so editing or deleting them does not work. Editing vold.fstab does nothing because ext is being mounted after boot while the emulation stars while in it - I guess that a proped ini script could do the work.
Click to expand...
Click to collapse
First thing I do to troubleshoot that stuff is to copy everything off the internal storage, then format it in recovery, then copy everything back when booted up.
Why do you think that wiping and installing the exact same stuff could help? If you're copying back the same files that were there before - then you're back at starting point.
I've tried also a few different things, mostly trying to modify inid.rc scripts.
I found an interesting script in init.ssd.rc, that is:
Code:
on init
# See storage config details at source.android.com/tech/storage/
# fix non-shell uid process can not access shared-sd
mkdir /mnt/shell 0700 shell shell
chmod 0750 /mnt/shell
chown shell sdcard_rw /mnt/shell
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /mnt/shell/emulated/0 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/sdcard1 0000 system system
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
mount tmpfs tmpfs /storage/emulated mode=0705,uid=1023,gid=1023
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /mnt/shell/emulated/0 /storage/emulated/0
symlink /storage/sdcard1 /mnt/sdcard2
and so I deleted those symlinks, packed up the ramdisk and flashed boot.img with those changes... still nothing, the symlinks are still being recreated every boot.
Damn, what a stupid thing. I've found a solution on 4pda forums. I was trying to do it the complicated way while I had everything in the system settings, in a hidden MIUI menu with some untranslated chinese marks.
Under battery settings there are options in chinese, I just had to choose the fifth chinese one and change the storage options :victory:
huaweiproblem said:
Damn, what a stupid thing. I've found a solution on 4pda forums. I was trying to do it the complicated way while I had everything in the system settings, in a hidden MIUI menu with some untranslated chinese marks.
Under battery settings there are options in chinese, I just had to choose the fifth chinese one and change the storage options :victory:
Click to expand...
Click to collapse
Glad you solved it. The reason I mentioned the wipe and all because it's not an uncommon issue when switching from some stock system to custom ones (like CM, etc) where they change the mount point of external from /sdcard to /sdcard0 and it will just copy everything from /sdcard/ to /sdcard0 and you'll have copies of everything which cuts the storage in half. Case in point: http://forum.xda-developers.com/showthread.php?p=51709918#post51709918

Dual Boot Patcher For Tabs 8.4 and 10.5 wifi

Just a heads up for people using t800, t700 and t705
You can now use dualboot patcher to dual/tri boot your roms so no need to choose between tw and aosp or cm
I have tested and i have confirmed working triple boot
Tw 5.0.2 iromrom, 6.0 aosp dualboot and cm 12.1
I helped the dev get t800 device get supported and i hope everyone enjoys
Download the latest version to start multi booting
https://snapshots.noobdev.io/
This didn't work for me. Not sure what the deal is. I posted my log down below.
[D] Initialized installer for zip file: /mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip
[D] [Installer] Initialization stage
[E] /mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip: Failed to open archive: Failed to open '/mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip'
[E] Failed to read zip file
[D] [Installer] Chroot creation stage
[V] Creating chroot environment
[D] Running command: [ mount, /system ]
Usage: mount [-r] [-w] [-o options] [-t type] device directory
[D] Running command: [ mount, /cache ]
Usage: mount [-r] [-w] [-o options] [-t type] device directory
[D] Running command: [ mount, /data ]
Usage: mount [-r] [-w] [-o options] [-t type] device directory
[D] [Installer] Environment set up stage
[E] /mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip: Failed to open archive: Failed to open '/mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip'
[E] Failed to extract all multiboot files
[V] Failed to extract multiboot files from zip
[D] [Installer] Cleanup stage
[V] Failed to flash zip file.
[V] Destroying chroot environment
[E] Failed to unmount /chroot/system: Invalid argument
[E] Failed to unmount /chroot/cache: Invalid argument
[E] Failed to unmount /chroot/data: Invalid argument
[E] Failed to unmount /chroot/mb/system.img: No such file or directory
[V] The log file was saved as MultiBoot.log on the internal storage.
[V] Finished cleanup
noxarcana said:
This didn't work for me. Not sure what the deal is. I posted my log down below.
[D] Initialized installer for zip file: /mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip
[D] [Installer] Initialization stage
[E] /mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip: Failed to open archive: Failed to open '/mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip'
[E] Failed to read zip file
[D] [Installer] Chroot creation stage
[V] Creating chroot environment
[D] Running command: [ mount, /system ]
Usage: mount [-r] [-w] [-o options] [-t type] device directory
[D] Running command: [ mount, /cache ]
Usage: mount [-r] [-w] [-o options] [-t type] device directory
[D] Running command: [ mount, /data ]
Usage: mount [-r] [-w] [-o options] [-t type] device directory
[D] [Installer] Environment set up stage
[E] /mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip: Failed to open archive: Failed to open '/mnt/shell/emulated/legacy/Download/cm-12.1-20151216-NIGHTLY-klimtwifi_dual.zip'
[E] Failed to extract all multiboot files
[V] Failed to extract multiboot files from zip
[D] [Installer] Cleanup stage
[V] Failed to flash zip file.
[V] Destroying chroot environment
[E] Failed to unmount /chroot/system: Invalid argument
[E] Failed to unmount /chroot/cache: Invalid argument
[E] Failed to unmount /chroot/data: Invalid argument
[E] Failed to unmount /chroot/mb/system.img: No such file or directory
[V] The log file was saved as MultiBoot.log on the internal storage.
[V] Finished cleanup
Click to expand...
Click to collapse
seems like a corrupt download or root problem
if redownloading and rerooting doesnt work
delete /cache/multirom
i have tested cm 12.1 so it definately works
What root method did you use? Everything else requiring root works fine for me. My copy of CM flashes fine in TWRP and I don't have a /cache/multirom folder to delete.
Sent from my SM-T700 using Tapatalk
noxarcana said:
What root method did you use? Everything else requiring root works fine for me. My copy of CM flashes fine in TWRP and I don't have a /cache/multirom folder to delete.
Sent from my SM-T700 using Tapatalk
Click to expand...
Click to collapse
what rom are you using
flash super su from chainfires website
My main rom is stock TW 5.0.2 and rooted (obviously).
Sent from my SM-T700 using Tapatalk
noxarcana said:
My main rom is stock TW 5.0.2 and rooted (obviously).
Sent from my SM-T700 using Tapatalk
Click to expand...
Click to collapse
change directory
seems the app cannot access the zip
Can I have a full tutorial and keep all the data in the apps becuz last time in did not work I was on touchwiz dualbooted to cm12.1 but data of apps was lost help
rookie12 said:
Can I have a full tutorial and keep all the data in the apps becuz last time in did not work I was on touchwiz dualbooted to cm12.1 but data of apps was lost help
Click to expand...
Click to collapse
http://m.youtube.com/watch?v=CpegzNc4ZH0
See this video guide for note 4
Ashwin Prabhunerurkar said:
http://m.youtube.com/watch?v=CpegzNc4ZH0
See this video guide for note 4
Click to expand...
Click to collapse
Thats what i watch but data of apps will be erased
Cant wait for a Dummy proof instruction manual to come out for the 800. Been dying for a VM type tablet method to come out. I am just very newblish when it comes to this as its foreign to me so ill wait for this to grow into something that can be done more simpler for people like myself.
Great effort. !!
Question can I patch a AROMA zip file wanted to upgrade my primary TW IRON ROM
I dont know why people are having such great difficulty with this
Ok to answer a few questions
Patch the rom zip to dual or ext(if you want to install /system on external card)
Data partiton of all roms remains on internal storage
You can simple just patch the zip and then flash that rom from recovery without it wiping your original rom
Dont worry relax and experiment a little bit
From my side i can say this is very safe with very less probability of you ruining your primary rom
Ashwin Prabhunerurkar said:
I dont know why people are having such great difficulty with this
Ok to answer a few questions
Patch the rom zip to dual or ext(if you want to install /system on external card)
Data partiton of all roms remains on internal storage
You can simple just patch the zip and then flash that rom from recovery without it wiping your original rom
Dont worry relax and experiment a little bit
From my side i can say this is very safe with very less probability of you ruining your primary rom
Click to expand...
Click to collapse
Probably because until now no one said we could flash the patched rom in recovery. I've been under the impression that it all had to be done within the app.
Sent from my SM-T700 using Tapatalk
noxarcana said:
Probably because until now no one said we could flash the patched rom in recovery. I've been under the impression that it all had to be done within the app.
Sent from my SM-T700 using Tapatalk
Click to expand...
Click to collapse
just patch all the zips and flash via twrp/cwm
Hope this helps
anybody tried it on t805??? or is there any alternative which works on t805??? plz reply!
Can this be used with the T705 too?
I helped the dev to add support for the T705. Anyone here who wants support for the T805 dm me.
Gesendet von meinem SM-T705 mit Tapatalk
haimann95 said:
I helped the dev to add support for the T705. Anyone here who wants support for the T805 dm me.
Gesendet von meinem SM-T705 mit Tapatalk
Click to expand...
Click to collapse
i have forwaded to the developer hope he adds soon for you guys
Ashwin Prabhunerurkar said:
i have forwaded to the developer hope he adds soon for you guys
Click to expand...
Click to collapse
The T705 is supported now, the only device is the T805. I have a T705, but anyone who has a T805 can direct message me here on Xda and we can help the dev to add support for the T805 too.
Gesendet von meinem SM-T705 mit Tapatalk

Categories

Resources