yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] n756gkj:
Marcusant's Revival v1 certainly already has init.d support.

The init dir currently contains,

ls -a /etc/init.d/
S97ramscript
01acid_sysctl
00remount
04sysctltweaks
02sdcardspeedfix
11link2sd
03kerneltweaks
93zipalign
S91voltctrl
05screenstate battery save
21batterycal

changes to any/all of those manually, or via app, are properly used/set @ init.

this,

cat 11link2sd
------------------------------
#!/system/bin/sh
#added by link2sd
sleep 10
mount -t ext4 -o rw /dev/block/vold/179:2 /data/sdext2

mount -t ext4 -o rw /dev/block/mmcblk0p2 /data/sdext2
------------------------------

unfortunately, seems not to be sufficient -- the QuickReboot is still required AFTER the FullReboot where this init is loaded.
[Android Apps and Games] Kierrok:
Hmmm... Did you checked the scripts that run before the Link2SD one? They run in alphabetical order and one of them could be mounting the partition and then 11link2sd would fail. That 00remount looks suspicious...
[Android Apps and Games] n756gkj:
checking,

grep mount *

00remount:#Partition mounts by Dsexton702

00remount:mount -o remount,noatime,auto_da_alloc,barrier=0 /system /system

00remount:mount -o remount,noatime,auto_da_alloc,barrier=0 /cache /cache

00remount:mount -o remount,noatime,delalloc,noauto_da_alloc,barrier=1 /data /data

03kerneltweaks:mount -t debugfs none /sys/kernel/debug

03kerneltweaks:unmount /sys/kernel/debug

11link2sd:mount -t ext4 -o rw /dev/block/vold/179:2 /data/sdext2

11link2sd:mount -t ext4 -o rw /dev/block/mmcblk0p2 /data/sdext2

iiuc, none of those 00remount cmds should interfere, should they?

in any case, a QuickReboot clearly fixes the problem. A QuickReboot doesn't monkey with mounts, does it? I thought it was simply a restart of the Anrdoid UI.
[Android Apps and Games] jcwilliams:
I love link2sd and have never had a problem with it. However I just recently moved back to froyo and now everytime I reboot I get a notification that says mount warning. Doing a quick reboot through link2sd app fixes it but when I reboot again it does it again. I've tried formatting partition and wiping data uninstalling and reinstalling. I had no problems with it while on gb rom

I have a d1 running pe4.2
[Android Apps and Games] ChungHung.Chen:
Please try to lower the number for link2sd script.

I've encounted an problem with using init.d to enable SWAP.

Perhaps make the script run earlier could help?
[Android Apps and Games] Kierrok:
I have similar remounts tweaks at boot time. That's not the cause of the problem.

I think when Link2SD quick reboots it mounts the partition too. Can you check if it's mounted before the quick reboot?

And, yes, the ChungHung.Chen tip makes sense.
[Android Apps and Games] Kierrok:
Bakpinar, Link2SD is linking lib files when I update the apps but I never link them because of the GB boot unlinking problem.

I think this start happening after the last update.

EDIT: This can explain that.
[Android Apps and Games] ChungHung.Chen:
Dear Kierrok,

What do you mean "not link" for library? Did you link APK only?

Perhaps "Automaticly relink LIB at boot" option did that because of GB problem.

When booting Link2SD check if APK was linked for auto-relink library file?

Chung-Hung Chen
[Android Apps and Games] Kierrok:
Yes, I just link apk and dex files.

All the auto options are disabled, including Relink lib files at boot.
[Android Apps and Games] zilan:
i have samsung galaxy young cdma and have the same problem, any solution for this? thanks
[Android Apps and Games] mpbm23:
My phone boots up normally with the 2nd partition mounted as rw.After some minutes the partition is mounted as read-only.Does any one else has the some problem?
[Android Apps and Games] ChungHung.Chen:
/data/sdext2 will be READ-ONLY if I/O error happened.

You can use RootExplorer to re-mount as RW or reboot your phone.

But you may need to run file system check if too much errors.
[Android Apps and Games] mpbm23:
My root explorer does not show the rw button on sdext2.

How can i run file system check?
[Android Apps and Games] jhonnyx1000:
Type:

mount -o remount rw /sd-ext

in Terminal.

It should remount the ext partition.
[Android Apps and Games] Izzy Stinson:
Hey guys, I really need help about link2sd.

First of all, I have been using link2sd for like 2 months now without no problem. Until today there is some problem.

