5,596,568 Members 40,715 Now Online
XDA Developers Android and Mobile Development Forum

How to use the internal memory

Tip us?
 
alan101
Old
#1  
Junior Member - OP
Thanks Meter 8
Posts: 15
Join Date: Nov 2013
Default How to use the internal memory

1.First crate a 5G disk file called sdfs.img(or other) in the /data/local directory and make it to vfat(or other) file system
su
dd if=/dev/zero of=/data/local/sdfs.img bs=1024 count=5242880
busybox mkfs.vfat /datd/local/sdfs.img

2.Crate a file in /system/etc/init.d to mount it to /mnt/sdcard/mydata(or other) on boot
The file contents are as follows
#use sleep 50s(less or more) to wait the sdcard be mouted
busybox sleep 50s
umount /mnt/sdcard/mydata
losetup -d /dev/block/loop0
mount -o loop,umask=702,uid=1000,gid=1015 -t vfat /data/local/sdfs.img /mnt/sdcard/mydata

Then you can use the internal memory

Sorry for my poor english
The Following User Says Thank You to alan101 For This Useful Post: [ Click to Expand ]
 
Pacau
Old
#2  
Junior Member
Thanks Meter 2
Posts: 17
Join Date: May 2013
Quote:
Originally Posted by alan101 View Post
1.First crate a 5G disk file called sdfs.img(or other) in the /data/local directory and make it to vfat(or other) file system
su
dd if=/dev/zero of=/data/local/sdfs.img bs=1024 count=5242880
busybox mkfs.vfat /datd/local/sdfs.img

2.Crate a file in /system/etc/init.d to mount it to /mnt/sdcard/mydata(or other) on boot
The file contents are as follows
#use sleep 50s(less or more) to wait the sdcard be mouted
busybox sleep 50s
umount /mnt/sdcard/mydata
losetup -d /dev/block/loop0
mount -o loop,umask=702,uid=1000,gid=1015 -t vfat /data/local/sdfs.img /mnt/sdcard/mydata

Then you can use the internal memory

Sorry for my poor english
Cool, I'll try.
 
edgaredgar
Old
#3  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jan 2012
Quote:
Originally Posted by alan101 View Post
1.First crate a 5G disk file called sdfs.img(or other) in the /data/local directory and make it to vfat(or other) file system
su
dd if=/dev/zero of=/data/local/sdfs.img bs=1024 count=5242880
busybox mkfs.vfat /datd/local/sdfs.img

2.Crate a file in /system/etc/init.d to mount it to /mnt/sdcard/mydata(or other) on boot
The file contents are as follows
#use sleep 50s(less or more) to wait the sdcard be mouted
busybox sleep 50s
umount /mnt/sdcard/mydata
losetup -d /dev/block/loop0
mount -o loop,umask=702,uid=1000,gid=1015 -t vfat /data/local/sdfs.img /mnt/sdcard/mydata

Then you can use the internal memory

Sorry for my poor english
It didn't work here
I got this: mkfs.vfat: lseek: Value too large for defined data type
 
alan101
Old
#4  
Junior Member - OP
Thanks Meter 8
Posts: 15
Join Date: Nov 2013
Quote:
Originally Posted by edgaredgar View Post
It didn't work here
I got this: mkfs.vfat: lseek: Value too large for defined data type
because the busybox does not support
use this busybox
Attached Files
File Type: rar busybox.rar - [Click for QR Code] (950.9 KB, 35 views)
The Following User Says Thank You to alan101 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes