yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jimlange:
Help! /data/sdext2 not mounting

/data/sdext2 is not mounting during boot. The odd thing is that sometimes it does, and sometimes it doesn't. In an attempt to get it working again, I rebooted into recovery and formatted /sd-ext (my ext is formatted as ext2). Upon reboot, /data/sdext2 was mounted. I linked a few programs to SD. However, after the next reboot /data/sdext2 was not mounted.

When I run /etc/init.d/11link2sd through Script Manager (as root), I get:

mount: Invalid Argument

mount: Invalid Argument

I can mount the partition as /sd-ext in recovery, however.

To further debug the issue, I created a file /data/bootdebug.log and changed the scripts (11link2sd and install-recovery.sh) as follows:

#!/system/bin/sh
#added by link2sd
sleep 2

date >> /data/bootdebug.log
echo "Running install-recovery.sh" >> /data/databootdebug.log

mount -t ext2 -o rw /dev/block/vold/179:10 /data/sdext2 >> /data/databootdebug.log

mount -t ext2 -o rw /dev/block/mmcblk1p2 /data/sdext2 >> /data/databootdebug.log

After rebooting, the contents of this file is:

Fri Oct 28 13:01:20 PDT 2011
Running install-recovery.sh
Fri Oct 28 13:01:21 PDT 2011
Running 11link2sd

The lack of any errors from the mount commands would suggest that they are successful, but /data/sdext2 is still not mounted. Both scripts have the correct ownership and permissions.

What else can I do to debug this?

EDIT: I added the line:

mount >> /data/bootdebug.log to install-recovery.sh after both mount commands. The output now looks like this:

Fri Oct 28 14:15:39 PDT 2011
Running install-recovery.sh
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock3 /system yaffs2 ro,relatime 0 0
/dev/block/mmcblk0p1 /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p2 /cache ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
Fri Oct 28 14:15:40 PDT 2011
Running 11link2sd
[Android Apps and Games] jimlange:
OK, I found and fixed the problem. When I reformatted my sdext from recovery, it formatted it as ext3, but the link2sd boot scripts were trying to mount it as ext2. I changed the scripts to ext3 and now all is well!
[Android Apps and Games] bsoplinger:
Question...

I know nothing about Android but know UNIX and Linux. Does Android have stdout and stderr like *nix? In other words, should those redirects have use stderr instead of stdout and done 2>> instead of just >> because its the error condition

you're interested in?
[Android Apps and Games] kslice917:
I am using Cyanogen 7.1 Stable Release. I don't have the time right now, but I'll do some research on the Cyanogen init sequence and see if I can find anything. But thank you for what you've been able to find so far, Chung-Hung.
[Android Apps and Games] jimlange:
Doh! You're probably right--didn't think of that.
[Android Apps and Games] jhonnyx1000:
The ext2 partition can't be mounted on mine. So I just use an ext3 partition.
[Android Apps and Games] velnens123:
Can something bad happen if I use Link2SD with Apps2EXT method? It's build in ROM.
[Android Apps and Games] kngharv:
partition issue and link2sd: solved

Dear all:

One thing I noticed about link2sd is that in order to make it work, the ext3 partition has to be pristine, i.e. you can't have ext3 partition that has files on it already.

I made a mistake by moving some of the /app files to the ext3 immediately after I partitioned my SD card (I use GParted on my Desktop Linux). I couldn't get link2sd mount my ext3 partition.

as soon as I reformat the ext3 partition using the same Gparted, but not moving any files to that partition, and insert it to my phone immediately, link2sd worked like charm.

I don't know why this is the case, but it is something I've experience and I thought someone else may find it useful.

Harv
[Android Apps and Games] aaanadie:
Terminal Emulator

Hello,

I have

phone: HTC EVO 4G, hwr 003

sdcard: 16GB class 10, 128MB swap, 2GB ext3, rest fat32

recovery: recovery-RA-supersonic-v2.3-hausmod-revA

rom: classic-v003-10-27-FINAL (sense 1.0)

kernel: ChopSuey-v.9.2.7-UNIVERSAL

Link2SD 1.9.5

All is working perfect, except Better Terminal Emulator & Terminal Emulator cannot flash any recovery image:

su

flash_image recovery /sdcard/recovery-RA-supersonic-v2.3.img

then I got

mount: mounting /dev/block/vold/179:2 ... busy

Same thing using Better Terminal Emulator or Terminal Emulator.

