yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] enotar:
I have a question; I succeed partitioning /nand (internal flash). and create a 500megs ext2 partition on X5A.

Dont really know where to go next as the new partition is not mounted:

Can I do something about it:

mount

rootfs / rootfs ro 0 0

tmpfs /dev tmpfs rw,mode=755 0 0

devpts /dev/pts devpts rw,mode=600 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0

tmpfs /broadcasting tmpfs rw,size=1024k 0 0

/dev/block/mtdblock2 /system yaffs2 rw 0 0

/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0

/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0

/dev/block/ndda1 /nand vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

df

/dev: 76788K total, 12K used, 76776K available (block size 4096)

/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)

/broadcasting: 1024K total, 0K used, 1024K available (block size 4096)

/system: 153600K total, 113228K used, 40372K available (block size 4096)

/data: 297984K total, 51492K used, 246492K available (block size 4096)

/cache: 40960K total, 6680K used, 34280K available (block size 4096)

/nand: 1422944K total, 704K used, 1422240K available (block size 32768)

# ls -l /dev/block/

ls -l /dev/block/

drwxr-xr-x root root 2011-04-09 17:33 vold

brw------- root root 240, 1 2011-04-09 17:33 ndda1

brw-rw-rw- root root 240, 0 2011-04-09 17:33 ndda

brw------- root root 31, 8 2011-04-09 17:33 mtdblock8

brw------- root root 31, 7 2011-04-09 17:33 mtdblock7

brw------- root root 31, 6 2011-04-09 17:33 mtdblock6

brw------- root root 31, 5 2011-04-09 17:33 mtdblock5

brw------- root root 31, 4 2011-04-09 17:33 mtdblock4

brw------- root root 31, 3 2011-04-09 17:33 mtdblock3

brw------- root root 31, 2 2011-04-09 17:33 mtdblock2

brw------- root root 31, 1 2011-04-09 17:33 mtdblock1

brw------- root root 31, 0 2011-04-09 17:33 mtdblock0

brw------- root root 7, 7 2011-04-09 17:33 loop7

brw------- root root 7, 6 2011-04-09 17:33 loop6

brw------- root root 7, 5 2011-04-09 17:33 loop5

brw------- root root 7, 4 2011-04-09 17:33 loop4

brw------- root root 7, 3 2011-04-09 17:33 loop3

brw------- root root 7, 2 2011-04-09 17:33 loop2

brw------- root root 7, 1 2011-04-09 17:33 loop1

brw------- root root 7, 0 2011-04-09 17:33 loop0

brw------- root root 1, 0 2011-04-09 17:33 ram0

brw------- root root 179, 1 2011-04-09 17:33 mmcblk0p1

brw------- root root 179, 0 2011-04-09 17:33 mmcblk0

I like to mount the second partition ext2 I created and bind it to /data/sdext2 but really dont know how....

Would you implement support on next version?

Thank you
[Android Apps and Games] ad3qz:
Help,

link2sd still can't see the second partition, even i did the first partition with fat32 and the second one with ext2.

i also tried to create both partition with fat32.

did i miss something?
[Android Apps and Games] roninxt:
So when you select ext2 on the first run of link2sd there none detected? Hmm if there's none detected then you were not successful in creating the 2nd partition.
[Android Apps and Games] roninxt:
Why would you partition your internal storage and use link2sd on it? I mean it's the internal storage after all.
[Android Apps and Games] nikctsh:
Helps needed ! Urgently !

Bakpinar ! This time really need your helps ! Recently , i have bought a kingston 16gb sdcard class 4 , and i have partition an ext2 partition as well . So, i have copied the ext2 files to my sdcard . Then , i just simply copy all the files in sdext2 (which i have copied to sdcard) to the new sdext2 of my 16gb sdcard using root explorer . After i reboot with the new sdcard , those application doesn't show up anymore . However , if i reboot with my "old" sdcard , those application will appears . What else can i do ? I really need the new sdcard urgently . Thanks in advance . Hope to receive your reply as soon as possible because this is really an URGENT ...
[Android Apps and Games] ChungHung.Chen:
Hi, it maybe caused by wrong permission. Please use "Root Explorer" to verify.

Right apk files permission should be "User: Read & Write", "Group: Read", "Other: Read".