Okay here it is, I installed an app called Virtual Families it is a game, and it takes much of my internal memory which resulted only 22mb phone memory left as I remember. And I get the low internal memory message on my notification bar.

So I go to link2sd app and create a link virtual families to my sd card. Then I think it doesnt worked I dont know why. It only free up my internal storage like 2mb only from 22mb to 24mb. I confused. Then I removed the link and it says it cant because not enough internal memory to do so. Then I check my internal memory space left it says 44kb left. I was shocked and panic.

So I restart my phone I thought it would like fix it or something. Then I check on my internal memory space lft it says 20mb left. Then I get the "mount warning" on my notification bar, I clicked on it and it says "since 2nd partition was not mounted during boot time, linked apps will be invisible to the system until quick reboot". So I quick reboot my phone but tthe "mount warning" is still on my notification bar and it still wants me to do quick reboot. Ive done it a million times it still there!

What to do? How to make my app Virtual Families to be visible again???

I already emailed the dev about this waiting for reply.

Dont tell me to format my phone, I know that would fix the damn thing but I dont wanna. Please help me :(
[Android Apps and Games] lerkin:
I had such problem too. I search the web to solve that problem and I have some information to share. I have lg p500 and these ro issues appear if I have unstable ROM or kernel (may be overclocled, undervolted) that lead to kernel panics, unclean shutdowns, corrupted ext2 file system and eventually file system read only problem. Even reboot from power menu in custom roms can lead to unclean shutdowns, in fact I saw an opinion that even restart system in recovery can lead to ext2 file system corruption. Kierrok suggested me to use e2fsck /dev/block/mmcblk0p2 command in adb, but that does not always work well, it may corrupt files on ext2. Restarts do not work always. Mounting sd-ext2 in root explorer and in terminal never work.

Now I use that method (CWM recovery, I believe other recoveries will work too):

1) make nand backup (make sure you made sd-ext2 backup).

2) format ONLY sd-ext in recovery. Do not format your SD card!!

3) restore your nand backup, in fact you can just restore only sd-ext in advanced restore in cwm recovery.

4) use e2fsck /dev/block/mmcblk0p2 in adb, and see you sd-ext is fine. (Optional)

5) find stable rom and kernel combination, downclock. Try to restart your phone in system and in recovery by shutdown it first.

Thanks to Kierrok for his great suggestions.

Thanks to Bulent for his great app.

Sent from my LG-P500
[Android Apps and Games] stan.s:
Error in size and partition mounted?

Hi. I have been having an interesting issue with the software. I have a full backup, so I'm not 'excited' over the issue. I'm excited over using this app since it will allow me to mount the SD card while still in my phone and hopefully trick Titanium Backup into backing up apps that aren't in the internal storage in the automated backup. I can't mount my sdcard while in the phone now, due to using android's 'move to sd' function and some apps are always 'active' and prevent the mount from 'sticking.' I can't move all of the apps back to the internal memory, since they won't fit and I'll lose data.

I have a SE X10, and a Lexar 32G card. I used Mini-tool to create the partitions, and formated a 2.5GB second partition as Fat32. I downloaded the app from the market today (12/23).

I had a number of apps already living on the SD card using the "move to sd" android function (2.3 android, SE's stock).

After the install and reboot.

A) The app didn't list anything as being on the SD card. And Apps that I know are on there are working fine.

B) The app's storage info says the SD card is 99% free and a total of 2.52GB with 224KB free. The 2nd SD Part says 100% free. and a total of 2.00GB. Mini-Tool says that the first part is 27.28GB 34% used, and the second is 2.53Gb and 5mb used.

When I look at the \SDCard in Root Explorer it shows only a partition wtih folders made by apps today, all the old folders do not show.

When I mount the phone's card into Windows via USB it shows all the old folders. (Yay, all the apps are working and I can mount it successfully but it's the wrong partition, that's mounted!)

It appears to me, that the scripts have linked the first partition and are reporting the wrong size. If this is due to the app thinking that those apps that are already on the SDCard are from a prior Link2SD install, shouldn't it check if the partition is the first or second and ask?

Any suggestions?

