Ok guys, this is my first post since i've joined this forum for a long time.
I've a question, how does Link2SD work on stock ROM without init.d support?
I mean the mount script. How does it work?
For example:
I've mounted my 2nd partition to /data/myext via terminal emulator. everytime i am restarting my phone the partition just lost (unmounted) so i've to mount it again via terminal emulator manually.
Are there any way to mount my partition automatically every boot?
Sorry for my bad english
It's the work of a custom kernel sir. Not bad for a first post, you created a topic in a wrong section. This should be in Q&A.
Sent from my GT-S5360 using xda premium
CrazeXDA said:
It's the work of a custom kernel sir. Not bad for a first post, you created a topic in a wrong section. This should be in Q&A.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I'm sorry if i wrong posted here.
But, link2sd doesn't need a custom kernel to run sir. Link2sd can run in stock rom + stock kernel and without init.d support.
crash.override said:
I'm sorry if i wrong posted here.
But, link2sd doesn't need a custom kernel to run sir. Link2sd can run in stock rom + stock kernel and without init.d support.
Click to expand...
Click to collapse
As far as I know, Link2SD uses a init.d script to mount the partition of the sdcard at boot, so a kernel with init.d support is required for the auto-mounting at boot.
I heard about an app wich enables init.d support on stock kernel, but i dont remember the Name nor if it was here in SGY section or in Android apps and games section.
Also I think, Tasker can mount the partition at boot, if you make the boot condition as trigger for a shell script, wich mounts the partition, but I dont know, if ist working this way.
adi2500 said:
As far as I know, Link2SD uses a init.d script to mount the partition of the sdcard at boot, so a kernel with init.d support is required for the auto-mounting at boot.
I heard about an app wich enables init.d support on stock kernel, but i dont remember the Name nor if it was here in SGY section or in Android apps and games section.
Also I think, Tasker can mount the partition at boot, if you make the boot condition as trigger for a shell script, wich mounts the partition, but I dont know, if ist working this way.
Click to expand...
Click to collapse
I think Link2SD doesn't use init.d, because i'm using a STOCK ROM and STOCK Kernel without init.d support and link2d is still working. I've also checked my /system/etc folder, and there is no init.d folder. So LINK2SD doesn't use init.d i guess
Btw, what is that tasker? Can you explain me? I'm new to linux & android.
crash.override said:
I think Link2SD doesn't use init.d, because i'm using a STOCK ROM and STOCK Kernel without init.d support and link2d is still working. I've also checked my /system/etc folder, and there is no init.d folder. So LINK2SD doesn't use init.d i guess
Btw, what is that tasker? Can you explain me? I'm new to linux & android.
Click to expand...
Click to collapse
Link2sd only uses the init.d folder if you partitioned your sd card.
Sent from my GT-S5360 using xda premium
CrazeXDA said:
Link2sd only uses the init.d folder if you partitioned your sd card.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Sent from my GT-S6102 using Tapatalk 2
I've partitioned my sdcard. I've created mount script to mount my 2nd partition. I've seen /data/data folder, it's a 2nd sdcard partition, right? So the 2nd partition has mounted.
But you said that link2sd used init.d, but i'm using a stock rom without init.d support, i checked my /system/etc and there is no init.d folder, so my rom doesnt support init.d.
So i think Link2sd doesnt use init.d script to mount 2nd partition every boot
So, how do i mount my 2nd partition without Link2sd and without init.d support. Because link2d has done it.
crash.override said:
Sent from my GT-S6102 using Tapatalk 2
I've partitioned my sdcard. I've created mount script to mount my 2nd partition. I've seen /data/data folder, it's a 2nd sdcard partition, right? So the 2nd partition has mounted.
But you said that link2sd used init.d, but i'm using a stock rom without init.d support, i checked my /system/etc and there is no init.d folder, so my rom doesnt support init.d.
So i think Link2sd doesnt use init.d script to mount 2nd partition every boot
So, how do i mount my 2nd partition without Link2sd and without init.d support. Because link2d has did it.
Click to expand...
Click to collapse
No, you're wrong sir. Link2sd only ENABLED your 2nd partition! Without init.d support, your 2nd partition can't be mounted every boot. That's the purpose of the script, to mound the sdext2 every boot.
Btw, i think what you're asking is impossible. Sorry 'bout that.
Sent from my GT-S5360 using xda premium
CrazeXDA said:
No, you're wrong sir. Link2sd only ENABLED your 2nd partition! Without init.d support, your 2nd partition can't be mounted every boot. That's the purpose of the script, to mound the sdext2 every boot.
Btw, i think what you're asking is impossible. Sorry 'bout that.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
How about install-recovery.sh in /system partition
When I opened it with root explorer there is a command to mount 2nd partition
Code:
mount -t ext2 -o rw /dev/block/mmcblk0p2 /data/sdext2
Click to expand...
Click to collapse
Sent from my GT-S6102 using Tapatalk 2
crash.override said:
How about install-recovery.sh in /system partition
When I opened it with root explorer there is a command to mount 2nd partition
Sent from my GT-S6102 using Tapatalk 2
Click to expand...
Click to collapse
hi did you find your answer ? id like to do the same , mount a folder to another folder before the ui and apps get started
Related
Hi all,
I'm using Jelly Bean ROM on my i9100 with custom kernel.
Problem is that many apps are looking for internal memory using the path "/mnt/sdcard" (like address book export function, whatsapp for downloaded images, etc.), that should be a symbolic link to folder "/storage/sdcard0", new mount point of internal memory in JB.
I've tried SiyahKernel v4.0.1 and 4.1beta6, Dream-IRC 2.7.0 (I cannot try Dorimanx 5.65.1 cause it generates a boot loop with RootBox ROM) and all of them suffer same problem.
I've found that some init scripts (for example "fota.rc" or "init.goldfish.rc") are creating the folder "/mnt/sdcard" earlier than right init script could create symbolic link: those scripts cannot be changed cause they are part of initramfs, so kernel recompilation is needed.
I hope this thread could help kernel experts to solve problem.
Bye.
JediMaster said:
Hi all,
I'm using Jelly Bean ROM on my i9100 with custom kernel.
Problem is that many apps are looking for internal memory using the path "/mnt/sdcard" (like address book export function, whatsapp for downloaded images, etc.), that should be a symbolic link to folder "/storage/sdcard0", new mount point of internal memory in JB.
I've tried SiyahKernel v4.0.1 and 4.1beta6, Dream-IRC 2.7.0 (I cannot try Dorimanx 5.65.1 cause it generates a boot loop with RootBox ROM) and all of them suffer same problem.
I've found that some init scripts (for example "fota.rc" or "init.goldfish.rc") are creating the folder "/mnt/sdcard" earlier than right init script could create symbolic link: those scripts cannot be changed cause they are part of initramfs, so kernel recompilation is needed.
I hope this thread could help kernel experts to solve problem.
Bye.
Click to expand...
Click to collapse
._. I think this should be in the general forums?
Sent from my GT-I9100 using xda premium
MarioFan1998 said:
._. I think this should be in the general forums?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Hi MarioFan1998,
I've posted here cause problem is related to custom kernel recompilation, so I've thought that "Android development" was the right section: if it is not, I'll move thread to general forum, let me know.
Thank you.
Bye.
New kernels also affected...
I can confirm that also Dorimanx 5.65.1 kernel suffers same problem.
Now I've installed new Resurrection Remix 3.0.4 + Dorimanx 5.65.1 kernel and "/mnt/sdcard" is always an empty folder and not a symlink to "/storage/sdcard0" as it should be.
We need kernel Experts help!
Okay in the mean time try this I have used RemountSD app but edited the
directories likes so:
Original external SD location: /storage/sdcard0
Target external SD location: /mnt/sdcard
Now go to /mnt/sdcard you should now see your internal sdcard.
Note: the external SD location I actually put the directories of the internal SD card instead
so the internal SD will be mounted instead of external.
Press thanks if it works! Use this as a temporary solution!
EDIT: Noticed that after reboot it stops working. Recommend you remount on every boot for now.
MarioFan1998 said:
Okay in the mean time try this I have used RemountSD app but edited the
directories likes so:
Original external SD location: /storage/sdcard0
Target external SD location: /mnt/sdcard
Now go to /mnt/sdcard you should now see your internal sdcard.
Note: the external SD location I actually put the directories of the internal SD card instead
so the internal SD will be mounted instead of external.
Press thanks if it works! Use this as a temporary solution!
EDIT: Noticed that after reboot it stops working. Recommend you remount on every boot for now.
Click to expand...
Click to collapse
Thank you,
I've realized a different solution, an init.d script that, if folder /mnt/sdcard is empty, removes it at boot time and creates appropriate symlink.
I attach file to this post, it must be copied (extracted script, not tar.gz archive) to /etc/init.d, then "chown root.shell 00fixmount", then "chmod 0755 00fixmount".
It works for me in RR3.0.4 + Dorimanx Kernel 5.65.1, use it at your own risk: obviously it's a temporary workaround, until kernel developers will fix it in boot image.
Bye.
You know what you guys could do? Learn to decompile a kernel and modify initramfs yourselves! It's fun to learn.
Lack of time...
karendar said:
You know what you guys could do? Learn to decompile a kernel and modify initramfs yourselves! It's fun to learn.
Click to expand...
Click to collapse
Long ago one of my hobbies was update/configuration/recompilation of kernel on my customized Slackware distro to find best performances, today I'm using a notebook with Windoze 7...
Main problem is lack of time...
JediMaster said:
Thank you,
I've realized a different solution, an init.d script that, if folder /mnt/sdcard is empty, removes it at boot time and creates appropriate symlink.
I attach file to this post, it must be copied (extracted script, not tar.gz archive) to /etc/init.d, then "chown root.shell 00fixmount", then "chmod 0755 00fixmount".
It works for me in RR3.0.4 + Dorimanx Kernel 5.65.1, use it at your own risk: obviously it's a temporary workaround, until kernel developers will fix it in boot image.
Bye.
Click to expand...
Click to collapse
what about the external sd card.. any picture or music on it is not recognised by apps.. the builtin ones..even cwm manager.. i have to resort to quick pic and power amp
xinfinityoO said:
what about the external sd card.. any picture or music on it is not recognised by apps.. the builtin ones..even cwm manager.. i have to resort to quick pic and power amp
Click to expand...
Click to collapse
I don't use external SD card, but I see that symlink "/mnt/extSdCard" is correctly pointed to "/storage/sdcard1": which path are apps expecting to use?
Let me know.
Bye.
Whatever I try, it doesnt work. I need external_sd path for my Navigon Select and camera doesnt see sdcard.
brack11 said:
Whatever I try, it doesnt work. I need external_sd path for my Navigon Select and camera doesnt see sdcard.
Click to expand...
Click to collapse
If you want, I can try to make an init.d script to unmount internal and external sdcard devices and remount them in Gingerbread locations, but I will not be able to try, cause I don't use external sdcard...
Let me know if you wanna test.
Bye.
JediMaster said:
If you want, I can try to make an init.d script to unmount internal and external sdcard devices and remount them in Gingerbread locations, but I will not be able to try, cause I don't use external sdcard...
Let me know if you wanna test.
Bye.
Click to expand...
Click to collapse
I took the Init script from this thread and then installed ics binder from the market, configured binding from /mnt/extSdCard to /mnt/sdcard/external_sd and it did the trick, however, titanium wouldn't restore anything on sd, only on "system default"
Another thing is i don't see how jb more smooth than ics, feels the same to me and as i lose some settings for jb that i had on ics, I'm back to ics for now.
Sent from my GT-I9100 using Tapatalk 2
hey someone please tell me how can i use link2sd in JELLBLAST V3.0.1
IT shows that the sd-ext can't be mounted.
Please solve this problem
I have attached the image.
1) Try setting the mount script partition to ext2/ext3/ext4 and see if anyone of them makes the mount successful (it doesnt matter with which partition it mounts with)
2) Did you partition your sd card correctly? Mention more about how you did it..
anmolsharma1293 said:
hey someone please tell me how can i use link2sd in JELLBLAST V3.0.1
IT shows that the sd-ext can't be mounted.
Please solve this problem
I have attached the image.
Click to expand...
Click to collapse
I used Minitool partition wizard home edition to partition my sd card. set the partition as fat32...didnt really like the idea and after trying a new rom, and going back to jellyblast v3.01, i removed several apps(link2sd included) by uninstalling them through titanium backup, and then used install manager v3.5.1 to move my apps to my unpartitioned sd card
I partioned my sd card using minitool...
Kuro kernel supports link2sd or i shud reformat my sd card....???
Sent from my GT-S5360 using xda app-developers app
I partioned it using minitool....
I made the sd-ext part in ext3 format....
Should i reformat the sdcard and than partion it again via cm...???
Sent from my GT-S5360 using xda app-developers app
kuro kernel supports link2sd,my expirience first partition as fat32,second as ext2-3 using minitool,no problem,no need for reformat or something in cwm.
Jelly blast has kuro kernel, it supports Link2sd, dont use mini tool, it complicates things, make it the easy way, go to CWM -> Advanced-> Partition SD card -> Give 2nd partition space-> swap as 0 and then wait till it get partitioned, now try mounting ext3 in link2sd, it must work
Thank u sir....i will try it
Sent from my GT-S5360 using xda app-developers app
Sir one more question.....
can i flash another kernel in jellyblast v3.0.1 and replace kurokernel...???
anmolsharma1293 said:
Sir one more question.....
can i flash another kernel in jellyblast v3.0.1 and replace kurokernel...???
Click to expand...
Click to collapse
Yes, my suggestion would be savies kernel rev 73, the best one out yet imo
anmolsharma1293 said:
Thank u sir....i will try it
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
bt bro before partitioning tru cwm mak backup of entire sdcard data cos partioning tru cwm formats entire sd.
Sent from my GT-S5360 using xda premium
hitme987 said:
Jelly blast has kuro kernel, it supports Link2sd, dont use mini tool, it complicates things, make it the easy way, go to CWM -> Advanced-> Partition SD card -> Give 2nd partition space-> swap as 0 and then wait till it get partitioned, now try mounting ext3 in link2sd, it must work
Click to expand...
Click to collapse
this method wiped my sd card...make a backup before you partition it this way.
Thank everyone here.....i partioned my sd card successfully and now link2sd is working.....
Sent from my GT-S5360 using xda app-developers app
Sir i tried to install it....but it is so much confusing....the instrustions given on savie's thread are insufficient....
Please tell me how can i install savie rev 73 kernel...
Thaanxx in advance...
Sent from my GT-S5360 using xda app-developers app
It's actually easy to install.
First install the basic version. The (60 I think)
Then combine the last two kernel rar files.
Then flash.
Tapatalked using my galaxy y
anmolsharma1293 said:
Sir i tried to install it....but it is so much confusing....the instrustions given on savie's thread are insufficient....
Please tell me how can i install savie rev 73 kernel...
Thaanxx in advance...
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
The post is actually not aligned properly which makes people confuse.
Just download savies kernel rev 73 modded by Ronnie (just look for the same title which is a download able link).
Copy it and Cwm by mad team or skin to sd card, go to recovery mode, first flash Cwm zip, and then flash the kernel zip, it shows a aroma installer, click default installation there, restart and done, check if you got 4 io s and 18 governors, if not flash again, this time choose custom installation and select all things, reboot and it will stick
kishorsidu said:
It's actually easy to install.
First install the basic version. The (60 I think)
Then combine the last two kernel rar files.
Then flash.
Tapatalked using my galaxy y
Click to expand...
Click to collapse
That's a completely incorrect method to install that kernel since it got an aroma installer
Sent from my GT-S5360 using xda premium
thank u sir....!!!
i will install savie kernel...
All the governers are not showing in savie's kernel:what:....i used custom installation also...
Sent from my GT-S5360 using xda app-developers app
anmolsharma1293 said:
All the governers are not showing in savie's kernel:what:....i used custom installation also...
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Did you select all the governers in custom installation?
Wait, after flashing savies kernel, you get a permanent CWM, in which you need to click mount/system in mounts and storage option EVERYTIME you flash a zip, either it be a ROM/Kernel/Anything, ALWAYS mount/system when using savies kernel CWM
hitme987 said:
Did you select all the governers in custom installation?
Wait, after flashing savies kernel, you get a permanent CWM, in which you need to click mount/system in mounts and storage option EVERYTIME you flash a zip, either it be a ROM/Kernel/Anything, ALWAYS mount/system when using savies kernel CWM
Click to expand...
Click to collapse
sir after mounting system also it is not coming.....
i have installed it correctly......followed all the steps.....
also instaaled baecm tweaks.....
i think i have to revert back 2 stock kernel and then i have 2 again install the kernel...
Heyyyy buddies
I was using ussrv5+kuro kernel 1+ akurodata2sd
Today I thought of uninstalling games and apps cause of 12th board, cet, aieee...
After uninstalling 32 apps...
I open cf3d and uninstalled it my phone rebooted with lots of force closes then it stuck on splash screen
I restored my latest backup
Same fate
Went to internet cafe downloaded DDLF2 odin pack (thanks to sir docky73)
Flashed it and phone booted..
After that restored my backup and wow it booted...
Bt kernel was stock one
My all apps were gone...
So I flashed kuro kernel and again it stucked at splash screen
So I flashed stock kernel
Now all my apps are gone..
They were in 2nd partition
So which kernel should I flash????
And worst thing
I heard a conversation in my cell
Stock Kernel to battery: Babes I am gonna eat you
Battery:noooooooo!!!!! Somebody plzzz save me
Sent from my GT-S5360 using xda premium
Use savies rev 73, the easiest to install and user-friendly kernel yet with very good performance imo..I had problems booting with kuro kernel for some ROMs (having custom kernels), but with savies kernel never had a problem
Merruk Dev 7 would be the best performing kernel out there, but a bit tricky to get it installed..
thats's akuro failure. the phone didn't boot because the data inside ext partition is different with the one used by system. you must delete /data folder inside your sdcard partition to boot up. after that you can copy /data/data into /system/sd/data as usual. if you don't know how to delete /data folder inside your sdcard, the easiest way is reformat your partition.
kurotsugi said:
thats's akuro failure. the phone didn't boot because the data inside ext partition is different with the one used by system. you must delete /data folder inside your sdcard partition to boot up. after that you can copy /data/data into /system/sd/data as usual. if you don't know how to delete /data folder inside your sdcard, the easiest way is reformat your partition.
Click to expand...
Click to collapse
What if I delete akuro script from init.d and make a complete wipe of 2nd partition...
Or
Which partition I should delete???
/sdcard/data or /data/data
P.s. I never moved my /data/data to /system/sd/data
Sent from my GT-S5360 using xda premium
for safety reason you can delete (or copy into somwhere else) all files in your init.d folder and wipe 2nd partition. after that you can move your tweaks into init.d again. this step might a lil bit inconvenient but in this way we could boot up the system succesfully and easily diagnose the problem source.
kurotsugi said:
for safety reason you can delete (or copy into somwhere else) all files in your init.d folder and wipe 2nd partition. after that you can move your tweaks into init.d again. this step might a lil bit inconvenient but in this way we could boot up the system succesfully and easily diagnose the problem source.
Click to expand...
Click to collapse
Going to try it
Edit: it booted yeppie yesss..
Two things sir kuro
1 thanx a lot
2 plzzz give me your brain
Sent from my GT-S5360 using xda premium
Problem2: how to get apps back
Erasing /data/data will work
Sent from my GT-S5360 using xda premium
if you have TBU you can use it to recover your backuped apps
I want to use my second partition so I think I shuld delete useless data in /data/data/
Sent from my GT-S5360 using xda premium
umm...you better don't touch any of them. you can copy /data/data to /system/sd/ to activate dt2sd function and prevent system to write your original /data partition but you'd better don't delete/modify them
kurotsugi said:
umm...you better don't touch any of them. you can copy /data/data to /system/sd/ to activate dt2sd function and prevent system to write your original /data partition but you'd better don't delete/modify them
Click to expand...
Click to collapse
I will try titanium backup to recover apps....
Thanks
Sent from my GT-S5360 using xda premium
Terminal command to wipe 2nd partition plzzz
Sent from my GT-S5360 using xda premium
Code:
su
mount -t extX -o nosuid,nodev /dev/block/mmcblk0p2 /system/sd
note:
1. extX - replace X with your type partition
2. its mmcblk[zero]p[two]
after executing these command you can go to /system/sd then delete all files there. if you don't have any app backup you can move the /app content to your sdcard. in this way you can reinstall all your app later.
I followed the tutorial by Sir CarlDeanCatabay to increase the Internal Memory by partitioning SD Card using Mini-Tool Partition Wizard. I first made my 2nd Partition as EXT4(as Merruk 2.5 supports EXT4), but, Link2SD was unable to mount script. I tried with both EXT2 and EXT3, but, the same result came. I saw another external tutorial which said to make the 2nd Partition FAT32; I did, and Link2SD was able to mount. I installed some Apps and LWPs, and Link2SD said that it was link to the SD Card. When I looked upon the Storage Info in Link2SD Menu, I saw my 2nd Partition as same as it was at first, but, my Primary Android-SD(it was set as Active during partition) was filled with 35 MB out of my knowledge.. Isn't link2sd linking my apps to the 2nd Partition and instead doing so to SD Main? If so, what should I do? Thanks!
I think u must prefer cwm method....as it is easy and doesn't creates problem
Sent from my GT-S5360 using xda app-developers app
anmolsharma1293 said:
I think u must prefer cwm method....as it is easy and doesn't creates problem
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
I wish I'd have done that, I've already partitioned...I'm also not so sure if it is linking or not..
Ritayan Roy said:
I wish I'd have done that, I've already partitioned...I'm also not so sure if it is linking or not..
Click to expand...
Click to collapse
Do this....
First backup ur sdcard....
Than format it with fat32....
Than use cwm to partition ur sdcard....
Sent from my GT-S5360 using xda app-developers app
Did you set your 2nd partition as primary?
Sent from my GT-S5360 using xda premium
yeah! I did set my 2nd partition as Primary and FAT32....since, Link2SD was unable to mount the EXTs...
Morning all,
I'm having the usual issues with internal space on my (rooted) s5360. I have tried:
Foldermount - won't work because /data/data isn't seen.as being on the internal SD card?!?
Link2sd - works on a fat/fat sd card only, then after reboot says "invalid argument" and won't mount. I've used Easus, Minitool and CWM to partition, but to no avail.
Directorybind - doesn't see any folders in /data
Are there any other ways to move / symlink monster apps like games and facebook to my SD?
Sent from my GT-S5360 using xda app-developers app
With link2sd you need a kernel that can support ext4 partitions
steps to follow if on stock based rom
flash hells fusion #50 kernel
copy contents of sd card to pc
goto recovery mode on phone
in cwm partition sd card with at least 1024mb ext partition
swap is not required
restart phone
open link2sd
create mount script as ext4
Restart
Open link2sd & check 2nd partition now shows
copy everything back to sd card
restart
Having had to restore with Odin after messing about with kernels / roms (I need to run stock rom to avoid phone nework cutoff) I'm not keen on this approach.
I can't see why l2sd would work after a reboot with ext4 when it won't with fat.
Is there no other app that can be used as an alternative?
What about manually creating symlinks?
Sent from my GT-S5360 using xda app-developers app
thephatmaster said:
Having had to restore with Odin after messing about with kernels / roms (I need to run stock rom to avoid phone nework cutoff) I'm not keen on this approach.
I can't see why l2sd would work after a reboot with ext4 when it won't with fat.
Is there no other app that can be used as an alternative?
What about manually creating symlinks?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Because it needs kernel support
you won't have any problems running stock rom with hells fusion #50 kernel as long as you are not using DDMD1 baseband as that requires a different ramdisk
Install REPENCIES ROM PLUS REPENCIES KERNAL it has all support u need.
U cank also use darktremer app2sd . Its much better then link2sd & can transfer delvink also to sd.
Seach xda you will find everything
Thank you for helping me