hi friends
on my s5570i, cause the sdcard reader is broken, i have created a virtual sdcard with this step:
1) dd if=/dev/zero of=/data/storage.img bs=1024 count=13000
2) mkfs.vfat /data/storage.img
3) losetup /dev/block/loop0 /data/storage.img
4) ln -s /dev/block/loop0 /dev/block/vold/179:1
5) mount -t vfat -rw -o dirsync,nosuid,nodev,noexec,relatime,fmask=0702,,uid=1000,gid=1015,dmask=0702,allow_utime=0000,utf8 /dev/block/vold/179:1 /mnt/sdcard
and now i see my virtual sdcard with "mount" command so:
/dev/block/vold/179:1 /mnt/sdcard 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
( is this correct? )
now...i can use it, copy file ecc, shot photo but only with ICS camera, and use normally with Root Browser Lite.
My question is.. why like Myfiles.apk or stock Camera.apk don't see the virtual sdcard as a real sdcard ?
What should I do to make it recognize at other app as for example Camera.apk or Myfiles.apk ?
I hope someone can help me
thanks friend
GHIGO973 said:
hi friends
on my s5570i, cause the sdcard reader is broken, i have created a virtual sdcard with this step:
1) dd if=/dev/zero of=/data/storage.img bs=1024 count=13000
2) mkfs.vfat /data/storage.img
3) losetup /dev/block/loop0 /data/storage.img
4) ln -s /dev/block/loop0 /dev/block/vold/179:1
5) mount -t vfat -rw -o dirsync,nosuid,nodev,noexec,relatime,fmask=0702,,uid=1000,gid=1015,dmask=0702,allow_utime=0000,utf8 /dev/block/vold/179:1 /mnt/sdcard
and now i see my virtual sdcard with "mount" command so:
/dev/block/vold/179:1 /mnt/sdcard 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
( is this correct? )
now...i can use it, copy file ecc, shot photo but only with ICS camera, and use normally with Root Browser Lite.
My question is.. why like Myfiles.apk or stock Camera.apk don't see the virtual sdcard as a real sdcard ?
What should I do to make it recognize at other app as for example Camera.apk or Myfiles.apk ?
I hope someone can help me
thanks friend
Click to expand...
Click to collapse
can someone help me ?!? :crying:
wekk..i have changed the mount string so:
mount -t vfat -o rw,dirsync,umask=0000,fmask=0000,uid=1000,gid=1000,dmask=0000,allow_utime=0022 /dev/block/vold/179:1 /mnt/sdcard
and after I send on adb also:
setprop EXTERNAL_STORAGE_DEVICES mounted
now I can use ICS Gallery and i can receive attachments from Whatsapp (before no)
the problem is ...if I don't receive attachment on Whatsapp ICS Gallery don't see the pics on the virtual sd
why this?
can someone help me please? :crying:
thanks all
GHIGO973 said:
hi friends
on my s5570i, cause the sdcard reader is broken, i have created a virtual sdcard with this step:
1) dd if=/dev/zero of=/data/storage.img bs=1024 count=13000
2) mkfs.vfat /data/storage.img
3) losetup /dev/block/loop0 /data/storage.img
4) ln -s /dev/block/loop0 /dev/block/vold/179:1
5) mount -t vfat -rw -o dirsync,nosuid,nodev,noexec,relatime,fmask=0702,,uid=1000,gid=1015,dmask=0702,allow_utime=0000,utf8 /dev/block/vold/179:1 /mnt/sdcard
and now i see my virtual sdcard with "mount" command so:
/dev/block/vold/179:1 /mnt/sdcard 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
( is this correct? )
now...i can use it, copy file ecc, shot photo but only with ICS camera, and use normally with Root Browser Lite.
My question is.. why like Myfiles.apk or stock Camera.apk don't see the virtual sdcard as a real sdcard ?
What should I do to make it recognize at other app as for example Camera.apk or Myfiles.apk ?
I hope someone can help me
thanks friend
Click to expand...
Click to collapse
Hi!
In first place thx for this guide, Id appreciate internal sd, but Im also struggling with the second step w/ error "tmp-mksh: mkfs.vfat: not found" Do you know, where is the problem? Its ecause of different OS or device? Thx in advance for any help.
How to apply the sd swap on the new cm11 of dhiru?
even i have too that doubt, how to use swap sd in Cm 11. i tried swap sd of JB4.2.2 , but it didnt work.
redflash52 said:
How to apply the sd swap on the new cm11 of dhiru?
Click to expand...
Click to collapse
file partioning MTD has changed in CM 11 4.4.. lets wait for our great developers to find out a proper way for swapping memory.
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/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:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
I am currently trying this http://forum.xda-developers.com/showpost.php?p=48876834&postcount=472
so far so good but havent tested it much, i think games run slower..
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
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.
Hello.
I just started messing around with my Z3 and so far followed the tutorial here https://forum.xda-developers.com/z3-compact/general/recovery-root-mm-575-lb-t3418714 to install root and recovery without unlocking the bootloader. Also took the chance to make a backup of the ta partition.
My objective was being able to mount an external ext4 partition so I could move game data and free some internal space. I believe the official kernel doesn't support init.d so I searched and found a script that worked and added it to the bottom of init.qcom.post_boot.sh.
Code:
### Init.d support ###
busybox run-parts /system/etc/init.d/
It's a very simple script that creates /sd-ext folder if it's missing and mounts /dev/block/mmcblk1p2 there
Code:
#!/system/bin/sh
#
# mounts ext partition from sd card
if [ ! -d /sd-ext ];
then
mount -o rw,remount /
install -m 774 -o 1000 -g 1000 -d /sd-ext
mount -o ro,remount /
fi
if [ ! -d /sd-ext ];
then
echo sd-ext not created >> /data/Test.log
else
mount -o rw -t ext4 /dev/block/mmcblk1p2 /sd-ext
fi
It was something that I got on some forum plus some trial and error and some Linux knowledge I have.
It seemed to work. The directory was created and mounted and I was able to move the games there using Titanium Backup.
But after I rebooted, the folder was there and all the data, but the apps don't show up on the apps list. I have to reinstall them...
Am I missing something? How can I fix this?