(BTW, shouldn't you have a 'uninstall scripts' or uninstall app function in the settings for those of us who might like to uninstall the app?)
[Android Apps and Games] narflynn619:
QUICK QUESTION:

I understand that before linking any app, they must be moved first back to internal memory. After linking them, can I move the application back to SD card using native app-to-SD function under Manage Applications?
[Android Apps and Games] Kierrok:
Why in the hell would you want to do that?

Linking = Moving apk, dex and lib files to the SD 2nd partition.
[Android Apps and Games] narflynn619:
take Gameloft's 9MM for example..

linking moves all three app aspects to sdext2, but if you go look at data/app, the file com.gameloft.android.GAND.Gloft9MHP-1.apk is still there, but it also has a copy over at sdext2... manual clearly states it moves all aspects to sdext2 partition. as for dalvik-cache and data, they were all moved because they no longer exist within their original folders. but for the APK, while there is a copy at sdext2, there is still the original copy back at /data/app which takes 6MB as for the case of 9MM.. or could that file be the actual "LINK"?

im just possibly noobing around..i'm quite new to Link2SD, so please enlighten me!:D

Xperia PLAY user here by the way, just passing by..;)
[Android Apps and Games] Kierrok:
A link is like a pointer. It's a very small special file, just some bytes, that points to the real file. What you see there it's just the link, unless something went wrong.

If you use a terminal emulator and issue a ls -l /data/app you will see something like com.gameloft.android.GAND.Gloft9MHP-1.apk -> /data/sdext2/com.gameloft.android.GAND.Gloft9MHP-1.apk.

Also, the native app2sd doesn't move dalvik-cache. Data isn't moved neither by app2sd nor link2sd, at least for now.
[Android Apps and Games] bsoplinger:
Re: Data not moved comment.

Is the /data partition not on the SDHC card already? So that moving an app's data would effectively just be moving from the first partition to the second one on the same SDHC card? Or am I all wrong?

Sent from my HTC Flyer P512 using Xparent Purple Tapatalk
[Android Apps and Games] Kierrok:
You are wrong. The data partition is in the internal memory. But some apps place parts of it in the SD card, especially games. Maybe that's what you see in the SD card 1st partition.
[Android Apps and Games] bsoplinger:
Ahhhhh, that makes sense considering they're large data hogs. So that means internal space could be saved if that gets moved to the 2nd SDHC partition.

Sent from my HTC Flyer P512 using Xparent Purple Tapatalk
[Android Apps and Games] zilan:
any solution please? thx
[Android Apps and Games] Izzy Stinson:
Guys, desperately need help here :( I already emailed the dev and im waiting for his reply :(

Add: he tells me to send him the outputs of the following commands and I have no idea how to send the outputs of these following commands :(

cat /etc/install-recovery.sh

car /etc/init.d/11link2sd

mount

cat /proc/partitions
[Android Apps and Games] modpunk:
@bakpinar What' the best way to contact you? I've sent you an email to your developer account, but I didn't get any response.

The ext4 partition should be mounted at least with noatime and barriers aren't needed too. There are a lot more options which could be turned off cause they are not needed and destroy the sd in the long run. You should also make sure that journalling is disabled.

If someone created an ext3 partition it can be easily upgraded to ext4 to get all the features.
[Android Apps and Games] narflynn619:
Okay so now i understand the whole thing about link2sd. Just one thing i noticed, i tried linking 4 apps, so far successful, but after restarting the phone, i noticed the internal memory is rather decreasing. That's not what i actually want. :(
[Android Apps and Games] perfect555:
Thanks man
[Android Apps and Games] n756gkj:
what FS to use for Link2SD partition with MTD ROM?

i currently run a BML ROM (Marcusant Revival v1) with both system partitions, and sdcard's Link2SD partition formatted with ext4 fs.

i'm considering moving to an MTD ROM. update/install seems straightforward enough for the system partitions.

with the system running on an MTD partition table, and system partitions using the new YAFFS2 fs, what do we need to do with the Link2SD partition's partition? Leave it as ext4 or convert it to YAFFS2?
[Android Apps and Games] tukak:
To all facing the 'mount error and quick reboot' problem - following fixed it for me :

Instead of pressing the quick reboot button when encountering the problem, press back, then menu button and in More -> Recreate mount scripts. Then do normal reboot.

Hope it helps
[Android Apps and Games] Kierrok:
Lib files are moved back to internal memory at boot if you have a GB ROM. There's an option to relink them.
[Android Apps and Games] Dimmz:
Hi guys, my phone has a tendency to mount the sd-ext partition as read only after reboots and sometimes in the process of installing updates or new apps. I've checked the link2sd script and it seems fine

#!/system/bin/sh

#added by link2sd

sleep 2

mount -t ext3 -o rw /dev/block/vold/179:2 /data/sdext2

mount -t ext3 -o rw /dev/block/mmcblk0p2 /data/sdext2

Tried recreating mount script but that's fails.

Usually a reboot helps but after sometime it gets stuck mounting as read only. Please help coz this really kills the internal memory and renders the partition mostly useless.

I'm running the latest fusion with a 4gb class 4 card with a 400 MB partition
[Android Apps and Games] lerkin:
I had such problem too. I search the web to solve that problem and I have some information to share. I have lg p500 and these ro issues appear if I have unstable ROM or kernel (may be overclocled, undervolted) that lead to kernel panics, unclean shutdowns, corrupted ext2 file system and eventually file system read only problem. Even reboot from power menu in custom roms can lead to unclean shutdowns, in fact I saw an opinion that even restart system in recovery can lead to ext2 file system corruption. Kierrok suggested me to use e2fsck /dev/block/mmcblk0p2 command in adb, but that does not always work well, it may corrupt files on ext2. Restarts do not work always. Mounting sd-ext2 in root explorer and in terminal never work.

Now I use that method (CWM recovery, I believe other recoveries will work too):

1) make nand backup (make sure you made sd-ext2 backup).

2) format ONLY sd-ext in recovery. Do not format your SD card!!

3) restore your nand backup, in fact you can just restore only sd-ext in advanced restore in cwm recovery.

