So before I resized my partitions I backed up the app and app-private folders on my SD card. Now that I have reformatted the card I am not sure how to get them back onto the card. cp -R command got the files onto the card but they didnt work (in ubuntu had a funny symbol on their icons). So I think I should be able to just copy the files back and have them work again but I cant figure out how to get them copied. And IFS drives didnt help, the SD card doesnt show up.
Ideally I would like to use windows or copying the files from my FAT32 partition onto my ext2 partition.
Code:
adb pull /sdcard/location_of_apks app/
adb push app /system/sd/app
That is working for me but for some reason it keeps hanging on/after copying instamapper. Should I keep waiting or can I do it again and leave out that file?
Ok, so I removed instamapper and tried again and it worked fine. Here is what I used, and thanks again for that command, I was close but had a problem with my syntax
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
brandenk said:
So before I resized my partitions I backed up the app and app-private folders on my SD card. Now that I have reformatted the card I am not sure how to get them back onto the card. cp -R command got the files onto the card but they didnt work (in ubuntu had a funny symbol on their icons). So I think I should be able to just copy the files back and have them work again but I cant figure out how to get them copied. And IFS drives didnt help, the SD card doesnt show up.
Ideally I would like to use windows or copying the files from my FAT32 partition onto my ext2 partition.
Click to expand...
Click to collapse
i've always backed up with "cp -a" and then copy back the same way "cp -a" for the EXT2 partition .. have not yet encountered any troubles with that .. without the "cp -a" you won't have all the permissions set properly
Thanks for the advice! Im starting to get the hang of this.
Hello Friends,
I have seen many forum members requesting here in the forum for a method to increase the internal sdcard memory to enable installing games, which generally require high memory storage space or storing maps for example for standalone GPS navigation system. Again such maps requires to be stored on internal memory card for them to work. All this is possible using this mod.
Introduction: Galaxy SL (4Gb model)has three memory partitions built in.
1. Internal Phone memory- Consists of Internal Phone storage (1.87 GB) and Personal data (72.27 MB). This is not accessible through the USB mounting.
2. Internal SD card storage (1.52 GB) which is remaining partitioned memory from the 4GB phone memory. This partition is called as sdcard by the system. This is the memory which needs to be boosted for increasing efficiency to install games, and applications which needs to stay in internal sdcard.
3. external sdcard called as external_SD by system. This memory is added by user using micro sd card (upto 32GB) for storage purpose.
This hack makes use of external sdcard as internal sdcard, thus providing storage capacity upto 32 GB depending upon the capacity of microSDcard added by user. The internal sdcard memory is converted o external_SD, thus two memory are swapped by using simple modified path in the vold.fstab.
Just a word of caution here to use microSDcard of higher class than class 4 to keep the system snappier with fast read write ability. Your microSD should be formatted as FAT32 to be recognized by system.
I came a cross with this hack at lowyat.net, posted by 3snow. So the credit goes to him, but you can thank me for bringing this to your knowledge.
As usual I am not responsible for Bricked device.. You try this hack at your own risk
But let me make it clear, its not easy to screw your phone unless you are willing to restore it on your own.
This hack makes use of modified vold.fstab file, which requires to be replaced in the system/etc folder. This swaps the internal sdcard memory as external_SD and external_SD as internal memory.
The vold.fstab files posted here are specific to Samsung GT-I9003 Froyo release version 2.2.1. The structure of this file may vary from Phone to phone across different models and android release versions. So you may use the technique/ hack for swapping the memory but it is not guaranteed to work with other android phones using the same modified vold.fstab other than I9003.
I have attached two zip files here.
1. ori_voldfstab.zip - for restoring the phone memory to original state and
2. mod_voldfstab.zip - to swap the internal sdcard memory with external mSDCRD memory.
Follow the instructions below to run this mod on your phone.
Requirements:
-The most important requirement is root access
-First back up your data, both Phone as well as SDCARD, before installing this MOD as a precautionary measure, in case you encounter trouble and lose data.
-If you are using application to SD for some or all applications you will lose them as the memory will be swapped so first you need to change the storage to phone memory in menu>settings>Applications>Manage applications as phone memory.
Instructions:
1) Download the attached files, keep the ori_voldfstab.zip aside for future (if you forget to back it up) to revert the original state.
2) Unzip mod_voldfstab.zip and copy the file on to your external_SD.
3) Now you need to backup your original vold.fstab from /system/etc folder to sdcard/vold directory using Root explorer, just in case if you encounter any problem, you can replace the backed up original file to revert the original state.
To do this Browse to /system/etc folder, copy "vold.fstab" from that folder, then go to /sdcard, paste the "vold.fstab" inside a folder "vold" eg: sdcard/vold.
3) Now using root explorer, Copy the modified "vold.fstab" unzipped from mod_voldfstab.zip downloaded from attachment here and put on your extrenal_SD. Browse to /system/etc folder. Make the system/etc folder writable (R/W) by clicking on mount R/W on top in root explorer and paste "vold.fstab". Accept permission to replace the original file.
4) Restart ur phone,
You are done.
You have your microSDCARD as your internal sdcard and actual internal sdcard as external_SD. Now you have huge space to play games install applications and Maps for Navigation etc..
Trouble shoot:
In case you dont see your internal SDCARD, you wont see external SDCARD also after using this file, but not to worry it could happen due to either problem with vold.fstab or the file system format of microSD or may be even both.
If its due to incompaticle or wrong vold.fstab:
To restore you will have to push the original vold.fstab to /system/etc folder using adb as your sdcard is not visible.
If the problem is due to incompatible file format of microSD:
Just Swith off your phone take out microSD card and format it as FAT32 system in card reader. Put it back and switch on the Phone.
If both fails. then just take out sdcard, simcard and go to download mode using three button combo and reflash te phone with the desired stock firmware for the Phone. You will be restored to original setup.
Enjoy and dont forget to click thanks button.
I have tested it on my I9003 and now I have 16GB of internal sdcard memory. See the Screen shot below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The ADB method
You can download extracted Samsung USB drivers from kies if you are having trouble installing kies or PPhone being not detected by PC. First unistall old drivers and kies and install the downloaded drivers.
Here I am providing separate instructions for ADB interface. I am not a programmer so I have used simple commands (which I know) but it does what you need to do.
Download the sdswap.zip to C: drive of your computer and right click to extract here. Now you will have C:\sdswap. It contains all necessary files including original vold.fstab file for I9003.
Windows "Start>All programs>Accessories>Command prompt(C:\)
A.To backup original vold.fstab into C:\sdswap folder do the following: You can skip this step, if you are doing this for Samsung I9003.
Code:
C:\>
C:\>cd sdswap
C:\sdswap>adb shell
$ su
su
# cp /system/etc/vold.fstab /sdcard
cp /system/etc/vold.fstab /sdcard
# exit
exit
$ exit
exit
C:\sdswap>adb pull /sdcard/vold.fstab
180 KB/s (922 bytes in 0.005s)
Now you have vold.fstab of your phone in sdswap folder, You can replace the extracted file into “ori” folder for reverting original setup.
B.To run this MOD you have to push the modified vold.fstab, do the following in Command Prompt:
Code:
C:\>
C:\>cd sdswap
C:\sdswap>adb push C:\sdswap\Mod\vold.fstab /sdcard/external_SD
3 KB/s (921 bytes in 0.250s)
C:\>cd sdswap
C:\sdswap>adb shell
$ su
Su
# mount -o remount rw /system
mount -o remount rw /system
# cp /sdcard/external_SD/vold.fstab.png /system/etc
cp /sdcard/external_SD/vold.fstab.png /system/etc
# mount -o remount ro /system
mount -o remount ro /system
# exit
exit
C.In case of Problem to revert your original setup
Follow the same steps as given in B. except the third line, which should be
Code:
C:\sdswap>adb push C:\sdswap\Ori\vold.fstab /sdcard/external_SD
Spanish translation of above post can be found in the below link (thanks to putero for translation):
http://www.samsunggalaxys.es/viewtopic.php?f=71&t=4698
Thanks a lot ! Wouldn't have thought it'd be so easy !
Swaping internal Sd card with external memory
Hi buddies can any body guide me how to swap external sd card with the internal sd card partition & not the phone memory.
wani64 said:
Hi buddies can any body guide me how to swap external sd card with the internal sd card partition & not the phone memory.
Click to expand...
Click to collapse
Dude its internal SDCARD itself. I had used the phone memory synonymously, sorry for the confusion. Edited the Title and the Post as Internal SDCARD instead of Phone memory.
Will try this thing soon
It actually works.. nice.. love it
Sent from my GT-I9003 using XDA Premium App
Sorry if the question is dumb but do i need to root my fone for this???
Sent from my GT-I9003 using XDA App
@ rdr
yeah dude you should have to root your device for doing this
One question, do we need to remove apps that are already on internal SD?
Better to move applications to phone memory first, as it will be swapped.
Sent from my GT-I9003 using XDA Premium App
@trip007in
Dude its awesome, thanks for bringing it here
i will try ASAp.
Thanks.
You are most welcome Bala.
bala_gamer said:
@trip007in
Dude its awesome, thanks for bringing it here
Click to expand...
Click to collapse
Trip, i luv u man.this was one of the flaws that made me very sad abt ma fon.and now its fixed.all thanks to u.hope u will keep dazzling us with new mods.
Sent from my GT-I9003 using XDA App
rdr_m said:
Trip, i luv u man.this was one of the flaws that made me very sad abt ma fon.and now its fixed.all thanks to u.hope u will keep dazzling us with new mods.
Sent from my GT-I9003 using XDA App
Click to expand...
Click to collapse
You welcome man. But I am not creator of this. I just shared something that I found useful for myself.
good deal.
might also help the users with this issue:
http://forum.xda-developers.com/showthread.php?t=845708
any reason we couldn't use ext2 for the fs? Then we could create a symlink to make better use of the internal card..
cat /proc/filesystem
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev tmpfs
nodev binfmt_misc
nodev debugfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev rpc_pipefs
nodev inotifyfs
nodev devpts
ext3
ext2
nodev ramfs
vfat
msdos
nodev nfs
nodev nfs4
nodev jffs2
yaffs
yaffs2
nodev oprofilefs
rfs
j4fs
Man this is awesome. Infact this is the reason I rooted the phone cause there was no need earlier there being no custom roms and stuff. Thanks a lot. One thing - I managed to delete the backup of my original vold.fstab file while I was transferring the files around so could somebody please provide me theirs. Also what happens when we get a firmware update or is there no need to worry.
attached file.
running xxkb3.
get rid of the .txt on end.. the forum needs some extension to upload..
fooman123 said:
attached file.
running xxkb3.
get rid of the .txt on end.. the forum needs some extension to upload..
Click to expand...
Click to collapse
Thanks a lot man.
OK now I have a problem. Although my internal sd is now showing as my external sd card, when I moved my installed apps to my sd card they somehow managed to move to my external sd card which was previously my internal sd card so it beats they purpose of this process. Maybe I'll have to reinstall all my apps.
Edit: Just installed an app from the market and I cannot move to the sd card because my external sd is full. So basically the phone is functioning the same even though it shows that the sd cards have been swapped.
Sent from my GT-I9003 using XDA Premium App
Hello folks,
I am trying to move my google music cache to the external 32GB SD card so that it won't fill up my internal storage but somehow I fail.
Here is what I did so far:
format sdcard as ext2
manually mount sdcard since it won't automatically when ext:
Code:
mkdir /Removable/MicroSD
mount -r -w -t ext2 /dev/block/vold/179\:9 /Removable/MicroSD
mkdir /Removable/MicroSD/GoogleMusicData
Then move all data from /sdcard/Android/data/com.google.android.music/cache to /Removable/MicroSD/GoogleMusicData/cache
I did this with root explorer since I'm not too much of a terminal h4xx0r.
Delete the folder /sdcard/Android/data/com.google.android.music/
Link the new Folder on external MicroSD Card to the original location via this terminal command:
Code:
ln -s /Removable/MicroSD/GoogleMusicData /data/media/Android/data/com.google.android.music
Since /sdcard is already a link like the one I am setting up here, it is not possible to link to this linked location (/sdcard/Android/data/com.google.android.music).
Instead I had to link to the origninal destination of /sdcard which is /data/media.
Now the microSD card is accessible for root explorer. It shows read and write access.
But google music won't find it. It says that it doesn't have enough space to stream music so I figure that it somehow doesn't have access to the sd card.
What could be the issue here?
Also instead of 28GB free memory root explorer shows me only 364,44MB free memory. the command "df" in terminal however confirms 28GB of free memory.
I thought that a reboot might do it. But it doesn't. Instead it gets rid of all the hacking I've done in terminal. So I guess I would have to place a script in /etc/init.d for the link to be set everytime I reboot, right?
Help please?
We don't know how gmusic checks that, but I would suggest checking the perms on the mount, perhaps even mounting somewhere else.
Never done it and don't have the resources but I'm sure with root, making /mnt/sdcard a real microsd is possible.
Sent from my Transformer Prime TF201 using Tapatalk
Maybe this thread will help ?
Thanks for your response!
What do you mean by "checking the perms on the mount"?
I don't want to mount my microsd to /sdcard since then I would have 16 gigs of unused space on my internal memory.
I would rather just link this music folder to my external card and maybe some others later (e.g. DCIM and so on).
I have also tried the mount -o bind command instead of ln but that didn't do the job either. the folder com.google.android.music then only appeared under /data/media/Android/data/ but not under /sdcard/Android/data/ which I totally don't understand how that can happen.
I have root of course.
Does anybody maybe have a script by hand of a similar undertaking so that I can look into that and try to understand how this whole mounting and binding thing works?
I'm having mount issues with my TF700. Its unlocked and rooted, installed busybox. Stock ROM and Stock Recovery. It mounts the internal OK, mounts microSD OK, mounts SD OK. But if I plug in my external Bluray reader (with DVD inserted) It mounts USBDisk001, but is linked to my SD card which is already mounted! So now I have 2 mount links to my SDcard! I've rebooted and tried other things, but couldnt get it to work properly. So I removed the SD card. Plug in the Bluray drive and it does nothing (as expected). I open a terminal, become superuser, and mkdir /Removable/Bluray, then mount -t iso9660 /dev/block/sr0 /Removable/Bluray. It claims to have mounted Read-Only (as it should), but I enter the folder and ITS EMPTY! Whats wrong here?! I type blkid and it shows the disc Label. So it IS reading the disc. I try to unmount the disc and try again. umount /Removable/Bluray . It claims Invalid Argument as if nothing is mounted! WTF?!
Any help would be greatly appreciated. FYI, Same disc on linux and windows Machine shows files fine on same external drive.
Edit: Oh, and installing busybox didn't overwrite the original mount files. I used smart install from stericson's installer and mount is still symlinked to the original /system/bin/toolbox .
Sent from my ASUS Transformer Pad TF700T using xda premium
Hey all, i stuck with a problem:
I am trying to write a sd card image from my internal memory to an external sdcard with my galaxy tab 2 with terminal emulator. I am running cyanogenmod 10.2
I got all the commands ready but it wont write to the external card because it only has a read permission, but whatever i try, i cant mount it as read/write.
so my question: how can i remount my external sdcard with write permission in the terminal emulator?
thanx in advance?
p.s. location of my external sd card is /storage/sdcard1
try:
/extSdCard
or
/external_sd
instead of /storage/sdcard1
Android-Andi said:
try:
/extSdCard
or
/external_sd
instead of /storage/sdcard1
Click to expand...
Click to collapse
thanks for your reaction, but it still doesn't work. I still get the message" /extSdCard is opened for read only"
set root for apps & adb in developeroptions?
run as "su" ?
remounted as rw?
Android-Andi said:
set root for apps & adb in developeroptions?
run as "su" ?
remounted as rw?
Click to expand...
Click to collapse
Yest i have done both.
and if i remount as RW it gives the following error:
ro,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0