Installing applications on the SD card on the LG GT540 Optimus



Rep: (200)
Installing applications on an SD card (LG GT540 Optimus)
PictureGT540, Optimus, Swift

Denial of responsibility
Remember that everything you do, you do at your own peril and risk! Those involved in creating scripts are not responsible for the consequences.
Before you ask!
ATTENTION! Before asking questions in this topic, read the header, it contains answers to most questions! If you did not find the answer to your question, describe in detail in the message the essence of your problem in detail and correctly. And remember that everything you do, you do at your own peril and risk! Those involved in creating scripts are not responsible for the consequences.


Options for installing applications on the SD card
(Read carefully the description of each option and select the one that is more understandable and closer to you)

1)from Binger (only with firmware version V20D)
Original post Installing applications on an SD card on a GT540 (Post # 6426539)

***

Breakdown of a memory card into two sections (FAT32 and ext2)


create partitions
1. We are looking for in the vastness of the worldwide network of Paragom Partition Manager;
2. Install on your PC (personal computer);
3. Insert the memory card into the card reader and pop it (the card reader) into USB on your system unit;
4. Launch Paragon for the first time.
You will see here such a pseudo-convenient simplified view. Click on the inscription below (highlighted in red):
[attachment = "798306: Partition_1.jpg"]
and Paragon will take a normal, comfortable look:
[attachment = "798308: Partition_2.jpg"]
The area highlighted in red graphically depicts the space of your memory card (a flash drive is yours in general). Those who are doing all this x ... fucking for the first time, then do everything exactly as it will be shown in the figures. Those who have already done this - do as they used to.
Let's start ...
In the area depicting your flash drive, right-click (RMB) and select Move / Resize Partition from the context menu, as shown in the figure below.
[attachment = "798311: Partition_3.jpg"]
Next, in the Free Space After field using the keyboard, enter the volume you need that you want to allocate for ext2 and click "OK." Please note that the volume is indicated in megabytes, therefore, if you want to specify 1.2 gigabytes, you should enter 1200 and click with your mouse somewhere in the non-working area of ​​this window, so that the deed is correctly displayed in this field, and the graphic representation area of ​​the flash drive changed its view. Then click OK, as shown in the illustration below.
[attachment = "798313: Partition_4.jpg"]
Now you see the initial window of Paragon. Your flash drive has a tail - an unmarked area. We have set the breakdown parameters and now we need to apply them. Click on the big green checkmark in the control panel, as shown in the figure below:
[attachment = "798315: Partition_5.jpg"]
On request for confirmationnod your headclick ok.
When Paragon completes the task, you will see a large such warning light below. Click the Close button.
[attachment = "798316: Partition_6.jpg"]
You now have a fat32 partition and an unallocated area. Right-click on the graphical representation of the unallocated area and select Create Partition from the context menu, as shown in the figure below:
[attachment = "798319: Partition_7.jpg"]
In the next screenshot, the fields required for filling are highlighted in red. In exact accordance with the figure, do the same for yourself and click the OK button:
[attachment = "798320: Partition_8.jpg"]
Click the big green checkmark as shown in the following image:
[attachment = "798322: Partition_9.jpg"]
When the paragon finishes completing tasks, it will issue a request for another confirmation. Do not be afraid of scary words like Linux, reinit, boot loader and just click OK, as shown in the figure below:
[attachment = "798324: Partition_10.jpg"]
Next, when a large notification pops up again - click Close:
[attachment = "798325: Partition_11.jpg"]
We broke a memory card. Close the program:
[attachment = "798327: Partition_12.jpg"]
And correctly unmount the card reader with a USB flash drive (safely remove it in general):
[attachment = "798344: Unmount.jpg"]
In the last screenshot, I wrote "Required" ... if suddenly someone does not have the opportunity to remove the memory card in this way ... Follow the instructions in the next section - adding a letter to the fat32 section.

** Information for those who already have an ext2 partition - REQUIRED to recreate it! For tricks that decide that it will be enough to format ext2 from under recovery - it will not work - I tried **


*** Download the archive with the script (it will hang below, after the description of the installation of the script itself), unzip and put the app2sd and gscript folders inroot(!) section FAT32 .***


If "my campaigner does not see the flashcard ... cry ... cry"


assign a letter
Right-click on the "My Computer" icon on the desktop and select "Management" in the context menu:
[attachment = "798346: MakeLiter_1.jpg"]
Next, click on "Disk Management". Wait for a while until all of your drives appear (including a USB flash drive).
Right-click on the body of the graphic representation of the FAT32 partition space (!) And select "Change drive letter or drive path ..." from the context menu:
[attachment = "798347: MakeLiter_2.jpg"]
Next, click "Add":
[attachment = "798348: MakeLiter_3.jpg"]
Do not torture your head with a useless choice and just click "OK."
[attachment = "798349: MakeLiter_4.jpg"]
Look, you have a letter on the FAT32 section ... Now your computer will see a USB flash drive:
[attachment = "798350: MakeLiter_5.jpg"]
You can drop folders with the script on it.


!!! Insert the USB flash drive into the OFF telephone and only then turn it on !!!


Install script


some lyrics
Previously, we had a lot of scripts with different operating principles, but all of them, one way or another, did not suit users. Personally, I was haunted by the fact that it was impossible to do something like a continuation of the / data / data section ... in the sense that the telephone modules remained there and this section was no longer affected. The script presented in this post, one way or another, does just that. The overall picture is as follows: after the firmware, we have collected / data, which is collected during the first boot of the phone. Inside this section, there is another splitter - / data / data - the installer looks at its free space during the installation of applications and if there is not enough space left and there is still space on the map, the application will not install (the case with the script from DenHome66). But it was the idea of ​​the script from the reputable DenHome66 that pushed for the solution that is used in this script. The entire / data partition was cloned to the ext2 partition, BUT (!) All the telephone modules necessary for the operating system remained where they grew. Bottom line: excellent speed, system stability is exactly the same as before the script, working app-private, application installation is limited only by the amount of memory that you allocated for ext2. I think that this script will be absolutely stable on the stock memory card "out of the box"


*** ROOT required ***

getting root
Obtaining root access (without flashing and without fastboot)
Detailed instructions*

* Assumes installed drivers for the phone


1. In the phone settings, turn on Debugging (Settings - Applications - Development) and Turn off "Storage device only" (Settings - SD card and phone memory)

2. Download and unpack the archive [attachment = "798354: Root_on_2_1.rar"]

Now there are two options: Automatic and Manual mode (if the first does not work, you can use the second)

Automatic mode: (thanks Mur4ik for batch files)

3. Run preptmproot.bat and wait until the usb connection reconnects on the phone and lights up in the notification area "USB debugging is connected"
4. Run makeroot.bat and wait for the phone to reboot itself
The root is received, if any errors occur or have not received the root, reboot the phone and use the Manual method

Manual mode:

3. Start - run - cmd.exe
4. The Windows command line opens, we write to it
cd path to the folder where adb is located and su and Superuser.apk files (for example, cd C: \ root2.1 \)
5. Next, write to the command line in turn:

adb push rageagainstthecage-arm5.bin / data / local / tmp / rageagainstthecage
adb shell chmod 4755 / data / local / tmp / rageagainstthecage
adb shell / data / local / tmp / rageagainstthecage


6. We wait until “USB debugging” lights up on the phone, then we write in the console
adb shell mount -o remount, rw -t yaffs2 / dev / block / mtdblock4 / system
adb push su / system / xbin / su
adb push su / system / bin / su
adb shell chmod 4755 / system / xbin / su
adb shell chmod 4755 / system / bin / su
adb push superuser.apk /system/app/superuser.apk
adb shell chmod 0644 /system/app/superuser.apk
adb push rootexplorer.apk /system/app/rootexplorer.apk
adb shell chmod 0644 /system/app/rootexplorer.apk
adb shell reboot

After the reboot, we should get the root
If an error occurred on the line "adb shell mount -o remount, rw -t yaffs2 / dev / block / mtdblock4 / system" - we reboot the body, try again


1. Ideally, as has already been mentioned here repeatedly in the thread - XP + firmware + XP (already like a spell, damn it sounds) - the key to a successful result !!!
*** After hard-reset fastboot, recovery, root are saved! After flashing, no! In other words, if you decide to do a step-by-step, the chain will be like this: XP->firmware->HR->root. ***

2. Make presets (all kinds of Wi-Fi, keyboards, a Google account, activate so that the contacts are drawn up and so on ... if they were stitched, clean / system / app ... if you cleaned / system / app - do not forget to do hard again after that cuts).

List of applications that I left after cleaning + GScript Lite:

*** How to make GScriptlite appear on this list ***

GScript lite porting
After flashing and climbing to clean / system / app, first start the market and install GScript Lite. In Root Explorere, stomp into / data / app and copy GScript Lite from there to / system / app. Do not forget what you need, being in the / system / app folder, click the top button "Mount r / w" and after that insert GScript Lite, assign it the necessary rights (rw-r - r--) and then you can clean everything else.


list / system / app
AccountAndSyncSettings.apk
AccountAndSyncSettings.odex
AIME.apk
ApplicationsProvider.apk
ApplicationsProvider.odex
BrcmBluetoothServices.apk
BrcmBluetoothServices.odex
Browser.apk
Browser.odex
Calculator.apk
Calendar.apk
Calendar.odex
CalendarProvider.apk
CalendarProvider.odex
CallTime.apk
CallTime.odex
Camera.apk
Camera.odex
CameraTest.apk
CameraTest.odex
CertInstaller.apk
CertInstaller.odex
ChargingTest.apk
ChargingTest.odex
Contacts.apk
Contacts.odex
ContactsProvider.apk
ContactsProvider.odex
DebugLogMgr.apk
DebugLogMgr.odex
DeskClock.apk
DeskClock.odex
DivxRegistration.apk
DownloadProvider.apk
DownloadProvider.odex
DrmDataMngr.apk
DrmDataMngr.odex
DrmProvider.apk
DrmProvider.odex
DrmService.apk
DrmService.odex
ELTTest.apk
ELTTest.odex
EnhancedGoogleSearchProvider.apk
ExternalMemoryTest.apk
ExternalMemoryTest.odex
FlexProvider.apk
FlexProvider.odex
FmRadio.apk
Fmradio.odex
Gallery3D.apk
GlobalSearch.apk
GlobalSearch.odex
Gmail.apk
GmailProvider.apk
GoogleApps.apk
GoogleCheckin.apk
GoogleContactsSyncAdapter.apk
GooglePartnerSetup.apk
GoogleSearch.apk
GoogleSearch.odex
GoogleSettingsProvider.apk
GoogleSubscribedFeedsProvider.apk
GScriptLite.apk
gtalkservice.apk
HiddenMenu.apk
HiddenMenu.odex
Homeselector.apk
Homeselector.odex
HTMLViewer.apk
HTMLViewer.odex
Launcher2.apk
Launcher2.odex
lgecamera.apk
LGSetupWizard.apk
LGSetupWizard.odex
LiveWallpapers.apk
LiveWallpapers.odex
LiveWallpapersPicker.apk
LiveWallpapersPicker.odex
MarketUpdater.apk
MediaProvider.apk
MediaProvider.odex
MediaUploader.apk
Mms.apk
Mms.odex
NetworkLocation.apk
OPP.apk
OPP.odex
OptimusLauncher.apk
PackageInstaller.apk
PackageInstaller.odex
PCSync.apk
PCSync.odex
Phone.apk
Phone.odex
PicoTts.apk
PicoTts.odex
PowerOff.apk
Poweroff.odex
rootexplorer.apk
Settings.apk
Settings.odex
SettingsProvider.apk
SettingsProvider.odex
SetupWizard.apk
Stk.apk
Stk.odex
Superuser.apk
TalkProvider.apk
TelephonyProvider.apk
TelephonyProvider.odex
TtsService.apk
TtsService.odex
UserDictionaryProvider.apk
UserDictionaryProvider.odex
Vending.apk
VoiceRecorder.apk
VoiceRecorder.odex
VpnServices.apk
VpnServices.odex
WapService.apk
WapService.odex
Wiper.apk
Wiper.odex
YouTube.apk

3. Launch the market and install GScript Lite from the market.
*** For tankers: If you have already transferred GScript Lite to / system / app, then you do not need to start the market and install GScript Lite from the market! ***

4. Launch GScript Lite:

Work with GScript Lite:

GScript Lite
From the application menu, launch GScript Lite:
[attachment = "798363: snap_1.png"]
Press the hardware menu button on the phone (the squares above the call accept button) and press Add Script, as shown in the figure:
[attachment = "798368: snap_2.png"]
Press the button Load file:
[attachment = "798369: snap_3.png"]
A list appears ... in the list you will have a single a2sd file - click on it with your finger.
[attachment = "798370: snap_4.png"]
And press the Save button, as shown in the figure:
[attachment = "798371: snap_5.png"]
And then run the script by clicking on a2sd, as shown in the illustration below:
[attachment = "798373: snap_6.png"]
GScript Lite will ask for permission for superuser rights (root) - click "Allow" and look at the blue screen.

5. Ideally, when running the script, you should only see messages like "ext2 partition mounted, copying applications" and "Done! You can restart". Then wait until the “Close” button appears at the bottom with a countdown, click on it and then restart the phone. Reboot with the phone (with the end call buttons ... press and hold and select "Disconnect phone" ... DO NOT USE any scripts to reboot !!!
Perhaps some will see messages a la "cannot create" or "exist" or "not found" in different variations - do not be alarmed ... just some of you, when cleaning / system / app, got really carried away and cleaned up some services and Services.
If your script worked fine and you didn’t see messages like device busy or cant create or file exist, but saw only two messages: "ext2 partition mounted, copying applications" and "Done! You can restart", then after rebooting the phone go in the settings and see what you got. You should get something like this:
screenshot
[attachment = "798385: snap2011 ... 1_213914.png"]

Next, go to Root Explorer and stomp along the path / data / data and look what you have there ... it should be something like this:
/ data / data
[attachment = "798387: snap_8.png"] [attachment = "798388: snap_9.png"]


Well, here is the script itself:

script
[attachment = "872690: app2sd_data_mod_2.rar"]


Thank you so muchDenHome66 for heroism in the fight against the scriptan idea!

* In no case DO NOT (!) Run the script twice! *


** And, yes, after applying the script, the gscript and app2sd folders can be removed from the flash drive from sin further. And it would be better if you delete the added script from GScript Lite itself. **


If something went wrong and you need to remove traces of the script

delete trace script
1. Go to the Root Explorer and stomp in / system and there we completely delete the folder / system / sdcard;
2. Without leaving Root Explorer, go to / system / bin, find two files vold2 and vold there, delete (!) Vold and rename vold2 to vold;
3. While in Root Explorer, go to / system / etc and delete the file vold.sh there;
4. We leave Root Explorer, cut down the body, remove the gearbox, extinguish the ext2 partition (or re-create it - it depends on what you plan to do next), install the gearbox back into the phone and cut it;

The sequence of actions may vary, since, for example, with the inserted CP, the body may not boot


If everything is bad and need a flashing

flashing with fastboot and recovery
First, download the flasher: [attachment = "862755: KDZ_FW_UPD.rar"]

1. Install the drivers for the phone on the PC ... downloadhere softinka, install, run and through it download and install drivers;
2. Download firmware from fastbootfrom here... you can take this one ->V20D - RUS (Russian from December 2);
3. Download recoveryhere from hereat the very bottom of the hat ... take this one ->flash_recovery.zip (4.05 MB) Number of downloads: 1062;
4. Unpack the downloaded firmware somewhere not far away;
5. Doing hard cutting on the phone - I think you know how;
6. You cut down the bodies and pull everything out of it - akkum, KP, simka;
7. Hold down the "volume down" button on the side of the phone and, without releasing the button, connect the phone to the USB PC;
8. You wait while the drivers are installed (if you don’t have the firewood yourself, start the win-update and look there, if you have Vin7, then you should find firewood there - install it from there .... if you don’t have them there - write here);
9. You start the windows enabler.exe program (in the archive with the program with KDZ_UPD it will be), in the tray (in the lower right corner of the monitor where you have the clock), click once on the icon that appears, to display "On" on it, with the right button mouse on the label "My computer" ->"Properties", stomp into the device manager and there disconnect both Android modem devices;
10. Start KDZ_UPD ... then each of your actions will consist of two separate clicks on each element: the first click unlocks the control, the second click performs an action;
11. Type select 3GQCT, indicate where you have the firmware, click on the software update button;
12. Thrust a booty of walnuts and wait for the inscription = COMPLETED = ... ALWAYS wait for this inscription !!! Do not listen to anyone who says that this is not necessary!
13. You are flashed;
14. I am tired of writing;
15. Disconnect the bodies from the lace and shove everything into it back into it;
16. Clamp the camera button all the way (!) And without releasing it (!) Press the phone’s power button until the characteristic “hit” vibra ... hold the camera button until you see a blue screen with white letters;
17. In this state, you reconnect to the computer and wait until the driver is installed ... if you did not install it yourself, you are looking in the update center or on the forum, for examplehere ->google_usb_driver.rar (8.27 MB) Number of downloads: 2608;
18. We assume that the driver is installed ...;
19. Unpack the previously downloaded archive with recovery and run the file: flashrecovery.bat - wait ... the bodies will reboot itself;
20. My applause - you now have both fastboot and reconnaissance;

*** To get into fastboot, you need to hold down the camera button and, holding it, turn on the phone. Do not release the camera button until the blue screen with white letters ***

**** To get into recovery, you need to turn on the phone and, as soon as the label "LG" appears, press and hold the "Home" button ****
2) from DenHome66 (only with firmware version V20D)
Original message: Installing applications on an SD card on a GT540 (Post # 5687678) В© DenHome66

***

Installing applications on the SD card on the GT5403 in 1

[attachment = "690534: app2sd_G .... 10_3in1.zip"]
The attached file contains everything necessary for installing applications on the memory card (KP) in whole or in part, on phones with the “Superuser” installed, i.e. need root =root .
Installation is reduced to running a script that performs the necessary actions with an additional section of the memory card and rebooting the operating system (OS). Those. everything is simple, it remains to choose the desired script. In foldergscript there are three of them: пїЅ1 a2sd.sh , пїЅ2 a2sd_data.sh and пїЅ3 a2sd_data_DH.sh .
The installation process has been repeatedly described in this topic and in the neighboring ones, so in a nutshell:
1. Save the installed (I use Titaniumbackup ).
2. Turn off the phone, remove the CP, insert it into the computer (card reader), reduce the size of the existing fat16 / 32 partition, create a new BASIC partition - the type of file system ext2 , section name is empty. (I did it with Paragon Hard Disk Manager from page 19 section ext2 SECOND , i.e. on right)
3. We copy three folders from archive to root cards (section Fat ), rearrange the card in the phone, turn on the phone.
4. We do a hardware reset = hard reset = XP. We go through the welcome screen. If you have chosen a script �2 -a2sd_data.sh, then you must do this if selected �1 or �3 , then you can not do XP, but simply delete all applications except vital ones in order to free up the phone’s memory as much as possible (then it will fit more). For �1 and �3 You can install / restore the desired one (if XP was done). Recovery from backup does not take much time.
5. We set, if not worth it, and run Gscript (available in the archive). Add the selected script (left button, "Add script", "Load file", select, "Save"), run it and wait ... If successful, we see "done, reboot phone" click dig "close" and you can right there (from Gscript) "Reboot" .
6. Restore / install applications. We use it.

Not sure what to choose? I’ll try to save you (as I can) from reading 70 pages, although the latter is useful.
A bit of theory: almost all custom Android OS applications are installed in a folder/ data / app , and it takes up most of the space allocated for the user in the phone’s memory. There are applications that must be installed in the folder / data / app-private , what, why and how - search drives. Settings and application data are located in the folder / data / data - the ratio of the volume of data to the volume of the application itself is different, in my case ~ 140Mb of application ( data / app ) accounts for ~ 35MB of data (in / data / data ), i.e. ~ 1/4. About the same amount (I have ~ 40MB) is the folder / data / dalvik-cache , and moreover, it is constantly growing (application caches are stored there that accelerate their work, for example, Gallery, Maps, YouTube, ...)
To transfer user data from the phone’s memory, these scripts exist that simply copy files from the phone to the memory card and initiate the “substitution” of “native” folders with files to the folders from the memory card when the OS boots.
пїЅ1 a2sd.sh - transfers to KP: / data / app and / data / dalvik-cache .
Folder/ data / data that is used when loading the phone, it is unchanged and always in the phone’s memory, which guarantees the device’s operability without a CP, in this case, naturally, the applications installed on it disappear along with the card. This option works stably for most users who install it. However, when returning the KP "to their homeland", some applications need to be reinstalled, the reason for this is, apparently, the folder that changes when the OS boots / data / dalvik-cache at least the Polish script "progenitor" / data / dalvik-cache remains untouched and this problem is absent. Recovery (reinstallation), in the presence of the saved copies (Backup) - a minute business.
пїЅ2 a2sd_data.sh - transfers the entire folder to the CP / data along with all content including / data / data , which is used by the phone when booting the OS until it is "replaced" (mounting) it with the same name from the CP, so an important condition for the stable operation of this very "economical" script is, in my opinion, the mandatory execution of XP before use script. Then, when loading the OS, the folder / data / data It remains empty (until the moment of mounting the gearbox), which minimizes the possibility of errors. Perhaps the failure to fulfill this particular condition leads to unstable operation of the device for most users (according to the survey). Using the phone without a CP is not recommended. Prerequisite: KP db not lower than class 6 .
�3 a2sd_data_DH.sh - transfers to KP: the entire folder / data (like �2 ), but critical to its location, folder / data / data remains in the phone’s memory (as in �1 ), and with any reasonable (logical) use of the phone with the CP, or without it, there is no disruption to the OS (at least I could not do this). Retribution for stability - some consumption of space from the phone’s memory (but less than in �1 ).

If you will never remove the CP from the phone, then any of the scripts works fine.
If you plan to sometimes use the phone without a CP, then use the scriptпїЅ3 and follow a few simple rules (the rules apply to пїЅ1 ):
1. We removed the KP * and removed the application from the phone: on the KP (in / data / app ) this application remained, because it was copied when installing the script, therefore, after you return the KP to the phone, you need to delete it again, anyway, this application will no longer work normally, because his data from / data / data deleted by you (maybe you will see an error message until you uninstall this application again).
2. Reverse situation - When the KP is installed, you deleted the application installed before the script was applied: this application will remain in the phone’s memory (the folder in which it lies is “replaced” by the same folder from the KP), therefore, after removing the KP, it must be deleted again, by for the same reason as in p.1 . (no data, there will be an error).
3. We removed the KP and installed the application on the phone (for example, from the Market): it is not on the KP and it will not appear there itself (copying occurs only once, when installing the script), therefore, after you return the KP to the phone, this application need to restore / reinstall if you need it. (You will not see any errors, because there is no application - there are no errors).
4. The reverse situation - with the installed KP, you installed the application: it is not in the phone’s memory, and if you want it to work after removing the KP, you need to install it in the phone’s memory (downloaded without the KP): do this from the Market or insert the KP on your telephone and you will have .apk and / or backup (TitaniumBackup must already be installed in the phone’s memory, for example, I put it in / system / app along with Gscript), another installation option: use a script mount.sh - he will mount the partition ext2 in / system / sdcard then just copy RootExplorer `oh the right apk from / system / sdcard / data / app at / data / app (check rights = permissions and after rebooting it will work).

* “They ran out of KP” - it means: they turned off the bodies, took out the card, turned on the bodies. “Installed KP” - it means: they turned off the bodies, inserted the card, turned on the bodies, unless otherwise specified.

Problems that may occur during installation:
If we see"No such file or directory" - this suggests that the ext2 partition was not mounted and that it was necessary to double-check and recreate ext2 (you can change the program for the breakdown, make the section the first, maybe just repeat this procedure, being more careful). Remember your gestures, after which the script is installed, and all subsequent installations, after XP or flashing, will pass without problems.
If used for stakingAcronisand nothing happens - you don’t have to torture him and yourself, put Paragon and smash the card with them.
If after installing the script (any) the applications load slowly, change the KP to a faster one.

P.S. All of the above is my personal vision of what is happening, based on repeated experiments, and in no way claims to be an inexorable truth.

P.S.P.S In order to avoid repeating the questions, I insert here the answers to the questions already asked (although similar questions have already been asked and the answers are full, but ... as they say "to the heap" in one place:
What lies in the folders (in the "trailer"):
ATapp2sd and app2sd_data contains:
The above scripts and:
check.sh - Writes the size of available space for applications and checks if the script is installed.
umount_a2sd.sh - removes vold.sh, restores vold, so after rebooting nothing is mounted. Useful in cases where everything is "ripe", or you just want to reinstall the script, change it to another option, for example.
sdcard_clear.sh - mounts the ext2 partition and removes everything from it. Useful after umount_a2sd.sh, applicable in the above cases.
mount.sh - simply mounts the ext2 partition (if it booted without a CP, and then inserted the latter) Useful for cases when you need to look at the contents of both the phone and the CP at the same time (delete, copy).

ATgscript lie:
vold and vold.sh (or its clones: vold_data.sh, vold_data_DH.sh) - are copied when the script is installed on the phone, and later, when the phone is loaded, vold calls vold.sh, and vold.sh , in turn, mounts (replaces) the necessary folders.
busybox also copied when installing the script, needed to create the necessary folders with the desired content.

How to remove all traces from app2sd: if you want to get rid of the script (from installing applications on the SD card) forever!

hereandhereit was written. Quotes:
1.On the phone, go to the root explorer, and use the pens to delete / system / sdcard (the entire sdcard folder), / system / bin / vold2 and /system/etc/vold.sh
2. take out the flash drive, recreate ext2 on it, load the device (without a flash drive), climb into root explorer and soak it with vold.sh pens

Corrections fromBinger :
1. Go to the Root Explorer and stomp in / system and there we completely delete the folder / system / sdcard;
2. Without leaving Root Explorer, go to / system / bin, find two files vold2 and vold there, delete (!) Vold and rename vold2 to vold;
3. While in Root Explorer, go to / system / etc and delete the file vold.sh there;
4. We leave Root Explorer, cut down the body, remove the gearbox, extinguish the ext2 partition (or re-create it - it depends on what you plan to do next), install the gearbox back into the phone and cut it;

The sequence of actions may vary, since, for example, with the inserted CP, the body may not boot

Creating an ext2 partition in Paragon Hard Disk Manager в„ў 2010 Professional

[attachment = "696165: Paragon.JPG"]
Took from a rutracker


The modified script No. 3 with the output of error messages and the removal of dalvik-cache lieshere.
3) from AntonCh (only with firmware version V20D)
Original post Installing applications on an SD card on a GT540 (Post # 5989831) Installing applications on an SD card on a GT540 (Post # 6000441) (C) AntonCh

***

so we meet:
app2sd DenHome kernel edition

I recommend so far onlyexperiencedexperiment lovers

I personally checked the performance on a clean v20d firmware
put the opera mobile before use for the experiment - 91.24 places left
after application, the available space is 700 mb :) (I have a section of about 750 mb)
space in / data / data 120 mb (if you delete the opera mobile the space will be 14 mb more)


the script updates the kernel of the device (fastboot is optional) - the kernel from Quarx v0.3.1 is installed with additional modifications to run scripts from /system/etc/init.d. What updates update.zip from Quarx - also updated! (i.e. no recovery needed)

working principle: transferring to the flash drive everything / data except / data / data as DenHome came up with
app-private works

WHAT SHOULD NOT BE DONE: do not delete / system / bin / busybox -the system will not boot!

phase 0:
get rid of other app2sd (if any)

phase 1:
smash the flash drive. fat32 is the first, ext2 is the second. more gig on ext2 sense to allocate a little.

I pay attention: after repartitioning the flash drive, reboot the phone with the flash drive inserted !!
phase 2:

1) download [attachment = "737928: app2sd_quarx_krnl.zip"] and unpack it to the root sdcard
2) add and run the app2sd_quarx_krnl.sh script through gscript
3) in case of errors - write here
4) if everything went fine - the phone will reboot ... it will load a little longer. especially the first time (in fact, the script does the main work on the first reboot)
5) testing :)
6) be sure to unsubscribe about the results here

works with the kernel from quarx and with the ext3 partition (I checked :)) ext4 - I have not tested it yet ...


update:
V20D core version:
[attachment = "738111: app2sd_krnl.zip"]
Do not put on top of the Quarx kernel (including the one above). v20d firmware only
installation - as above.

principle of operation:
1) in the kernel (to be more precise, only in the init.rc file that is in the compressed form in boot.img) changes were made to run a bunch of scripts from the /system/etc/init.d/ folder
2) the scripts in that folder start in turn. before starting the android system boot. (even before the start of vold)
3) scripts work in stages.
3.1) the first finds the ext2 partition on the flash drive, checks for errors (automatically fixing them), and mounts it in / sd-ext
3.2) the second stage is the verification of the mount and the implementation of app2sd .. directly (there is also the second stage of installation)

*****

ext3 is only supported by the quarx kernel.
4) Link2SD (software method)
All discussions of this method are held inrelated topic.
5) from lukonin (version for V20E)
6) from AntonCh (version for V20E, also works on V20C from 03/14/2011)

FAQ (Frequently Asked Questions)
Read the FAQ carefully before asking a question in the topic!
Q: The described app2sd scripts work with all flash drives?
A: For the scripts to work correctly, an SD card of class 6 and higher is required. With the stock (included) card, it is recommended to use the third script option from DenHome66 (the script is numbered 2, and there is option 3 in it), or the scripts from AntonCh (scripts numbered 3 and 6, carefully see what version of the firmware the script is designed for ), with others it can slow down. This applies only to scripts, Link2SD is out of the question here, it should not slow down. If your SD card sometimes “falls off” while the device is operating, check its class.

Q: How to determine the class of the SD card?
A: The stock card, as well as SD cards up to and including 2 GB, do not have a class. You can define a map class usingthis application.

Q: I don’t have a computer at hand, can I split the card into sections via the phone?
A: Yes, you can split the card either withRecovery, or a script to break the flash drive into sections from AntonCh:
Original post Installing applications on an SD card on a GT540 (Post # 5783550) (C) AntonCh

Before use, be sure to save ALL the data you need (or even everything :)) from the SD card !!!
the script recreates sections on the map from scratch and formats them. Everything that was on the SD card must be erased!


application:
1) unzip the archive torootsd cards
2) run Gscript Lite (if not, install from the market), menu button (left touch) "Add script", "Load file", select "part.sh" and "Save" and run this script
3) wait for the phone to reboot
4) profit! now you have two sections on the flash drive: fat32 and ext2

Ext2 size 512 mb (can be changed at the beginning of the script)

it does not creak app2sd, it is a helper creak to partition the flash drive

Q: Please tell me, is this method relevant only for LG smartphones or will it work on others with Android 2.1 too?
A: Yes, 1.6-2.1, it does not matter. Details under the spoiler.
Phone must be rooted
Install any terminal, do:

cat / proc / mtd


Get something like:
$ cat / proc / mtd
cat / proc / mtd
dev: size erasesize name
mtd0: 00500000 00020000 "boot"
mtd1: 04000000 00020000 "cache"
mtd2: 00500000 00020000 "recovery"
mtd3: 00060000 00020000 "splash"
mtd4: 0f500000 00020000 "system"
mtd5: 002c0000 00020000 "lgdrm"
mtd6: 08b80000 00020000 "userdata"
mtd7: 00080000 00020000 "usd"
mtd8: 005a0000 00020000 "pkg"


You are interested in"system" and number mtd
In this example, it is mtd4

Now in our scripts look for the line and change the corresponding "system" from the number 4 to your mtd:
mount -o remount, rw -t yaffs2 / dev / block / mtdblock4 / system

Important. Only valid for description 2) from DenHome66
Installing applications on an SD card on a GT540 (Post # 5690003)

Q: I can’t download the script and don’t see the pictures! Instead, there are only some inscriptions [attachment = ...], what is the problem ??
A: At the beginning of each method there is a link to the original message, be guided by it, attachments are not displayed in quotes.

Q: I did everything according to the instructions, but after rebooting the phone does not see the flash drive! What to do??
A: So not everyone did according to the instructions! Delete traces of app2sd, recreate the ext2 partition, and carefully read the instructions and install again! If after uninstalling app2sd the phone still does not see the USB flash drive - reflash.

Q: I want to change the flash drive, how do I transfer all the data to it?
A: In theory, you can make a copy of the ext-partition while retaining access rights to the files, and then restore it on a new SD card. However, this method has not yet been tested in practice, therefore it is recommended to backup applications using Titanium Backup, remove traces of app2sd, then apply the script on a new card and restore the programs from the backup.

Q: Everything works for me! How to thank the authors of the scripts?
A: You can thank in a personal message, you can put "+" in the reputation of the author. You can also support the authors financially by agreeing on this in private messages.


Post has been edited-del- - 29.11.12, 16:28
Reason for editing: minor fixes



Rep: (4)
My experience:
I did it by the manual, divided it into 2 sections 1, ext2 goes the second fat16, the script did its job, after rebooting all the applications were successfully found system / sdcard where they should, the root explorer shows 311mb of free memory when entering the data / app, then everything works , but in the settings of the mobile it was 18mb as it is, accordingly during installation the extra space is not taken into account, and when I try to put something big, I get an error about the lack of space.

Post has been editedNomands - 10.09.10, 12:33



Rep: (572)
Nomands @ 09/10/2010, 14:32*
accordingly, during installation, additional space is not taken into account, and when I try to put something big, I get an error about the lack of space.

Hmm, I freely write 36 meters, what to put heavy to check the installation?



Rep: (4)
For example, I tried to install Angry Birds, the installer weighs about 12mb, I had to free about 45mb to install it.

In my opinion, there is enough space for him, only the program that installs the application "looks" only at the internal memory.

Post has been editedNomands - 10.09.10, 12:40



Rep: (1)
Nomands @ 09/10/2010, 15:32*
but in the settings of the mobile it was 18mb as it is, respectively, when installing the extra space is not taken into account, and when I try to put something big, I get an error about the lack of space.

I have applications installed, although from time to time a notification appears about the lack of space, which then disappears. The system shows that it is free 14Mb (I did everything according to the instructions)



Rep: (4)
I have the same thing when I deleted applications and installed new ones, the number of places remained at the level of 14mb, and practically did not change, but the problem with the inability to install applications that need more than internal is still there.



Rep: (56)
R0iZ @ 09/10/2010, 13:35*
what to put heavy to check installation?

Put Navitel, he asks about 50 meters;)



Rep: (45)
Tell me plainly what options to choose in the ext2 section by points, logical or basic? Do I need to assign a letter and volume label? Do I need to pre-format it ???? Tell me by points pliz, I have not encountered this before.



Rep: (4)
STARKID @ 09/10/2010, 15:07*
Tell me plainly what options to choose in the ext2 section by points, logical or basic? Do I need to assign a letter and volume label? Do I need to pre-format it ???? Tell me by points pliz, I have not encountered this before.

At first I saved the data that was, then full formatting, 1 ext2 section, 2 fat16, both main ones, I did not touch the tags.



Rep: (200)
The most quick-witted - make the instructions detailed so that everyone can understand with screenshots, make the installation FAQ and execute



Rep: (1241)
First, it is advisable to remove all installed applications, so that there is enough space in the internal memory, perform operations with an additional partition on a flash drive and put it all over again.
Leave only the most necessary in case of a card change (listen to music or watch a movie), for example, some kind of explorer, audio / video player and Gscript Lite itself.
I have 110 MB free in the internal memory and everything that I have already tried to install is put without problems and there are not enough messages about the lack of space.
Plus RAM should be free as much as possible during installation.

Some thoughts on improvement:

R0iZ @ 09/10/2010, 06:38*
Quote (Mur4ik @ 09/10/2010, 03:42) *
nevertheless, the program errors continue to accumulate in data / data, I think it also needs to be put on the card if there are no calls to this folder before it is mounted.

It is not a problem to add only one line to the script, but is it necessary?

I think it is necessary, since the internal memory is still clogged with time and there may not be enough space to install subsequent applications (it seems to be clear that the installer checks the internal memory for sufficient space and not a partition on the flash drive).

R0iZ @ 09/10/2010, 06:38*
Quote (Mur4ik @ 09/10/2010, 03:42) *
There are still problems with changing flash drives, so if this fixes the method will be complete.

Do you think this is interesting to fix? ;) There is no getting anywhere, anyway, you need to repartition the new flash drive. Or did you mean something else?

At a minimum, you need a script to mount the partition when the card is hot swapped, i.e. put any, then return with the ext2 partition and .... you need to overload the body.
A script would be more convenient.

R0iZ @ 09/10/2010, 06:38*
Quote (Mur4ik @ 09/10/2010, 03:42) *
bring to mind the automation of the process.

There and so everything is automatic, it would be better only to sort the firmware and add app2sd there right away.


It’s not yet possible to sort the firmware.
Based on what I described there, not everything is automatic, plus a script would be needed to return everything back to its original state.

And yet, messages can be translated into Russian in scripts, if Polish colleagues do not mind;)

Post has been editedMur4ik - 10.09.10, 14:47



Rep: (1241)
Correct the instructions, otherwise it’s misleading "... then extract the contents of the ZIP to the memory card to the root of the card ...", in fact, not the contents of the archive, but copy what is in the APP2SD folder (app2sd and gscript folders) in the archive to the root of the SD card. Then the script selection in GScript will be available and everything will work as it should (provided that all other actions are correct).



Rep: (200)
Mur4ik,
I’m asking you to make a comprehensible instruction, everything in the first post is taken from the main topic, I can’t guarantee the operability of the instruction, it wasn’t me who composed it.
People who have already done everything describe the working option



Rep: (1241)
Everything has been done for me, but the method is still damp, in general it works, but there are some jokes.
After changing cards and returning a card with an ext2 partition (and rebooting the device), some applications File2go, Autokiller, Compass, HandsentSMS, Mailru agent and possibly others stop working (they fall with an error about an unexpected process stop), only reinstalling problem applications helps.
Some continue to feel normal and start up without problems and errors.
I haven’t figured out the reason yet, but it seems to me that the matter is data / data and / data / dalvik-cache, that is, everything related to installing the software and its fragments, it is probably advisable to also mount from the card, if the card is inserted another, then all the data will be taken from the internal memory, maybe this will solve the problem.

Therefore, for those who change cards sometimes, until I advise you to put them, or buy one capacitive one and only use it :)

Sections go in order:
ext2 - first (primary)
fat32 - second (main)
I had to completely kill the section on the map and create two necessary partitions from scratch.

And Gscript Lite can also be attached to the cap, if the license allows.

Post has been editedMur4ik - 10.09.10, 16:26



Rep: (4)
Did the instructions ...
1) If necessary, backup all the data from the USB flash drive to the computer.
It is advisable to remove all applications except vital ones on the phone (for example:astro , Gscript lite )
2) Next, run any program to work with disks, I used Acronis Disk Director Suite .
The flash drive should naturally already be connected.

If the program does not detect the USB flash drive, just restart.


3) First of all, delete all partitions from the flash drive.

Attached Image


4) Create the first section.

Attached Image


File systemfat16 (32) , in point " Create as "- The main section, changing the parameter" Section size ", set the amount of space needed for applications.
Dragging the slider toSize and location "to the right or changing the parameter" Unallocated space in front of ", move the new section to the end.

Attached Image

5) Create the second section.

Attached Image


Only two parameters need to be changed:
"File system "- Ext2
"Create as "- Main section

Attached Image

6) The markup is completed, it remains only to apply the changes.

Attached Image

If an error like "Error writing sector xxx on drive x ", just remove the USB flash drive and insert it again, and then click" Repeat "


7) Copy to flash drive APP2SD (there should be two folders in the root of the flash drive: app2sd , gscript ) and insert into the phone.
If you don’t have a program "Gscript lite ", then install from the market.

Attention rights required to perform the following actionsroot .
Run Gscript, left button "Add script ", " Load file ", choose " a2sd.sh "and" Save "and then run this script.
A message will appear in Polish, wait a while, then again in Polish another message. Push "Close ".
Reboot and enjoy.
8) Now you can copy our data back to the USB flash drive.

This method works for me.


Post has been editedNomands - 10.09.10, 18:04



Rep: (9)
super, after this script almost all the programs disappeared, including standard ones, even the market .. now I can’t install anything ((help !! how can I get everything back without firmware?
PS. I have the current section was the first fat, and ekt2 resp. second.

Post has been editediphone309 - 10.09.10, 17:42



Rep: (4)
iphone309 @ 09/10/2010, 18:40*
super, after this script almost all the programs disappeared, including standard ones, even the market .. now I can’t install anything ((help !! how can I get everything back without firmware?

Did you manipulate a flash drive?
Reboot the phone, maybe it was mounted incorrectly.

PS: on his mobile 5 times did this, nirazu this was not.

Post has been editedNomands - 10.09.10, 18:03



Rep: (9)
I ask 10g, sha I will try to swap partitions on a flash drive, I rebooted 3 times already
PS. another script gave some errors
maybe this is due to the fact that I have mixed up fat b ext2 in some places
and yet, the acronis after the script does not see the ext2 partition, writes the file system: no

Post has been editediphone309 - 10.09.10, 18:06



Rep: (4)
iphone309 @ 09/10/2010, 18:44*
I ask 10g, sha I will try to swap partitions on a flash drive, already 3 times rebooted. Another script that produced some errors may be due to the fact that I mixed fat b ext2 in some places7Medium edited iphone309 - Today, 19:01


The first time I also did wrong in places, but it worked, I also made errors, about the impossibility of creating any folders, you just need to wait 5 minutes, then close.
To be honest, I don’t know what to do), I would ask if it is quickly done)



Rep: (9)
Nomands,
I knew the reason for the campaign, but did not wait 5 minutes, somewhere in a minute Kansel pressed and the program just did not have time to copy the files ((
in short, I’ll wait 4 days until the release of the firmware, until I sew .. well, if the firmware doesn’t work out, you will have to sew 1.6

Post has been editediphone309 - 10.09.10, 18:13



Rep: (4)
And if you want both swap and app2sd then be in three sections ???
and it’s also a pity to somehow lose valuable meters on the phone: 1. Speed ​​is faster 2. It is better to store programs that should always hang in memory. So question number two can somehow be combined both app on the map and app in date \ app?


Full version    

Help     rules

Now: 08/09/19, 11:15 PM