After permission corrected, reboot and see if apps is back.

Another way is using "Root Explorer" to ZIP "old ext2" and copy ZIP file to "new SD", then use "Root Explorer" to UNZIP into "new ext2". This should be preserve the original permissions.
[Android Apps and Games] bakpinar:
Yes, incorrect file permissions may cause the links are not shown, you can check permissions with the files that are on your old sd card's ext2 partition.

And, while your new sd card is inserted try re-install an app then link it to see everything works...
[Android Apps and Games] szabof1:
Hi all,

I should change to a high capacity SD card and I can't wait for bakpinar's new development on archiving the 2nd partition.

How could I move all my linked applications to the new card without the need of reinstalling and relinking them? I have quite many, so the standard way would need long time.

Thanks in advance
[Android Apps and Games] jacebu:
Galaxy 5 follow-up

Hi Bakpinar,

I too am a Galaxy 5 user. Used Universal Androot so phone is rooted. Downloaded the latest version of link2sd from market, and formatted my SD partitions to FAT32 using Mac Disk Utility after the app said that it didn't recognize any of the ext versions when it was formatted as EXT first. Now I'm sure they're both FAT32 but when you say that they both have to be "primary", how do you do that?

Not well versed in code either. Any help is appreciated.

Thanks.
[Android Apps and Games] nikctsh:
Thanks guys ! Thanks a lot ! It works well after i change the permission . Now i can complete my assignment in time . Everything work fine so far after i reinstall all of them , except for 2 application , one of it is fruit ninja . The matter is like this , when i click on reinstall in link2sd for the fruit ninja , it did "installing" but the result comes out with a "application not installed" message . So , i tried to remove the link . From then , it dissapear from link2sd as well as application drawer . Since i unable to find it in setting>manage application, I removed all its file from /data/data and data/app . Then when i launch manage application again , it appears with a file size of 0.00 b . I just uninstall it . When i want to install it manually again from my sdcard , the message "application not installed" still comes out . Is there any suggestions ?
[Android Apps and Games] beez_ahead:
it works :D
[Android Apps and Games] ChungHung.Chen:
There are three path for installed app and you were just cleaned two of them.

The missing one is /data/dalvik-cache, you may use two Link2SD function to verify.

1. More->clean up the dalvik-cache

2. More->clean up the 2nd partition

Perhaps there are some mistake in linked app.
[Android Apps and Games] nikctsh:
What is that 2 actually ?Is the clean up 2nd partition same as format the ext2?
[Android Apps and Games] danceswithbongs:
No formatting, what it does is find the apps that are no longer linked or the dex/dalvik from an app.

This will occur when you update an app that was linked but the link app doesn't recognize it's an update perhaps due to any change in the name of the app.

Seems to happen with some of the tmobile themes.

Run the command then if it has results hit details and it will list what is there. They will only be removed if you select ok on the pop up that comes before details, the choices being ok, details and cancel.

walkin the walk while tappin the talk

danceswithbongs
[Android Apps and Games] -iD:
Now that my rom and kernel devs have updated to support ext2/3/4 I'm curious: is there any advantage to using those formats over Fat32? Seems like using Fat for the second partition was originally a kludge for unsupported kernels but is there actually any benefit to using one of the extX file systems over Fat in this application? I understand the journaling benefits when used as the Linux OS file system but here?
[Android Apps and Games] Barbatos90:
First of all : thanks a lot for this wonderfull application :)

I've got a phone with android donut (ZTE link), and managed to free some of my memory.

But there's a problem with android market : all of my applys disapeared from "my app", and I cannot update them anymore (or manually....).

Tried to clean the market's cache, and to uninstall updates : no results......

Even reinstalling an app does not make it re appear in "my app" of the market......

Help ! :)
[Android Apps and Games] HenrietteK:
Hi.

I have a question. When moving certain apps the program asks whether I want to move a cache as well. What's the pros and cons doing that?

Thanks
[Android Apps and Games] Barbatos90:
The answer is : do not link dalvik-cache, this is why app disappear from the market.
[Android Apps and Games] goodoane:
You are wrong there is an option to fix market. Press menu and you will see.
[Android Apps and Games] MersauX:
I've tried several times to make this work, I did everything as described, but every time the same error, it can't create the mount script, it says no space left on the device. I tried rebooting and reformatting and everything.