4) use e2fsck /dev/block/mmcblk0p2 in adb, and see you sd-ext is fine. (Optional)

5) find stable rom and kernel combination, downclock. Try to restart your phone in system and in recovery by shutdown it first.

Sent from my LG-P500
[Android Apps and Games] Dimmz:
Still no luck. But I didn't do step 4. Wasn't sure what you meant by it
[Android Apps and Games] lerkin:
too bad. That command checks file system on sd-ext 2, it must be clean.

Sent from my LG-P500
[Android Apps and Games] modpunk:
Leave it as ext4. Use tune2fs to make sure that the journal is turned of.
[Android Apps and Games] narflynn619:
So does that happen everytime the phone is rebooted? Oh god
[Android Apps and Games] Izzy Stinson:
No its not :-/
[Android Apps and Games] bsoplinger:
I agree with that. Every time you reboot all those lib files are recreated? No joking?!?

That sure seems to me to be a reason to never reboot a Gingerbread phone.

Sent from my HTC Flyer P512 using Xparent Purple Tapatalk
[Android Apps and Games] tmz83:
Hi

I was using without any problem link2sd with my stock fw when I decide to try a mod.

Before flashing I have done a full backup from the recovery.

After i decided to go back to the stock fw, so I done (with success) a full restore.

Now I can't see any previously linked app, and link2sd give me this error: "the installation script can't be created, mount: no such device"

So i mounted my microsd on my pc with an adapter and I saw that ext partition is good and all the apk are there, so why link2sd doesn't want work?

what can i do?

thanks

Update: well the problem was the partition. The recovery has formatted it in ext4, that is not supported by the stock fw. So I done a backup of the content, formated the sd-ext partition in ext2, and restored the content. Link2sd now has created the script but doesn't show me the linked apps...
[Android Apps and Games] Izzy Stinson:
Hey guys, I have 1 simple question.

Say I got an Angry Birds game installer on my sd card, then I install it and linked it to my sd card using Link2sd app.

Then what happen if I install it again using the game installer (apk) that I have on my sd card while the game is already being installed and linked on my sd card?

Will the linked of the apps (angry birds) I made will be automatically unlinked? Or it will be stay linked?

Please answer...
[Android Apps and Games] narflynn619:
any answers?

then this app still has a long way to go.. but it's awesome already in every way..

then i'll hold on to my puny internal memory for the moment..:D
[Android Apps and Games] Kierrok:
It's not Link2SD fault, it's GB behavior!

---------- Post added at 10:02 AM ---------- Previous post was at 09:59 AM ----------

Usually Link2SD relinks the files when upgrading/reinstalling. Some apps that auto install with the native App2SD method need to be moved to internal memory first and then Link2SD relink the files.
[Android Apps and Games] Izzy Stinson:
Usually Link2SD relinks the files when upgrading/reinstalling. Some apps that auto install with the native App2SD method need to be moved to internal memory first and then Link2SD relink the files.[/QUOTE]

Thanks. Is there any way to make it not automatically relinked after upgrading/reinstalling?

I need to know this. Because I have teeny tiny complicated problems
[Android Apps and Games] narflynn619:
you mad or what?:mad:
[Android Apps and Games] Kierrok:
Yes, unlink it before upgrade/reinstall! :D