I used a lot both apps to switch between RA 2.3 & TWRP 1.1.1.

Last time I flashed RA 2.3 because TWRP doesn't work well with ext partitions, then I partitioned, flashed rom, etc, but I realized that I flashed RA 2.3 instead my favorite HAUSMOD version (just a picky thing but I always need something to flash:D). When I tried to flash hausmod version I got the issue, emulators cannot flash any image.

Any help?

Thanks in advance.
[Android Apps and Games] Great Offender:
htc incredible

Wildstang's Desire 3d v5

512mb ext2

I have read some of this thread and searched many terms and found no one experiencing the same problem.

Everything appears as it should as far as the partition mounting and reading. I can open the app and see how much space is being used by the apps, how much is left etc... I can not see anything in Android Commander. Shows blank???

Second more urgent problem is doing a nandroid. Breaks it every time. After the backup is complete and the phone tries to restart it gets stuck at the splash screen. This hasn't happened once or twice but every time. I hate to make any changes to the phone because I cannot nandroid. Any ideas???
[Android Apps and Games] koko008:
Hi everyone!

I set up the partiotion as the tutorial says in the first post (I used FAT32), Link2SD could mount it, I was able to link some apps, and everything was fine, till I had to reboot... Now my phone says 'Insufficient Internal Storage' all the time. The internal storage was like 35 MB before reboot, it dropped to 17 MB after reboot. Any suggestions, why?
[Android Apps and Games] jhonnyx1000:
You could re-format your SD card. Also are you sure the SD card the FAT32 partition is mounted?
[Android Apps and Games] jimlange:
"Link dalvik cache files" command

Bakpinar,

Can you explain what the "Link dalvik cache files" function does in the following situations:

/data/dalvik-cache contains a newer version of the .dex file than what is on sdext2 (This is the usual case after clearing dalvik-cache and rebooting).

/data/dalvik-cache contains an older version of the .dex file than what is on sdext2 (could be the result after a restored backup).

Sdext2 is is missing a .dex file that was previously linked, but the .dex files exists in /data/dalvik-cache.

/data/dalvik-cache is missing a .dex file that is on sdext2.

/data/dalvik-cache contains a valid link to a .dex file on sdext2, but the APK file is newer.

/data/dalvik-cache is out of space.

I'm using the Ext4 4 All mod and moving my dalvik-cache to the 150MB partition of my HTC Incredible that formerly was mounted as /data/data. However, because I have lots of apps installed, I run out of space for .dex files, so I'm using Link2SD to move some of the .dex files to sdext2. One of the side effects of this is that if I flash a new ROM, I must clear dalvik-cache and during the boot process, /data/dalvik-cache (now limited to 150MB) fills up and not all .dex files are recreated. Running the "Link dalvik cache files" function does work at this point, but I've noticed that some apps have vanished.

My current workaround is a special script flashed from recovery to remove the .dex files from the (relocated) dalvik-cache partition, but preserve the links. This should prevent my dalvik-cache from filling up during boot, but the new ROM might contain newer (or older) copies of apps that I had previously linked.
[Android Apps and Games] bakpinar:
"Link dalvik-cache files" function finds the applications that their apk files are linked but dex files are not linked and then links the dex files of them.

"Clean up the dalvik-cache" function scans /data/dalvik-cache directory and finds the files that are not associated with any apps (i.e. garbage files).
[Android Apps and Games] mpbm23:
After every reboot i need to relink library files with link2sd.

Why that happens?
[Android Apps and Games] roinboin:
Hi

I rooted my phone and I partitioned my sd card into 2 partitions , both FAT32 primary 3.7GB and when i open link2sd and select either ext 2 or ext 3 I get an error message

"Mount scrip error

Mount scripe cannot be created.

mount: no such device

ext 2 may not be supported on your device. Try FAt32 on the second partition"

Has anyone come accross this problem before ?
[Android Apps and Games] rekuhs:
Clean up the 2nd partition

I've had a bit of a look and cant find anything but if this has been explained before please fell free to ignore.

What exactly does Clean up the 2nd partition do?

I tried it once and it deleted everything - is that all it does...??
[Android Apps and Games] bakpinar:
"Clean up the 2ndk partition" function scans /data/sdext2 directory and finds the apk and dex files that are not associated with any apps (i.e. garbage files).

When finished, shows the files it found and asks confirmation for delete.