I have a rooted 2.1 HTC Hero with ClockworkMod recovery. Any suggestions?
[Android Apps and Games] ChungHung.Chen:
Some HTC android phone have an lock in NAND, so you can't modify /system.

Please S-off (Security-Off?) first then Link2SD.
[Android Apps and Games] MersauX:
Thanks for the reply, I knew it wouldn't be as simple as I thought. I'm fairly new to Android, is there a simple way to S-off on HTC Hero GSM, I've found unrevoked, but it works only on HTC Hero CDMA?
[Android Apps and Games] nikctsh:
Thanks for your concern . But i have tried to remove all the files that you have mentioned , it still unable to be installed . Love the game so much . Will really depress if it cannot be installed .
[Android Apps and Games] MongooseHelix:
You can flash Modaco's unlocked SPL from recovery to get s-off. It is possible to permanently brick your phone if the flashing process fails so be careful.
[Android Apps and Games] bakpinar:
Can you monitor adb logcat while the app is installing to see what is going wrong and post the output.
[Android Apps and Games] nikctsh:
erm...sorry i don't know what is that as well as how to monitor that thing...
[Android Apps and Games] bakpinar:
Easiest way is to install a logcat viewer application (I recommend "aLogcat" from the market) .

After installing the aLogcat try to install your fruit ninja game.

Then open aLogcat application, you will see the logcat records, from the menu save these records to a file and send this file.
[Android Apps and Games] AfroLoots:
Hey guys,

I've had the app for awhile but I never bothered seeing as I probably have a class2 SD.

Anyways, I got curious and found out about the second partition. I had trouble getting it to work but I found a solution;

Well I got it working with Paragon Partition Manager. I created two ext3 BUT I had to modify cluster size to 4.

Link2SD wouldn't recognize 2 cluster ext3 and it couldn't mount 8 cluster ext3.

I hope this helps someone. Lates :)
[Android Apps and Games] Dimmz:
Cant wait for the new version. Excellent work
[Android Apps and Games] Josue_181:
I run this application on my device following the steps posted on another forum.

Many thanks to the developer for this excellent application and their hard work.
[Android Apps and Games] szabof1:
I changed my SD card and moved my linked apps like this (my 2nd partition is ext2):

1. I have copied /data/sdext2 to my PC using adb:

adb pull /data/sdext2

2. changed SD card

3. copied the files and the dalvik-cache directory to the new SD card

4. started Root Explorer, selected the files of the old SD card's ext2 partition, chaged to /data/ext2, issued paste

5. restarted the phone

It worked for my Samsung Galaxy 3
[Android Apps and Games] nikctsh:
I have do as you said but when i open the alogcat application , the logs just keep on running . It doesn't seem like it will comes to an end . What should i do ?
[Android Apps and Games] bakpinar:
you can save to a file from "menu -> save" or

you can directly send via mail from "menu -> send"
[Android Apps and Games] :
Samsung Beam/Halo

Hi! Just want to confirm if this can also be used by Samsung Halo/Beam (eclair). I tried to partition the memory card but after inserting it, it says "The Second Partition not found on your SD card"

Just partitioned a 4GB Sd card FAT32/FAT32 also tried FAT32/EXT2 bought in Primary partition but still no success. :confused:
[Android Apps and Games] kenship:
Thanks!

This app is the best since I have the phone. Everything is easy and works as said. Although I wish there would be a check box to multi-select (maybe I miss) but it still is the best!
[Android Apps and Games] nikctsh:
View attachment alogcat.2011-04-14-09-06-40+0800.txt

Here is it . I open and save the logs as soon as i try to install fruit ninja . Thanks
[Android Apps and Games] ChungHung.Chen:
Dear nikctsh,

I've seen an "Replace" instead of "Install" in log file. Perhaps you didn't uninstall clearly.

Please use App Manager to find if any app named like "com.halfbrick.fruitninja".

If so please uninstall the app and try to re-install.

This will happen if you just remove apk/divaik-cache/data without using app manager to uninstall.

Hope this information can solve your problem.

BR,