---------- Post added at 09:20 PM ---------- Previous post was at 09:18 PM ----------

Huh?!? It's true! Gingerbread package manager checks the apps during boot and if it finds a linked lib it recreates it in internal memory.
[Android Apps and Games] narflynn619:
your tone just didn't seem appropriate. besides, it wasn't even blaming.
[Android Apps and Games] Izzy Stinson:
No man you didnt understand my problem. I cant unlinked it because the app that I linked is invisible to the system so thats why I cant manually unlinked it.

This happens when I got the mount warning on my notification bar and ask me to quick reboot to make my app visible again to the system. I already done the quick reboot a hundred times but my linked app is still invisible.

So thats why I asked. Is there a way that after upgrading/reinstalling my linked app will be automatically unlinked.

Please help me. Like I said. Its a complicated problem
[Android Apps and Games] duja5:
I've been using link2sd for a few days now and everything was working great until yesterday. For some reason the app can't link or remove link anymore. When i try to link it says something like: "Failure. rm failed for /data/...., Read-only file system." Does anyone have similar problem or knows the solution?
[Android Apps and Games] ChungHung.Chen:
There is I/O error in 2nd partition, and become READ-ONLY.

Please reboot your phone or do file system manually.

Chung-Hung Chen
[Android Apps and Games] duja5:
I've tried changing the 2nd partition to r/w using Root Explorer but it always returns to r/o.
[Android Apps and Games] Kierrok:
Sorry, but in that case I don't have a clue to what will happen. Try to reinstall the app.

---------- Post added at 09:59 AM ---------- Previous post was at 09:56 AM ----------

You had a similar problem and a good reply/solution to it posted one page before you made your post!
[Android Apps and Games] leapinlar:
What is your problem? Most people are civil here. I think you are reading in more than is intended in these posts.
[Android Apps and Games] PhantomPhoenix:
I'm in the same situation, could it be a problem with script manager?
[Android Apps and Games] lerkin:
Updated "read-only" sequence.

I had such problem too. I search the web to solve that problem and I have some information to share. I have lg p500 and these ro issues appear if I have unstable ROM or kernel (may be overclocled, undervolted) that lead to kernel panics, unclean shutdowns, corrupted ext2 file system and eventually file system read only problem. Even reboot from power menu in custom roms can lead to unclean shutdowns, in fact I saw an opinion that even restart system in recovery can lead to ext2 file system corruption. Kierrok suggested me to use e2fsck /dev/block/mmcblk0p2 command in adb, but that does not always work well, it may corrupt files on ext2. Restarts do not work always. Mounting sd-ext2 in root explorer and in terminal never work.

Now I use that method (CWM recovery, I believe other recoveries will work too):

1) make nand backup (make sure you made sd-ext2 backup).

2) backup your sd card completely (copy its content to pc).

3) Repartition your sd card using EaseUS ALL-IN-ONE Partition Manager Software, it's free. partition it using sd card slot. Make sure you made ext2 as sdext2, and fat32 as first partition. Both of them need to be primary.

4) Copy you sd card backup back to you card

5) restore your nand backup.

6) use e2fsck /dev/block/mmcblk0p2 in adb, and see you sd-ext is fine. (Optional)

7) find stable rom and kernel combination, downclock. Try to restart your phone in system and in recovery by shutdown it first.

Please provide feedback if this worked or not.

Thanks to Kierrok for his great suggestions.

Thanks to Bulent for his great app.
[Android Apps and Games] snopsy:
help with link2sd

hi Kierrok and sorry to bother you, i have a problem using my ext2 sd partition with link2sd, it keep saying "cannot create /system/etc/install-recovery.sh : not enough memory"

after spending hours with google i finally decided to ask you if you may help me ?

it seems my problem could be near what you say, i havn't found those two files

i have a htc desire (android 2.2) rooted (clockworkmod recovery 2.5.0.7) with su and busybox, rw access to system

is this rom working with link2sd ? or some settings need to be done to get link2sd working ?

thank you
[Android Apps and Games] Kierrok:
I don't think your problem is the same. HTC devices usually have no problem with Link2SD, but they need to be S-OFF. I think "not enough memory" error when trying to write to /system in HTC devices means they are S-ON.
[Android Apps and Games] snopsy:
it works !!! thank you very much for your fast and perfect answer

i changed to alpahrev to get s-off and all is fine :d