It doesn't delete anything without your permission.
[Android Apps and Games] Mickets73:
A Donator asks: Re-install/recover data from 2nd partition

Hello Bakpinar,

Your app is great! I donated immediately!

I use xRecovery to make backups and, eventually, restore one if something goes wrong. And yesterday, something did go wrong, and I had to restore a backup from the previous week.

But during that week I had linked several apps to the 2nd partition, and now that I restored a previous backup, the links no longer exist. But the APKs etc are all there on the 2nd partition: Link2SD reports the data as "recoverable space".

I imagine that it's not simple to just re-create a link to the data on the 2nd partition, as the system must know that application is installed. So I thought of accessing the 2nd partition via Linux and getting the data from there.

But is there not an easier way? Maybe Link2SD can re-create those links that don't exist anymore? Or at least offer to move/copy the data to a folder on the first partition, so the user can re-install the apps from there?

Also, an option to dump the data list would be nice, so the users could have a list of what got left behind on the 2nd partition and now needs installing again.

Thanks a lot for your application and support,

Mickets

Xperia X8, Android 2.1

---------- Post added at 07:17 PM ---------- Previous post was at 07:15 PM ----------

All,

There's literally hundreds of pages of information on this thread.

Instead of searching through endless threads, wouldn't it be nice to have a Wiki for Link2SD? Maybe something at http://www.wikidot.com/ or something like that?

Just an idea.

Mickets
[Android Apps and Games] Wilson Fung:
Work On SD Card Version Android?

Hello Guys

Does the Link2SD work on SD Card Version Android. I am using HD2 and putting android system on SD card. I install the link2sd from market with SD card manually partition to FAT32 and EXT3. When I run the Link2SD, it said that there is error in mounting the EXT3. What can I do?
[Android Apps and Games] jimlange:
When the DEX file is relinked, does it recopy the DEX file to sdext first or does is just link to the DEX file that is already on sdext?
[Android Apps and Games] Dimak451:
where the hell is the 1.9.6 apk to download?
[Android Apps and Games] mattiadj:
Guys please help me. I don't understand if is my fails or is this app with this rom or others!

The situation is this: i have desire hd and 2gb ext4 partition. With rom based on sense 3 until the official leaked all works flawlessly without problems.

With rom (runny) based on sense 3.5 and all my user apps restored with titanium backup (248 apps) i have a loop of quick reboot after the restoration of something like 200 apps and a full reboot. I think is a problem of something with link2sd since during the load of apps at moment the system freezes on a notification of superuser which asserts that link2sd has obtained the superuser access. I have a lot for these notification and after shirt time it disappears but at certain moment it remains and after a while system makes a hot reboot and so on in a loop!

Anyone can help me?

Inviato dal mio HTC Desire HD usando Tapatalk
[Android Apps and Games] Kopzr:
Link2sd is moving my apps into the main data (fat32) partition, instead of moving it to the second (ext) partition, even though it recognizes and shows the second partition on the storage info option.

I've already tried repartitioning (through CWM) with no success, anyone know what might be going on?

For now i'm going back to s2e (i believe that might be the problem as i was using s2e before installing link2sd, but yes, i did reset all the settings on s2e before making the change)
[Android Apps and Games] jhonnyx1000:
Did you press 'Create Link' instead of 'Move to SD card'?
[Android Apps and Games] bakpinar:
It copies the dex file to /data/sdext2 first then links.
[Android Apps and Games] bakpinar:
Thank you.

*) I plan to add re-install and re-link the apks on the 2nd partition.

*) You can use any file manager app on the phone to move/copy the data from /data/sdext2 (2nd partition) to a folder on the first partition.

*) an option to dump, you mean exporting the app list to a text file?
[Android Apps and Games] Atzenman:
Link2sd mount error

Hi,

today i've got a problem with my link2sd on my Nexus ine.

Till yesterday ist works fine, moving apps to the second partitioon was no problem.

At the first start of the app today it tells me, that there is an error while mounting the sdext2.

Link2sd says:

Mount script error

Device is busy.

I've got no idea, what causes this error.

Can you help me? The Apps on the second partition are already funktional.

I've got an nexus one with root and stock android 2.3.6.

Link2sd has supersuser permissons!
[Android Apps and Games] roinboin:
got it working

when i opened app2sd i just scrolled down and selcted fat32

thanks for all your help
[Android Apps and Games] kngharv:
ok, didn't solve it completely... size matters