ChungHung.Chen
[Android Apps and Games] nikctsh:
Thanks for your reply . Yes , because i have installed the older version of fruit ninja since i was unable to install it . The older version can be installed without problem , but not for the version of fruit ninja which i have installed before . i have tried to uninstall the older version of that game but the problem still the same...
[Android Apps and Games] MongooseHelix:
First off, I'll say that there's really no point in choosing ext3 unless your kernel doesn't support ext4 but you want journaling. Other than that, ext3 provides nothing else over ext2, is slower than both of the others and is missing ext4's other features. As for the advantages ext partitions have over fat32, I came up with an incomplete list that people should correct and/or add to as they please..

maintain access to partition(and any linked apps) when mounted through usb

widgets will still work for linked apps

better performance/speed

ext4 features - extents & delayed allocation(possible data loss issues) for less fragmentation and journaling to help avoid corruption but associated overhead reduces performance & adds wear to sdcard

min file size > fat32's 4GB limit (not likely an issue for most people)

The main reason you'd want to move cache is to free up more space on the internal /data partition. An apps dalvik cache is typically stored in /data/dalvik-cache but if you are running low on space, Link2SD can move it to your second partition along with the apk files. The downside to doing that is slower access to those cache files as they are no longer on the fast internal NAND. Personally, instead of using Link2SD to move those files to my sdcard, I use a script to move them to the internal cache partition where there is plenty of unused space. It also makes more sense for them to be on the cache directory in the same folder(/cache/dalvik-cache) as the system app cache files.
[Android Apps and Games] lichan:
How does one remove the Link2sd app. I uninstalled the apk but have been unable to change the mount point of the second sd partition. I changed /system/etc/init.d/11link2sd and /system/etc/install-recovery.sh but after reboot it still shows up mounted as /data/sdext2. I have been unable to "umount -f /data/sdext2". What other script(s) are mounting it at reboot? Not that there's anything wrong with Link2sd but I want to try some other methods before deciding which to settle on. Thanks. (I searched the thread but couldn't find anything beyond the two scripts mentioned above.)
[Android Apps and Games] -iD:
@MongooseHelix: thanks for the clarification. Sounds like ext2 is the best choice if there's really a meaningful speed advantage over FAT. Fwiw all my widgets are working just fine with FAT32...

I'd never considered the speed disadvantage of moving the dex files; is this just on startup or during use as well?
[Android Apps and Games] szabof1:
This solution of yours could be an option in Link2SD: link dalvik-cache to 1.) SD card (existing option), 2.) internal /cache partition. I would be happy to see it in Link2SD.
[Android Apps and Games] -iD:
+1 but it's just icing on the cake.

This excellent app already makes user space a nonissue on the OG Droid.

Thank you bapkinar!
[Android Apps and Games] psirage:
Thank you for offering the excellent app for free. I am running link2sd on rooted Motorola XT720 2.1.

I have the 2nd partition as 1GB ext3, mounted as /data/sdext2

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

All the linked apps work, but sometimes after a reboot, I start having problems.

Some would force close: Eg. Amazon App, AndroXplorer, FBReader etc

Some would work but lose internet. Eg. PFinance, XScope etc

Some are always okay. Eg Facebook, FruitNinja

I see earlier post and I think I am seeing the same thing.

"Broken Android permissions may cause force closes.

Can you try to re-install one of the applications which has force close problem, and then if it works create link again with Link2SD."

Reinstalling applications definitely makes the problems go away. But having to reinstall all these apps are time consuming, and I have to put back all the shortcuts.

Is anybody seeing this issue? Is there a way to prevent the apps from losing permission, such as extra argument to the mount command or use ext2 instead of ext3?

Thanks.
[Android Apps and Games] javaman70:
After following instructions and searching this forum I can't get the 2nd partition to show up. link2sd shows 2nd partition but no space totals. I am using FAT32 format because ext2/ext3 won't work. attached is screenshot of what I get is this normal or am I doing something wrong. thanks :confused: this is for OG D1
[Android Apps and Games] Bling_Diggity:
Getting this error message:

"Create Link Failure

: cannot create /data/sdext2/AnyApp.apk: read-only file system"

