[Q] Help for mount bind folders - One (M7) Q&A, Help & Troubleshooting

A simple question
---> doesn't work
Code:
mount -o bind /mnt/test /storage/emulated/0/test
--->worked
Code:
mount -o bind /mnt/storage/emulsted/0/test /mnt/test
I just want to extend my internal sdcard via a mounted samba.
It seems that sdcard filesystem is not been supported.
Somebody have any idea ?

Related

SDcard Issue...

Can someone explain how I can delete a file from the SDcard, yet still see it and open it on my drive in Windows? Also, why can't I see files placed on my SDcard from Windows until I reboot my device...
I created this script in attempt to fix the second issue, I think it works okay most of the time... Issue arise only if it can't unmount /sdcard successfully.
Code:
umount -f /dev/block/mmcblk0p1
mount -o rw,noatime,nodiratime,fmask=0000,dmask=0000,iocharset=iso8859-1,flush -t vfat /dev/block/mmcblk0p1 /sdcard

[Q] Mount RFS files

How do I mount RFS files in Ubuntu?
anyone please?
The easy way (under linux):
Code:
$ mkdir newfolder
$ mount -o loop file.rfs newfolder
for more details check this thread http://forum.xda-developers.com/showthread.php?t=751827

[Q]: Read-only filesystem

Hi!
I have rooted my phone (LG Optimus 2X) and mistakenly deleted some files.
I have these files, and want to push them back using adb, put my problem is, that when i try to mount the system in read / write mode using "adb remount" i get this error: "remount faileded: Operation not permitted".
I can't figure out how to fix it, i can pull files etc.
I have also tried to use the adb shell, and copy the files from the internal sdcard, but i'm getting the same error.
Only read-mode.. :/
Anybody who can help, fixing this problem?
If you want to mount /system just write:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Then you're good to go
How to unmount into read-mode only?
Thank! - You saved my day
mrhtml said:
How to unmount into read-mode only?
Thank! - You saved my day
Click to expand...
Click to collapse
A little easier to type...
Mount r/w
Code:
busybox mount -o,remount -rw /system
Mount r/only
Code:
busybox mount -o,remount -r /system
Edit: You shouldn't post stuff like this in dev

[Q] [HELP] Swap sdcard with sdcard-ext

I've edited vold.fstab so that sdcard and sdcard-ext are swapped. But this doesn't work on my XT894. Nothing happens in my case.
Then I found this topic.
In short, you run a script containing:
Code:
busybox mount -o remount,rw /
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
if busybox mount | busybox grep vold/179:97; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
After running this script the result is that both sdcard and scard-ext are in fact pointing to my external 32GB card. So in a way I'm happy. Now I can install games and all navigational maps without any hassle. But, I would like my internal 8GB of storage back. To do so I take it "something" has to be mounted to /mnt/sdcard-ext.
My Linux/Unix is of n00b quality so here I am asking for help :cyclops:
I've tried adding these two lines:
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:1 /mnt/sdcard-ext
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:1 /mnt/sdcard-ext
Hoping 179:1 pounted to the internal sdcard and /mnt/sdcard-ext would mount it at exactly that. But it didn't work.
Can anyone explain to me what these commands do? Why vfat and exfat? Is this done so that you always mount the correct filesystem? And what about the vold/179:xx? Does anyone know which one points to the internal sdcard on an XT894 running ICS?
Trust me, I've Googled all I can. I have tried several options, multiple scripts, but my lack of Linux/Unix knowledge is killing me.
Edit:
When I connect as USB Mass storage I get my internal 8GB back. It is accessible on the laptop. When I switch back to MTP it shows a different directory (maybe due to vold/179:1 !?). After I re-run the script sdcard is back to my external 32GB. For now this will do.
I will update later. Sygic is downloading 2GB of data. After that I will switch back and forth between USB M / MTP with and without running the script.
Edit 2
After I connect as MTP, Internal Storage seems to be pointing to an unknown space. There is an .android directory which I am unable to find on the phone.
When I switch to USBMS (from MTP) it seems to switch back to the original setup, sdcard 8GB and sdcard-ext 32GB.
When I disconnect the USB cable everything is back to normal. But, all I need to do is re-run the script and sdcard points back to my external SD.

Directory bind problem

I want to bind some folders from the internal sdcard to the external. But something doesn't work.
from command line, works flawless,
Code:
$ su
# mount -o bind /storage/ExtSdCard/Music /storage/sdcard0/Music
but when I try to put the line above in a script
script.sh:
Code:
mount -o bind /storage/ExtSdCard/Music /storage/sdcard0/Music
Result:
mount: No such file or directory
I don't know what I'm missing , any idea?
-》 GT-I8190 -》 Tapatalk 2
Sv: Directory bind problem
I'm using the app directory bind, and works fine like this. /sdcard/
Sent thru time and space from my s3mini.

Categories

Resources