After reset, I couldn't get my link2sd to work again. After HOURS of trial and error, I found that size of partition matters.

I was using 896MB as partition size before. The reason I use this strange number is because in some other SD related software (I think it's a2sd), it had problem with ext2/ext3/ext4 partition larger than 1024MB. I deliberately kept the partition a bit smaller than 1GB for that reason.

Apparently, link2sd doesn't like that at all. After I reformat my ext3 partition to 1024MB, link2sd worked properly... everytime... so far
[Android Apps and Games] dimcho:
Read-only error (Optimus One)

OK, so, things goes like this:

My phone had Froyo stock rom and, for known reason - small memory, I decided to give a try to this nice piece of SW. All went OK, EXT3 0.5 MB partition formatted on PC, some 80 apps installed on it, worked nicely for few days and sh*t, read only-error on second partition.

To make long story short I've upgraded Froyo to Gingerbread (official rom), starting all over again and after few days... same thing again, read-only error. Browsing through forum didn't help (or I wasn't patient enough), obviously error appears for different reasons and cure is then different. I don't want to amuse you with things I've tried and pages I've googled out.

MY 'cure' is simple and and worked like a charm. Reboot in recovery, clear cache and dalvik cache, reboot, start Link2SD, filter linked apps and link them again (batch). If you have really lot of apps installed I think you'll have to uninstall them with Titanium Backup and install them again later, 'cause you'll run out of space during booting and maybe that will brick your phone.
[Android Apps and Games] Kierrok:
Filesystem errors can cause that. Try ext2. I'm using it with my O1 for months and never had any problems.
[Android Apps and Games] dimcho:
:confused: Same filesystem error on vfat and ext2?!? Maybe it's my SD card. It's 16 GB class 10 Kingston. OK, next time (if this happened) I'll put new SD!

Maybe some application did all that mess and cleaning cache fix that.

P.S. I forgot to say that I even tried to fix permissions from recovery, read-only error disappear but lot of applications had FC.
[Android Apps and Games] Kierrok:
Yep, try another SD card. Yours may be dying...
[Android Apps and Games] Nyssaki:
I'm also having trouble with this.

At first I thought it might be because my 2nd partition wasn't created correctly, so I used EASEUS Partition Master to create the second partition with FAT32 extension. Link2SD Storageinfo still says /data/sdext2 mount not found, and when I try to recreate mount scripts it gives me: "mount script cannot be created. Mount invalid argument". Which results in Create and Remove link buttons to be greyed out.

I tried to attach a print screen of the results of the mount command, but it wouldn't allow me to link external links as I am regarded as "new user" and might be spamming.....

Also.... the same sdcard worked perfectly fine with App2SD on a HTC Desire without any hassle... now I switched to x10 mini pro and therefore am trying out Link2SD for the first time!
[Android Apps and Games] Kierrok:
Is your device rooted? If so, are you sure you gave superuser permission to Link2SD?
[Android Apps and Games] koko008:
Boot into CWM, mount your sdext, and Link2SD should automatically recreate the mount script. I did for me :)

I have a problem: internal storage is at 30 MB before reboot with Link2SD, internal storage is 11 MB after reboot... What could possibly the problem be? Everything seems fine, all the links are created, I can see the ext2 partition in Link2SD, and still...
[Android Apps and Games] jhonnyx1000:
Could be a linking error. Try to relink all apps that are about 19MB.
[Android Apps and Games] koko008:
Didn't help, I uninstalled all apps, but the storage seems to be messed up, both internal and partition. I'm doing a factory reset now, and we'll se... :D

I really like this app, but it's giving me a real headache...

EDIT

I had to reflash the whole system... Damn, I'm gonna give one last shot, and I'll go back to hybrid data2sd if it doesn't work.

EDIT 2

Didn't work... :S
[Android Apps and Games] Nyssaki:
yes, I am sure that my device is rooted (since I'm able to adb rm and pull apk's from terminal), and Link2SD also pops up a message saying it has been granted superuser permissions..
[Android Apps and Games] Kierrok:
Weird! There are many reports of success with your device. They use ext2.

---------- Post added at 04:45 PM ---------- Previous post was at 04:43 PM ----------

If you are using a GB rom lib files get unlinked when rebooting.
[Android Apps and Games] koko008:
What do you mean by GB rom? I have a Samsung Galaxy 3, and I'm using Kyrillos' ROM 8.2.1 JPS, I was just searching for some info on Link2SD.

Lib files get unlinked? Most of my apps didn't even have lib files - at least Link2SD said so, when I was tryin to create links. Anyway, if this is the problem, how can I solve it?
[Android Apps and Games] Kierrok:
GB = Gingerbread

And you can't solve it. It's a GB "feature".
[Android Apps and Games] th3_jok3r:
Hi,

I'm getting a strange problem, sometimes when I move the app to sd I got the following message.

INSTALL_PARSED_FAILED_BAD_MANIFEST and the move fail.

how I fix that?

My Superuser app uptaded to 3.0. Maybe some permission??

thanks
[Android Apps and Games] jimlange:
GB rebuilds the lib files, but Link2SD will relink them (after a bit). I just avoid linking the lib files because it made the boot process much longer.
[Android Apps and Games] jhonnyx1000:
Re-install the app and then try again. There's probably something with AndroidManifest.xml file.
[Android Apps and Games] koko008:
The ROM I use is 2.2 based, and I didn't link lib files... Now what? :D
[Android Apps and Games] Kierrok:
True! The last version has lib relink. I don't link them too. But that doesn't solve the problem when the free internal memory isn't enough for the libs...

Can't think of anything else. :eek:
[Android Apps and Games] koko008:
Sure, no problem, I'll stick to hybrid data2sd until we get an update for our ROM, and I'll give an another try. Thanks, anyway ;)
[Android Apps and Games] Mickets73:
Yes, I mean to dump the list to a file, or share it with another app. But that was just to have a list of what's on the 2nd partition. If I can access the 2nd partition from a file manager, then it's not needed..
[Android Apps and Games] fabioferreiracs:
Error link dex's

