Related
I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Go through this.
http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
The cyanogenmod team feels that swap doesn't serve it's purpose on an Android device. To quote them
"This question is hotly debated, but you almost definitely do not need swap or compcache. The only exception to this may be if the device is a first generation device (i.e. HTC Dream or HTC Magic). If you think swap or compcache may make the device faster, feel free to follow the directions below."
Click to expand...
Click to collapse
And the WFS is not a first generation device
If you still want to go ahead with it, that link provides a how-to.
But the problem is that with this ROM my phone does not recognize the swap partition. I would like to post on its own thread, but I can not because I am a new user.
DanHidalgo said:
I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Click to expand...
Click to collapse
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
I will try it this evening. Some people told me that oboe is that I created the Swap Partition with the recovery and I have to create it with the PC.
If I get it working I'll post my results. If not you will see me here again.
Enviado desde mi HTC Wildfire S usando Tapatalk
d33ps1x said:
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
Click to expand...
Click to collapse
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Portugah said:
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Click to expand...
Click to collapse
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
kobredabre said:
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
Click to expand...
Click to collapse
Root explorer is a paid app. Is there any other app I could do that?
Portugah said:
Root explorer is a paid app. Is there any other app I could do that?
Click to expand...
Click to collapse
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
kobredabre said:
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
Click to expand...
Click to collapse
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
kobredabre said:
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
Click to expand...
Click to collapse
I moved the file to the specific folder and I restarted my phone. Opening a2sd the swap button was turned off. I opened the terminal and I typed free, the results are 0-0-0. I didn't work.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Portugah said:
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Click to expand...
Click to collapse
Then the problem can be with kernel on ROM you are using, basic thing is that kernel needs to be abble to support swap for swap to even work... Can't help you much there since you are probably on marvelc version according to you'r country flag, i'm on diferent version. Some1 with same model as yours could help you tough
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Portugah said:
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Click to expand...
Click to collapse
The [2nd] above post is correct. Swap support is enabled in some custom kernels. If you're looking for another ROM, you're going to primarily ask about the kernel included with that ROM. Stock kernels do NOT support swap. You can enable swap [if you have a supporting kernel] via A2SDGUI or terminal... read up and familiarize yourself with linux swap.. since Android is a branch of Linux; same principles apply
Rob
Sent from my HTC_A510c using Tapatalk 2
This says it's possible to enable swap and compcache on CM7.2, but the howto wiki link is dead
To answer you question directly, by default the swap and Compcache schemes are disabled, but if you still feel the need to use them, above link provides you with a how-to.
So, yes, the CyanogenMod 7.2 supports swap and its usage needs to be activated.
Click to expand...
Click to collapse
Any idea how to do this?
For me the same question. I'm investigating since 1 week, tried scripts etc. no chance
Nexus One,
4EXT recovery (needed for correct sd-ext formatting)
CM 7.2
swap partition is there but not used.
What could i do to enable the swap partition?
Regards,
Marc
Hello,
I have the stable release cyanogenmod 7.2.0.
Swap is not working and gives following message:
swapon: /dev/block/mmcblk0p3: Function not implement
I found some notes saying that the problem is the kernel not supporting
swap. Which kernel can I use with cyanogenmod 7.2.0 with swap support?.
Thanks for your help.
1. Root Lava Iris 402 / 356 by Framaroot
Select the Framaroot 1.6.1.apk in the below link from your opera mini browser – select save – select open and select install.
http://forum.xda-developers.com/showthread.php?t=2130276
Thanks Alephzain
In Framaroot → select Boromir. After success message reboot your phone.
Now you have Root access.
2. Install Busybox
Go to Playstore and Install Busybox by Stephen (Stericson)
Open Busybox give root permission when prompted.
Wait for few minutes to complete smart install analysis, then select install then select smart install without making any changes.
Busybox is needed for executing modifying commands.
3. Increasing Internal Memory for installing more apps
Make 2 partitions in your SD Card as primary partitions using minitool partition wizard in windows / gparted in linux (be careful to change only sd card and not computer partition)
1st as FAT32 (primary) for storing DATA, Music, Videos etc.,. (say 6.5 GB in 8GB SD Card)
2nd as FAT32 or ext4 (as primary) for linking apps with link2sd – balance memory in sd card (note: kernel supports ext partitions)
You can also resize partition. See link below on how to partition
http://forum.xda-developers.com/showthread.php?t=2142844
Thanks bakpinar and sanny5
Install Link2SD from Play store → select Fat16/32
→ if it says mount script created. You can link your apps to 2nd partition through link2sd.
→ If it says mount: no such file or directory –
Install Mount /System (rw / ro) and ES File Explorer from Playstore.
Select Mount R/W in Mount /System app.
Copy the below script in notepad++ in windows (not notepad, google it)
or gedit in linux
or download the file posted by raveesh84 for fat32 partition in 7th post below
or if you want to type using your phone install droideditfree
and save as install-recovery.sh and copy the file to the folder /system/etc/ (after enabling Mount r/w as said above)
--------------------------------------------------------------------------------------------
#!/system/bin/sh
# mount vfat 2nd partition from sd card
sleep 2
mount -t vfat -o rw /dev/block/vold/179:2 /data/sdext2
mount -t vfat -o rw /dev/block/mmcblk0p2 /data/sdext2
---------------------------------------------------------------------------------------------
Note : Replace vfat with ext4 in the above script if you want to use ext4 partition.
Read the above script horizontally in phone.
Thanks to Kierrok
Note: Copying and permission setting will happen only after Mount R/w.
Permission setting for the above file -> Enable Root explorer to ON in es file explorer by going to menu --> tools --> root explorer ON. Then long press the copied file in ES file Explorer -> select more -> select properties -> select change under permissions -> tick all the read, write and execute except write by others.
Reboot phone. Link2sd will work now. Link apps, don't create mount scripts.
Note:
1. Install big apps first and link all 3 files in it, otherwise small apps take space in internal memory & will not allow installation / linking of big apps.
2. If you restart your phone you might get low space error, immediately open link2sd - sort apps by lib size - select top 5 or 6 six apps one by one and link the lib file (link vanished due to restart). Space error will go.
4. Increasing RAM (SWAP)
The phone already has 190Mb internal swap. It is too low.
Install Swapper for Root → put value 756 → select active at boot. Class 10 sd card will work better.
You can also further increase SD Card speed with installing SD Speed Increase → setting kbs based on class of sdcard to maximum
and set on every boot.
Now we have overcome the twin limitations of LAVA IRIS 402 to some extent.
Flashing Stock ROM / Firmware if anything goes wrong or stuck in bootloop / bootlogo
Windows Drivers for MT6572 Can be downloaded from link given below though it is stated as for Micromax A76
http://forum.xda-developers.com/showthread.php?t=2446756 ---> select MTK Drivers in post # 5 by hdmaza. Thanks Hdmaza
Lava Iris 402 Stock ROM / Firmware is now available with MTK6572 SP Flash Tool at
http://support.moulnisky.com/index.php?dir=Lava/Iris402/
Note:
In SP Flash tool (downloaded from above) click scatter select the scatter file in folder and click firmware upgrade for full installation then plug the phone to usb.
Lava iris 356 Stock Rom / firmware is available in following link
http://support.moulnisky.com/index.php?dir=Lava/Iris356/Firmware Versions/
Thanks Moulnisky.
IMEI write tool for MTK 6572 with video tutorial available at
http://forum.gsmhosting.com/vbb/f60...-android-based-phone-imei-write-tool-1708731/
after input of IMEI numbers select the file in database folder downloaded in the above Stock ROM
Thanks Nokian Care
Both are working, tested. Revived phone from Bootloop (tried to install cwm recovery through mtk droid tools 2.4.8 version not supporting mt6572)
Above information have been searched / collected by me from various threads / sites for the benefit of lava iris 402 / 356 users.
Note : Don't install chainfire 3d, it will result in bootloop. Though above have been tweaked by me in my Lava Iris 402 and it is working well, I am not responsible if anything goes wrong.
good method..but have u tried it urself
Sent from my IRIS402 using Tapatalk 2
---------- Post added 13th November 2013 at 12:06 AM ---------- Previous post was 12th November 2013 at 11:59 PM ----------
Can you share "install-recovery.sh" file
Sent from my IRIS402 using Tapatalk 2
In my case
Link2sd is not mounting the second FAT32 Partition..please guide me with some simple and detailed instructions Sir
Sent from my IRIS402 using Tapatalk 2
a unknown error
Sir,
I had done the following process but after copying that script and saving in notepad++ and naming as the same you have told, then copying in folder '/system/etc/' it is showing some unknown 'read only' error in ES File Explorer. Not know what to do next and where i have done the mistake & seeks your guidance.
Please suggest
Thanking you
Adarsh Gupta
adarsh4286 said:
Sir,
I had done the following process but after copying that script and saving in notepad++ and naming as the same you have told, then copying in folder '/system/etc/' it is showing some unknown 'read only' error in ES File Explorer. Not know what to do next and where i have done the mistake & seeks your guidance.
Please suggest
Thanking you
Adarsh Gupta
Click to expand...
Click to collapse
You must Mount R/W first
You can also do it through Root Explorer or Rom Toolbox app.
Can you please share that script file so that I can use it in my one..
Sent from my IRIS402 using Tapatalk 2
Its only 4 lines given above within lines. Install droideditfree from play store, type it and save in said folder. I have working link2sd in phone.
oppili said:
Its only 2 lines given above within lines. Install droideditfree from play store, type it and save in said folder. I have working link2sd in phone.
Click to expand...
Click to collapse
Thanks a lot sir.. i have done linking and swapping.. but i think i am using a fake sd card in the name of Samsung
Sent from my IRIS402 using Tapatalk 2
---------- Post added at 03:30 PM ---------- Previous post was at 03:24 PM ----------
https://www.dropbox.com/s/6qyt5bu0n125xe8/install-recovery.sh
The link to mount script file..paste it to system/etc/ and change permissions as suggested by oppili .. link2sd will come in action after the reboot
Sent from my IRIS402 using Tapatalk 2
Class 10 sdcard would perform better for swap, also increase sd card speed.
Useful apps for lava 402 / 356
-------------------------------
Android firewall - restricting which app to access internet in WiFi or mobile data. (Enable mediaserver and download manager for tube mate and play store to work respectively. Also enable android related things to WiFi and / or DATA, will be useful in case of lock due to wrong patterns)
Greenify - making apps that you are not working on to sleep
Tubemate (from opera app store) - to view or download YouTube videos in lesser data, 320x240 resolution would be good enough.
Thanks for the guide. Worked perfectly on my lava iris 356.
-Sid
lava iris 402 touch not working
guys plz help me out of this...i first installed frama root and rooted my device and then later on wen i installed chainfire 3d app it rebooted and stuck at boot logo so i googled and flashed with sp flash tool with the flash files i got my device booted up correctly but touch is not working and imei invalid msg is shown.. what should i do????
Chainfire 3d is for older android version 2.3 only. It has not been updated to work in jelly bean 4.2, so do not install it. Better reflash the ROM and write imei using IMEI write tool given in 1st post.
Sent from my IRIS402
Lava iris 402 - default write to sd card setting not found
oppili said:
1. Root Lava Iris 402 / 356 by Framaroot
Select the Framroot 1.6.1.apk in the below link from your opera mini browser – select save – select open and select install.
http://forum.xda-developers.com/showthread.php?t=2130276
Thanks Alephzain
In Framaroot → select Boromir. After success message reboot your phone.
Now you have Root access.
2. Install Busybox
Go to Playstore and Install Busybox by Stephen (Stericson)
Open Busybox give root permission when prompted.
Wait for few minutes to complete smart install analysis, then select install then select smart install without making any changes.
Busybox is needed for executing modifying commands.
3. Increasing Internal Memory for installing more apps
Make 2 partitions in your SD Card as primary partitions using minitool partition wizard in windows / gparted in linux (be careful to change only sd card and not computer partition)
1st as FAT32 (primary) for storing DATA, Music, Videos etc.,. (say 6.5 GB in 8GB SD Card)
2nd as FAT32 or ext4 (as primary) for linking apps with link2sd – balance memory in sd card (note: kernel supports ext partitions)
You can also resize partition. See link below on how to partition
http://forum.xda-developers.com/showthread.php?t=2142844
Thanks bakpinar and sanny5
Install Link2SD from Play store → select Fat16/32
→ if it says mount script created. You can link your apps to 2nd partition through link2sd.
→ If it says mount: no such file or directory –
Install Mount /System (rw / ro) from play store → Select Mount R/W
Install ES File Explorer → copy the below script in notepad++ in windows (not notepad, google it) or gedit in linux or if you want to use your phone install droideditfree and save as install-recovery.sh and copy the file to the folder /system/etc/ after enabling mount r/w as said above
--------------------------------------------------------------------------------------------
#!/system/bin/sh
# mount vfat 2nd partition from sd card
sleep 2
mount -t vfat -o rw /dev/block/vold/179:2 /data/sdext2
mount -t vfat -o rw /dev/block/mmcblk0p2 /data/sdext2
---------------------------------------------------------------------------------------------
Note : Replace vfat with ext4 in the above script if you want to use ext4 partition.
Read the above script horizontally in phone.
Thanks to Kierrok
Permission setting for the above file -> after copying long press the above file in ES file Explorer -> select more -> select properties -> select change under permissions -> tick all the read, write and execute except write by others.
Reboot phone. Link2sd will work now.
4. Increasing RAM (SWAP)
The phone already has 190Mb internal swap. It is too low.
Install Swapper for Root → put value 756 → select active at boot. Class 10 sd card will work better.
You can also further increase SD Card speed with installing SD Speed Increase → setting kbs based on class of sdcard to maximum
and set on every boot.
Now we have overcome the twin limitations of LAVA IRIS 402 to some extent.
Flashing Stock ROM / Firmware if anything goes wrong or stuck in bootloop / bootlogo
Windows Drivers for MT6572 Can be downloaded from link given below though it is stated as for Micromax A76
http://forum.xda-developers.com/showthread.php?t=2446756 ---> select MTK Drivers in post # 5 by hdmaza. Thanks Hdmaza
Lava Iris 402 Stock ROM / Firmware is now available with MTK6572 SP Flash Tool at
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index9.html
Note: merge the LAVA_IRIS402_S027_20130830_DCC folder part 1 and 2
In SP Flash tool click scatter select the scatter file in above merged folder and click firmware upgrade for full installation then plug the phone to usb.
Lava iris 356 Stock Rom / firmware is available in following link
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index10.html
Thanks Prem India
IMEI write tool for MTK 6572 with video tutorial available at
http://forum.gsmhosting.com/vbb/f60...-android-based-phone-imei-write-tool-1708731/
after input of IMEI numbers select the file in database folder downloaded in the above Stock ROM
Thanks Nokian Care
Both are working, tested. Revived phone from Bootloop (tried to install cwm recovery through mtk droid tools 2.4.8 version not supporting mt6572)
Above information have been searched / collected by me from various threads / sites for the benefit of lava iris 402 / 356 users.
Note : Though above have been tweaked by me in my Lava Iris 402 and it is working well, I am not responsible if anything goes wrong.
Click to expand...
Click to collapse
Dear sir,
I wish to start with my thanks about your internal memory upgrading blog.
I have purchased new Lava 402 Smart Phone. I am getting message as "the phone storage does not have enough space. please release some storage or change the default write disk in the settings" while using camera. But I checked in my mobile settings, there is no option to change the default memory settings to write in SD Card. Please help to come over from this issue.
I didn't had any problem with camera. It is storing images to SD card only. Has your SD card detected ? Re insert card properly after switch off. If this also not works try installing any other camera app from play store.
Sent from my IRIS402
THANKS
oppili said:
I didn't had any problem with camera. It is storing images to SD card only. Has your SD card detected ? Re insert card properly after switch off. If this also not works try installing any other camera app from play store.
Sent from my IRIS402
Click to expand...
Click to collapse
Thanks oppili,
I have installed new camera app (Zoom Camera)from play store. It works.
But default camera (which is come with IRIS402) stores image/video only internal memory not to sd card.
If any setting inside, please tell me.
Thanks alot.
I have a Lava Iris 402.. Link2SD fails to detect the second partition in both cases (FAT32/ext4). Any solution??
Copy pasted the script in /system/etc. Link2SD still doesnt detect 2nd partition.
Does the script works ?? Didn't work in my case. Any solution ???
oppili said:
1. Root Lava Iris 402 / 356 by Framaroot
Select the Framroot 1.6.1.apk in the below link from your opera mini browser – select save – select open and select install.
http://forum.xda-developers.com/showthread.php?t=2130276
Thanks Alephzain
In Framaroot → select Boromir. After success message reboot your phone.
Now you have Root access.
2. Install Busybox
Go to Playstore and Install Busybox by Stephen (Stericson)
Open Busybox give root permission when prompted.
Wait for few minutes to complete smart install analysis, then select install then select smart install without making any changes.
Busybox is needed for executing modifying commands.
3. Increasing Internal Memory for installing more apps
Make 2 partitions in your SD Card as primary partitions using minitool partition wizard in windows / gparted in linux (be careful to change only sd card and not computer partition)
1st as FAT32 (primary) for storing DATA, Music, Videos etc.,. (say 6.5 GB in 8GB SD Card)
2nd as FAT32 or ext4 (as primary) for linking apps with link2sd – balance memory in sd card (note: kernel supports ext partitions)
You can also resize partition. See link below on how to partition
http://forum.xda-developers.com/showthread.php?t=2142844
Thanks bakpinar and sanny5
Install Link2SD from Play store → select Fat16/32
→ if it says mount script created. You can link your apps to 2nd partition through link2sd.
→ If it says mount: no such file or directory –
Install Mount /System (rw / ro) from play store → Select Mount R/W
Install ES File Explorer → copy the below script in notepad++ in windows (not notepad, google it) or gedit in linux or if you want to use your phone install droideditfree and save as install-recovery.sh and copy the file to the folder /system/etc/ after enabling mount r/w as said above
--------------------------------------------------------------------------------------------
#!/system/bin/sh
# mount vfat 2nd partition from sd card
sleep 2
mount -t vfat -o rw /dev/block/vold/179:2 /data/sdext2
mount -t vfat -o rw /dev/block/mmcblk0p2 /data/sdext2
---------------------------------------------------------------------------------------------
Note : Replace vfat with ext4 in the above script if you want to use ext4 partition.
Read the above script horizontally in phone.
Thanks to Kierrok
Permission setting for the above file -> after copying long press the above file in ES file Explorer -> select more -> select properties -> select change under permissions -> tick all the read, write and execute except write by others.
Reboot phone. Link2sd will work now.
4. Increasing RAM (SWAP)
The phone already has 190Mb internal swap. It is too low.
Install Swapper for Root → put value 756 → select active at boot. Class 10 sd card will work better.
You can also further increase SD Card speed with installing SD Speed Increase → setting kbs based on class of sdcard to maximum
and set on every boot.
Now we have overcome the twin limitations of LAVA IRIS 402 to some extent.
Flashing Stock ROM / Firmware if anything goes wrong or stuck in bootloop / bootlogo
Windows Drivers for MT6572 Can be downloaded from link given below though it is stated as for Micromax A76
http://forum.xda-developers.com/showthread.php?t=2446756 ---> select MTK Drivers in post # 5 by hdmaza. Thanks Hdmaza
Lava Iris 402 Stock ROM / Firmware is now available with MTK6572 SP Flash Tool at
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index9.html
Note: merge the LAVA_IRIS402_S027_20130830_DCC folder part 1 and 2
In SP Flash tool click scatter select the scatter file in above merged folder and click firmware upgrade for full installation then plug the phone to usb.
Lava iris 356 Stock Rom / firmware is available in following link
http://forum.gsmhosting.com/vbb/f838/lava-flash-file-flasher-collection-1217612/index10.html
Thanks Prem India
IMEI write tool for MTK 6572 with video tutorial available at
http://forum.gsmhosting.com/vbb/f60...-android-based-phone-imei-write-tool-1708731/
after input of IMEI numbers select the file in database folder downloaded in the above Stock ROM
Thanks Nokian Care
Both are working, tested. Revived phone from Bootloop (tried to install cwm recovery through mtk droid tools 2.4.8 version not supporting mt6572)
Above information have been searched / collected by me from various threads / sites for the benefit of lava iris 402 / 356 users.
Note : Though above have been tweaked by me in my Lava Iris 402 and it is working well, I am not responsible if anything goes wrong.
Click to expand...
Click to collapse
The above mentioned script didn't work in my case. Did exactly as explained in my IRIS 356 Phone. After the restart phone got stuck at the logo. Must be something must have gone wrong. Had to remove SD card to boot phone properly. Any suggestions???
chinmay_7d said:
I have a Lava Iris 402.. Link2SD fails to detect the second partition in both cases (FAT32/ext4). Any solution??
Copy pasted the script in /system/etc. Link2SD still doesnt detect 2nd partition.
Click to expand...
Click to collapse
Have you set the permission for the copied file as explained ? It should work if it is done.
Sent from my IRIS402
xdamicasa said:
The above mentioned script didn't work in my case. Did exactly as explained in my IRIS 356 Phone. After the restart phone got stuck at the logo. Must be something must have gone wrong. Had to remove SD card to boot phone properly. Any suggestions???
Click to expand...
Click to collapse
If you had done as explained it should work. It takes initially a minute to boot after the script copying, can you wait & check if it is OK.
Sent from my IRIS402
oppili said:
Have you set the permission for the copied file as explained ? It should work if it is done.
Sent from my IRIS402
Click to expand...
Click to collapse
Set the permissions as mentioned in the OP. Ticked all Read, Write & Execute, except Write (Other). Is that correct?
Hi All,
I am trying to get a script to run at boot that mounts the 2nd partition on my usb hard drive at /data/sdext2. This way I have use Link2SD to put apps on the external hard drive. I have my script written and it works if I run it manually in terminal as root. However, it will not run on boot. I have put it in /system/etc/init.d, named it 80mountusb2 and set the permissions to 755. Any suggestions on what to test/check next?
Thanks,
Zarrin
SM-T705, cf-autoroot (incl. SuperSU) checked with root-checker, platform.xml adapted
e.g. if I want to copy /dev to my sdcard ... there comes a message similar to "copying went wrong ... 4.4+ .... in non-root mode some limitations ..."
I won't search for you, please have a read through Q&A and General for a number of other similar questions and corresponding answer I would suggest you please contact a Mod to delete this unneeded thread
Sorry I searched and read a lot of older suggestions but did not get a clue ... and I know about the kitkat probs regarding SD (platform.xml). But still dont understand, why there are just few folders affected ...
So sorry but it seem I need a Little push into the right direction
+1 solid explorer has struggled for me, but root explorer hasn't. Seems to be only certain directories. ...idk
just to make shure - we are talking about Root Explorer (File Manager) non free app. Did you try to copy System dirs like /dev ??
if yes, where to did you copy them. I just figured out that my ext3 partition (1st=exFat, 2nd=ext3) on the SD is mounted to /data/sdext2.
but copying /dev to /data/sdext2 doesnt work either
Could someone please tell me how to Mount /mnt RW
some folder cant be copy. the only way for you to have those are extracting it from the original firmware.
THX - 2 Pprobs now
1
mount -o remount rw /System worked, but still
[email protected]:/ # mkdir /mnt/extSD2
mkdir failed for /mnt/extSD2, Read-only file System
a) with Root Explorer it seemed to work, but was gone after restart ?
b) where to mount my ext3 SDcard partition (1st exfat, 2nd ext3)
c) can I do it by modifying init.rc, universal5420.rc or fstab.goldfish ...
2 how to extract Folders from Firmware files like T705XXU1ANF7_T705DBT1ANF1_T705XXU1ANF7_HOME.tar
I extracted the files within. But how can I Mount those Image files on W8 (ext2fs does not work with my sdcard) ?
2nd best would be to go to my Linux PC (but I'm a Linux DAU) ...
try learn about kitchen or use this software on windows... ^_^ http://sourceforge.net/projects/ext2read/
sorry my english is not good enough ... kitchen seems to be a Linux tool ... this seems to be a good start http://www.modaco.com/topic/366230-tools-useful-tools-for-tinkerers/ or this http://www.diskinternals.com/linux-reader/
Best use OSFMount to Mount the *.img and "Paragon ExtFS for Windows" to view the files
mount -o remount rw /System worked, but still
[email protected]:/ # mkdir /mnt/extSD2
mkdir failed for /mnt/extSD2, Read-only file System
a) with Root Explorer it seemed to work, but was gone after restart ?
b) where to mount my ext3 SDcard partition (1st exfat, 2nd ext3)
c) can I do it by modifying init.rc, universal5420.rc or fstab.goldfish ...
mounting system.img does not work
del
It's my first relevant post in here so please be benevolent and friendly to me .
Hello everyone,
After long hours of roaming around on the internet, Moto forums, PowerAMP forums (you wouldn't believe how many people posted this problem in there), huge exchange of emails and debugs to the Nexus Media Importer dev, and checking out many many topics here on XDA, I finally came across the only way to use an USB-OTG pendrive as a music library, and having Android detect it (through the Media Service) and build the music library for other media apps to use.
tl dr; Problem: You wanted loads of music without wasting precious internal memory. You tried using an USB pen but no mp3 apps were able to find the files, nor stickmount, nor whatever.
This is so far the only way to do this on android Marshmallow.
Believe me, I've tried almost everything one can do, including using the Nexus Media Importer, Stickmount, OTG Helper, etc (spoiler alert, none of these worked).
Why is this happening, you ask? Well, Google changed things on Android 6.x.x so much regarding filesystems and USB support that full read/write on USB OTG with other apps no longer works, although I've never tested on previous versions of Android. But I finally managed to find a way to do it, and here I intend to share it with you guys.
Requirements - Rooted phone and permissive SELinux (what is that and how do I do it? don't worry, it's easy and I'll explain a bit later)
1st step - Verify that your phone is capable of using USB-OTG. If it is not, check on play store for other apps that supposedly can enable USB Host support on your phone, although I've never tried them because I never needed, so I can't say anything. My phone is a Moto X 2014 and it comes with OTG support embedded.
2nd step - Format your pendrive as NTFS. This is very important because...
If you use your pendrive as Fat32, Android will mount it to a folder in /data/media_rw/blablabla with GID and UID 1023 (media_rw), which most apps don't have permissions to access, thus they won't be able to find your pendrive and build a music library. Why? Well, glad you asked...
...Since Fat32 doesn't support the linux permissions system, Android mounts the pendrive with the FUSE fs wrapper, which cloaks a permission system hard-coded into some file in the Android system that I wasn't able to tell how could I modify it in order to set the pen permissions as 777 root root.
You can do so by plugging your pen on a Windows PC and right clicking -> Format. Remember to backup your data, otherwise you will lose everything. Your pen will still be able to be used on Windows pcs and Macs. You could also use other fileformats...
... like EXT4 or f2fs or exFAT or whatever, but do it at your own risk. I have no idea if those would work, despite them being able to use the linux permission system.
3rd step - Install the wonderful app Paragon HFS and NTFS mounter from appstore or whatever. They say it isn't compatible with marshmallow but it is, the only issue is that it can't mount a pendrive automatically but it's very easy to do it manually. In the settings menu, you can set SELinux as permissive. Since I'm not an android dev, only an ambicious amateur, I can't really explain what it does or what happens when you do that. So far, neither me or my phone died because of that, so.
Oh by the way, whenever you insert the pen , Android will say it's corrupted and ask you to format it. DO NOT DO IT! That happens because Android doesn't natively support NTFS (hence using an external app to solve that). Oh, and since we're talking about that, there is a way for Android to natively support NTFS...
..., just search it up on XDA. Beware that it's outdated and it won't work on Marshmallow either, unless you edit the copymodulecrc script, but that goes beyond my knowledge. For now, stick to the plan.
4th step - You need to choose the folder which you want to mount the pen to, which will be a folder in the root Android folder (I chose /pen so that I wouldn't forget)
You are now probably thinking, "That's insane! You need to edit init.rc in order to do that!" Well, you're kinda right, but there is a workaround for that. Why do I do this? Well...
... if you mount the pen in another random folder such as /storage/emulated/0/pen it won't work because all the folders underlying that one have certain permission issues that don't let other media apps be able to search for music files.
So here I'll show you two ways of accomplishing this.
4.1 Editing init.rc - This is very complex and NOT RECOMMENDED unless you're very comfortable with messing with boot files. PLEASE DO NOT DO THIS if you aren't sure of what you're doing, don't tell me I didn't warn you.
So in order to do this, well, I won't explain it to you. Search it up on the internet, it's very complex and too big for me to post here. But in the end what you want to do is edit the init.rc file, adding two lines:
"mkdir /pen" and "chmod 777 /pen".
4.2 Creating a script that runs on boot - This is the one method I recommend since it's harmless, but you have to install yet another app, that allows you to run scripts at boot. I used script manager. Then create a script that mounts the / folder as rw, creates the folder /pen, chmods it to 777. I used the following:
#!/system/bin/sh
su -c mount -o rw,remount /proc /
su -c mkdir /pen
su -c chmod 777 /pen
I tried other mount -o commands with rootfs instead of /proc but they didn't work. I don't know the difference but I hope it's harmless. Anyways, let's move on.
Run the script to see if it works, and to create the folder. Use a rooted file explorer to verify if the folder was created.
5th step - Reboot your phone if you had to set SELinux as permissive, and type on the Terminal "su -c getenforce" to confirm that your SELinux is permissive.
VERY IMPORTANT - On the Paragon app, open settings and disable FS access rights, otherwise it's the same as mounting a Fat32 pendrive - not what we want.
On the Paragon app, choose the folder we created before as the folder to mount the pen to, and mount the pendrive. If you followed all the previous steps correctly, the app won't have any issues mounting the pen.
6th step - Find a way to enforce Android building a media library with the new files in the USB OTG pendrive. There are many ways to do this and I recomment the one I used, but I will tell you other ways.
I used the app jetAudio which is a media player that can also forceably build a media library. On jetAudio settings menu, press "Rebuild media library" and point to the /pen folder. It will start reading all the files and Android now detects your pendrive as a media library.
Another way would be to use an app called FolderMount, and creat a symlink from the /pen to another folder in your emulated SD storage (you know, the only folder you have access to if you're not rooted), and wait for some time until hopefully Android detects your new music. If you don't want to use FolderMount, do a symlink with another method (like the ln command)
EDIT - Another cool way I found elsewhere on StackExchange is to run this command (through a script or whatever):
am broadcast -a android.intent.action.MEDIA_MOUNTED -n com.android.providers.media/.MediaScannerReceiver (-d file:///pen)
which forces Android to run a media scan. The part on parenthesis is optional, you can use it to choose the folder in which Android runs the media scan.
Hurray! Congrats for reaching this part of the post. If you did everything correctly, all media apps will finally be able to find the files. I posted some screenies to orientate you.
Feel free to ask anything and I will try to answer or explain. Remember that I'm no Android dev so my knowledge is limited. Feel free to thank me, if you want too.
reserved post
Why so compilcated? USB-OTG is supported on the fly by Android 6.0 / Marshmallow, but unfortunately most of the N7-kernels have a bug which lead to reboot on unmounting the OTG-Device. Nevertheless the next version of Android 6 AOSP on Grouper should have it fixed this issue ...
AndDiSa said:
Why so compilcated? USB-OTG is supported on the fly by Android 6.0 / Marshmallow, but unfortunately most of the N7-kernels have a bug which lead to reboot on unmounting the OTG-Device. Nevertheless the next version of Android 6 AOSP on Grouper should have it fixed this issue ...
Click to expand...
Click to collapse
It's not as straight-forward as you're saying.
Most media player apps that weren't updated to support Android 6's native USB OTG support will not be able to read a pen's contents. This topic that I made is aimed to circumvent the issue by mounting the pen in a different way. That bug you mentioned is not something I want to solve, and even if a new kernel solved the issue that I'm talking about, most manufacturers wouldn't update their devices...
Ok, you may be right with apps which are not yet updated to support Marshmallow, I didn't check that.
gaferreira13 said:
It's not as straight-forward as you're saying.
Most media player apps that weren't updated to support Android 6's native USB OTG support will not be able to read a pen's contents. This topic that I made is aimed to circumvent the issue by mounting the pen in a different way. That bug you mentioned is not something I want to solve, and even if a new kernel solved the issue that I'm talking about, most manufacturers wouldn't update their devices...
Click to expand...
Click to collapse
Oh, and maybe now that I think of it, this could solve the problem, since mounting/unmounting is done with the Paragon app instead of Android. Give it a shot
AndDiSa said:
Why so compilcated? USB-OTG is supported on the fly by Android 6.0 / Marshmallow, but unfortunately most of the N7-kernels have a bug which lead to reboot on unmounting the OTG-Device. Nevertheless the next version of Android 6 AOSP on Grouper should have it fixed this issue ...
Click to expand...
Click to collapse
Using native otg function, you can only copy files between phone and otg dive. To open a file e.g. To install apk from otg, you have to first copy it to phone's storage. On many media player, video can only be played sequentially (seek bar doesn't work).
Stuck at step 4.2, folder is not created
kashinath said:
View attachment 3746340Stuck at step 4.2, folder is not created
Click to expand...
Click to collapse
Hey, is there any way for you to determine the path of your root folder? Maybe using ES File Explorer. For some phones, the root folder isn't pointed to /.
EDIT - If you can't do that, try replacing the first of those commands with the following:
su -c mount -o rw,remount,rw /system
I'm also getting the same issue as kashinath, won't let me create pen. I've also tried pointing the mounter to a directory in /storage/emulated/0/pen but it seems to just crash and restart the app.
EDIT:
Okay so I've solved the problem completely differently. The otg storage is found in /mnt/media_rw, so I used the app "FolderMount [ROOT]" to point the folder "pen" (in the internal storage) to the /mnt/media_rw/*random string* folder. I then used the app "media.Re.Scan:" to force the media scanner to scan that folder as it didn't seem to want to do it. Now all apps seem to be working.
What tipped me off about this was this post: http://forum.xda-developers.com/nexus-6/help/marshmallow-usb-otg-mounting-media-t3230588
It seems you have to turn the folder mount on/off every time you plug/unplug the USB drive otherwise it won't play the files.
Thanks for the detailed instructions nonetheless.
Viridis said:
I'm also getting the same issue as kashinath, won't let me create pen. I've also tried pointing the mounter to a directory in /storage/emulated/0/pen but it seems to just crash and restart the app.
EDIT:
Okay so I've solved the problem completely differently. The otg storage is found in /mnt/media_rw, so I used the app "FolderMount [ROOT]" to point the folder "pen" (in the internal storage) to the /mnt/media_rw/*random string* folder. I then used the app "media.Re.Scan:" to force the media scanner to scan that folder as it didn't seem to want to do it. Now all apps seem to be working.
What tipped me off about this was this post: http://forum.xda-developers.com/nexus-6/help/marshmallow-usb-otg-mounting-media-t3230588
It seems you have to turn the folder mount on/off every time you plug/unplug the USB drive otherwise it won't play the files.
Thanks for the detailed instructions nonetheless.
Click to expand...
Click to collapse
Yeah forget mounting anything in the /storage/emulated/0...
According to the post you linked in your comment, "6.0 mounts to /mnt/media_rw/ but I can't seem to get any media players to see it. I tried creating a symbolic link in /storage/emulated, but I get an error with root explorer about symbolic links not being supported" which is exactly what happened to me
If you don't like the folder mount alternative you can always do a bind command (but i'm not sure how it works), search it up and see if you get any results.
Is your pen in Fat32 though?
There is a workaround for the pen thing... If you use Total Commander and want to edit any files in /, it asks you to run a command that mounts the / folder. Try to see what command it is and replicate it into the script, then the rest might work.
Thank you so much !! It worked on my XT1033 falcon dual sim - MM6.0 identity crisis 1.3a . I can finally restore all my nandroid backups.
Just to correct shouldn't the last command in the script be
su -c chmod 777 /pen
instead of
su -c chmod /pen 777
4k5blr said:
Just to correct shouldn't the last command in the script be
su -c chmod 777 /pen
instead of
su -c chmod /pen 777
Click to expand...
Click to collapse
No, thank you
And, damn you're right, lol I'll correct it ASAP, thanks a lot for pointing it out
I'm a complete newbie at this, in fact I rooted my device just to do this
Anyways I'm getting the same issue kashinath is getting and tried the other command you recommended (su -c mount -o rw,remount,rw /system ) wich also didn't work
In that reply you also said that the root folder is different between devices so, if I determine the path to my root folder, where exactly in the script do I have to put it? (Again I'm a newbie)
Arcane35 said:
I'm a complete newbie at this, in fact I rooted my device just to do this
Anyways I'm getting the same issue kashinath is getting and tried the other command you recommended (su -c mount -o rw,remount,rw /system ) wich also didn't work
In that reply you also said that the root folder is different between devices so, if I determine the path to my root folder, where exactly in the script do I have to put it? (Again I'm a newbie)
Click to expand...
Click to collapse
For my phone the Root folder's path is "/" so I'll put 2 arrows where the path to root is in the command:
" su -c mount -o rw,remount /proc --> / <-- "
So imagine your root path is /root
The command would look like this: " su -c mount -o rw,remount /proc /root " (without "" of course)
If you still can't find the path to your root folder, try searching on the internet "root folder for xxxxx phone"
Hope it helps
gaferreira13 said:
For my phone the Root folder's path is "/" so I'll put 2 arrows where the path to root is in the command:
" su -c mount -o rw,remount /proc --> / <-- "
So imagine your root path is /root
The command would look like this: " su -c mount -o rw,remount /proc /root " (without "" of course)
If you still can't find the path to your root folder, try searching on the internet "root folder for xxxxx phone"
Hope it helps
Click to expand...
Click to collapse
Turns out my phone's root folder is also / , and I'm still getting the same error (mount: '/' not in /proc/mounts)
Maybe its because I have Nougat :/
EDIT: So I think I managed to kinda work around that, I change the command to " su -c mount -o rw,remount / " and it ended up making the pen folder and no errors came out. So I then proceeded to open Paragon, disabled FS access rights, ensured that SELinux was permissive (it is) and change the mount point to the /pen folder, I finally proceeded to manually mount the thing BUT even tough that in my notifications says that I mounted it, on the app it still says that my Flash Drive is still not mounted (even tough it detects it and know that it is an NTFS file system). Basically whenever I try to mount my Flash Drive it wont work even tough the app detects it.
Arcane35 said:
Turns out my phone's root folder is also / , and I'm still getting the same error (mount: '/' not in /proc/mounts)
Maybe its because I have Nougat :/
Click to expand...
Click to collapse
Ooooh. Remember the topic is called "Full USB OTG on Media Players in Marshmallow"
I can't help you then, sorry. The only thing I can tell you is to open the /proc/mounts file as text on the top there should be a command that tells android to mount the root folder as rootfs I believe.
Maybe that could help.
Arcane35 said:
EDIT: So I think I managed to kinda work around that, I change the command to " su -c mount -o rw,remount / " and it ended up making the pen folder and no errors came out. So I then proceeded to open Paragon, disabled FS access rights, ensured that SELinux was permissive (it is) and change the mount point to the /pen folder, I finally proceeded to manually mount the thing BUT even tough that in my notifications says that I mounted it, on the app it still says that my Flash Drive is still not mounted (even tough it detects it and know that it is an NTFS file system). Basically whenever I try to mount my Flash Drive it wont work even tough the app detects it.
Click to expand...
Click to collapse
Try to open the /pen folder, try to see in the properties of /pen if the permissions are set to 777.
gaferreira13 said:
Try to open the /pen folder, try to see in the properties of /pen if the permissions are set to 777.
Click to expand...
Click to collapse
It is set as 0777, so yes (if the 0 is not supposed to be there)
Arcane35 said:
It is set as 0777, so yes (if the 0 is not supposed to be there)
Click to expand...
Click to collapse
Hmm... If you can open the folder fine and maybe create a file in there or something then I can't help you any further. The paragon app doesn't let you do much regarding troubleshooting.
Try using the methods that other people did like using Foldermount or something like that.