For some reason sdext2 is read-only. Any idea how to fix this?
[Android Apps and Games] Mattix724:
Have you used clockworkmod to create an ext3 partition? I have no issues whatsoever using ext3 on my zio m6000
[Android Apps and Games] Bling_Diggity:
That's exactly how I created it.
[Android Apps and Games] Petrovski80:
Works nicely on my samsung galaxy ace. Very handy because the SGA only comes with 178mb internal storage (mid range phone, you get what you pay for). Only linking the dalvik cache does not work. Error: no dex files found to link.

Kudos for the dev!
[Android Apps and Games] nikctsh:
We are having the same phone :) . However , my linked application will only experience force close when the sdcard was unable to be detected for some reasons during boot time . I've discuss with bakpinar and tried a lot of solution as well including fix permission , run a command , using root tools , rom manager and a more , but none of them seem to be work , so you don't have to waste time testing with the methods i've mentioned . However , recently i found an application named "root and me" . Well , i don't know what is that thing but in the description , it was written "*NEW UPDATE FIXES APP CRASH AND FIXES UNNECESSARY PERMISSIONS! DISREGARD COMMENTS!" . I haven't try with it yet . Perhaps you can try using that to FIX UNNECESSARY PERMISSIONS ? And if you have tried and it works , please let me know . If it doesn't work as well , you don't have to worry much because bakpinar is about to release a new version with multi-select function , maybe there is an option to reinstall (hope so) ?
[Android Apps and Games] durdur:
Hi,

Thank you for very useful app.

I installed Google Earth and Link2sd worked fine. But I found that the lib directory in data/data takes 16 mb. Is there a way to link this one too automatically by Link2sd?

I have tried symlink and it seems to work but it's a manual process.

Thanks
[Android Apps and Games] sanmit:
Try fix permissions in recovery mode.
[Android Apps and Games] manolone:
is it possible to have a link2sd version that along with apk and dalvik moves data for the linked app?

thanks
[Android Apps and Games] bakpinar:
Yes, next release will exactly do that.

Hereby i'd like to give some information about the new version.

Iniatially I was intending to link whole data directory to SD card but I decided not to link data directory to SD card for security reasons. Let me try to explain;

Android uses the concept of a sandbox to make interapplication separation.

For this, Android uses process-level security, user and group IDs of the Linux OS.

Applications run on their own Linux process and are assigned a unique user ID.

Private data directory of the application is assigned to that app user ID and therefore another application can not access there.

If you move the private directory to SD card 2nd partition you have to keep the ownership of the files for the security.

The problem is that keeping ownership is not possible on some filesystems, for example the FAT file system has no provision for ownership or permissions.

So, instead of linking data directory I added ability to link library files to SD card.

These files can be big, even bigger than the apk files especailly for the games and linking them will free up some space on the internal storage.

I added lib size info both to main list page and app detail page so you can see how much space you'll free up if you link it.

Another improvement is that, you can link/unlink apk, dex and lib files separately, that is, you can link or unlink all three or any two of three or even only one of them.

Another new feature is to link new installed applications to SD card automatically (It will be optional, you can enable/disable this feature from the settings menu).

And release date, I hope I can release it in next week.
[Android Apps and Games] mallaccra:
thanks bakpinar for this awesome app, your precious time and dedication.....
[Android Apps and Games] sanmit:
Cheers to that mate!
[Android Apps and Games] javaman70:
I am using OG D1 running LGB. I partitioned sd card 2nd partition is ext2 when i go to run Link2Sd i get this message... " Mount script error Mount script cannot be created. mount:No such device " any help would be appreciated. :confused:
[Android Apps and Games] sanmit:
Try selectin ext3 option.
[Android Apps and Games] Almighty1:
It's easy to fix and you don't have to reinstall all the apps either.

Download ROM Manager from Android Market and then run ROM Manager, click on Fix Permissions under Utilities which will fix file system permissions including Force Close problems.
[Android Apps and Games] javaman70:
tried selecting all options with same result.:(
[Android Apps and Games] elcede:
Bakpinar: is there will be a backup option in new release? I'm asking because I'm stuck on rom that drain my battery very fast and I can't change it after making do many apps linked to sd (now they won't fit :) ).

Thx very much for this app.

Lcd
[Android Apps and Games] szabof1:
There might be an option to reinstall and relink all the apps that were previously linked to the 2nd partition and are still there.