When I link Dex's the program crash .so i need reinstall the aplication and dont link Dex's . Can help me ?

Android 2.3 in Xperia mini CyanogenMod.
[Android Apps and Games] bakpinar:
That's the first time I heard that problem.

Can you post the logcat logs with any logcat viewer application or from terminal, when the application crashes.

It may help to find out what is wrong on your phone and make a fix.
[Android Apps and Games] Mickets73:
But... wait a second: which Android file manager allows me to see the 2nd partition (the one used by Link2SD)? I checked Anttek and SuperManager, root versions, and all I see is "SD Card" and the main partition.

:confused:
[Android Apps and Games] imakul8:
I'm using Absolute System Root Tools.

https://market.android.com/details?...EsImNvbS5jYW52czIzMjEuYWJzb2x1dGUuc3lzdGVtIl0.
[Android Apps and Games] bakpinar:
The 2nd partition is mounted as "/data/sdext2". You can use any file manager to explore that directory.
[Android Apps and Games] decmk:
Today i linked libs of leatest version of adobe flash player and flash don't work anymore, browser disappear when try to play video.

Same is with Opera Mobile and Dolphin HD.

When you remove link on libs, everything work.

This is problem of flash player or link2sd?

Gingerbread 2.3.3 RUU Rooted S-Off with Link2SD partition 512MB
[Android Apps and Games] tmz83:
there is no more market-fix option. Many applications on the market results not installed. How can I fix this?
[Android Apps and Games] bakpinar:
Try to clear the user data & cache of the Market app.
[Android Apps and Games] imakul8:
Great app..just had to figure out the auto mounting issue..now it's perfect!..always did miss this option from my Nokia phones.
[Android Apps and Games] jhonnyx1000:
The apps keep on disappearing and coming back every 2-3 days :(

Didn't find any market-linking apps useful.
[Android Apps and Games] dimcho:
Problems with connecting to Market? Try "Set DNS". Connecting to Market is matter of milliseconds, works GREAT!!!
[Android Apps and Games] yuhinso:
Help guys,,,

after installing Link2sd with FAT32 partition,

everything seems fine,

after moving couple apps to FAT32,

i cannot connect to any google service (market, google talk,etc)

I cannot connect to WiFi too (it cant search any hotspot)

Any thoughts??
[Android Apps and Games] dimcho:
:confused: it doesn't look like link2sd. anyway, remove links uninstall l2s reboot and try connection.
[Android Apps and Games] marcovchb:
Greetings, great app, I have used it for at least 3 months now, but I recently upgraded my SD card, so I again made a bigger partition (4GB) for apps and stuff, yet Link2SD reports 3GB, so I remade partition to 2GB, but again Link2SD reported 1GB. I'm a bit lost here, where is the rest of my memory ;)