Hi everyone
I need some help migrating my Galaxy S2 to lineage OS. A year or more ago I installed Cyanogen 12.1 successfully (when I also repartitioned the memory) and everything was/is working fine. Now I want to migrate to Lineage OS but I am stuck.
The main problem seems to be that the phone now has Cyanogenmod recovery which does not recognise the signature of the LineageOS new image. So I try to replace the Cyanogen recovery with TWRP but it doesn't work. In particular I follow the instructions here
https://forum.xda-developers.com/ga...t/isorec-isolated-recovery-galaxy-s2-t3291176
but the adb push twrp-3.1.0-1-i9100.img /dev/block/mmcblk0p6 command doesn't work - I get 'Remote permission denied'.
Could this be because of the repartitioning I did when I installed CM 12.1? I don't remember exactly what I did but I think I configured a partioning of 4G data, 1G apps
If I do an adb shell into the phone (enabled debugging and root access) the mount command I get (among others)
Code:
/dev/block/mmcblk0p9 /system ext4 ro,seclabel,noatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p7 /cache ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p1 /efs ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p10 /data ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p12 /preload ext4 rw,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1,journal_async_commit,data=ordered 0 0
df command gives
Code:
/dev 393.6M 40.0K 393.5M 4096
/sys/fs/cgroup 393.6M 0.0K 393.6M 4096
/mnt/asec 393.6M 0.0K 393.6M 4096
/mnt/obb 393.6M 0.0K 393.6M 4096
/system 1007.9M 568.6M 439.3M 4096
/cache 98.4M 4.2M 94.2M 4096
/efs 19.7M 8.2M 11.4M 4096
/data 3.9G 853.2M 3.1G 4096
/preload 503.9M 386.6M 117.3M 4096
/mnt/media_rw/sdcard0 9.0G 2.7G 6.3G 4096
/mnt/secure/asec 14.8G 10.3G 4.5G 32768
/storage/sdcard0 9.0G 2.7G 6.3G 4096
/mnt/media_rw/sdcard1 14.8G 10.3G 4.5G 32768
/mnt/secure/asec 14.8G 10.3G 4.5G 32768
/mnt/media_rw/sdcard0/.android_secure 14.8G 10.3G 4.5G 32768
/storage/sdcard1 14.8G 10.3G 4.5G 32768
Anyone has any suggestions how I can proceed to install TWRP to get to upgrade the OS?
OK, I got past the "Remote permission denied" step by doing an "adb root" first, but still no joy. That is, if I push the recovery and then issue a "adb reboot recovery" still the CM recovery comes up
Any suggestion would be appreciated...
Related
Hello, guys, i have a problem: i'm unable to install some large apps (>2-4-6Mb), phone answer - not enough memory, but memory is available:
Code:
adb shell -> df:
[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 309.56M 64.00K 309.50M 4096
/mnt/asec 309.56M 0.00K 309.56M 4096
/mnt/obb 309.56M 0.00K 309.56M 4096
/system 1.17G 901.03M 293.96M 4096
/data 1.78G 1.33G 459.00M 4096
/cache 295.52M 5.13M 290.38M 4096
/persist 11.85M 4.94M 6.91M 4096
/persist-lg 7.91M 4.13M 3.78M 4096
/mpt 15.79M 13.35M 2.43M 4096
/cust 29.57M 4.09M 25.47M 4096
/storage/sdcard0 1.78G 1.33G 459.00M 4096
/storage/external_SD 7.39G 7.08G 320.12M 32768
/mnt/secure/asec 7.39G 7.08G 320.12M 32768
/mnt/asec/com.dssoft.yapreader-1 4.01M 2.39M 1.62M 4096
/mnt/asec/com.instagram.android-2 14.05M 12.19M 1.87M 4096
I'm tried adb install, but:
Code:
adb install Titanium+Backup_6.1.5.4.apk
4549 KB/s (6537384 bytes in 1.403s)
pkg: /data/local/tmp/Titanium+Backup_6.1.5.4.apk
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Can anyone help with this?
Ps. Sorry for my bad english.
Hi everyone,
i have a problem with my Samsung s2. I have installed a ParanoidAndroid ROM and after that make a resize og Internal storage with Pit file throught ODIN. All storage are identify by phone but whe i try to open the gallery i receive the message "No exsternal storage avaible". I try to made a factory reset, wipe data and other, reinstall kernel and the ROM, but i have always the same problem. Do i have to reinstall the firmware? how can i resolve the problem?
i put my filesystem tree
Filesystem Size Used Free Blksize
/dev 395.2M 136.0K 395.0M 4096
/sys/fs/cgroup 395.2M 12.0K 395.2M 4096
/mnt/asec 395.2M 0.0K 395.2M 4096
/mnt/obb 395.2M 0.0K 395.2M 4096
/mnt/fuse 395.2M 0.0K 395.2M 4096
/system 503.9M 344.9M 159.0M 4096
/cache 98.4M 4.2M 94.2M 4096
/efs 19.7M 8.3M 11.4M 4096
/data 7.9G 223.7M 7.7G 4096
/preload 503.9M 411.6M 92.4M 4096
/mnt/media_rw/sdcard1 3.6G 108.0K 3.6G 4096
/storage/sdcard1 3.6G 108.0K 3.6G 4096
/mnt/media_rw/sdcard0 5.4G 71.1M 5.4G 4096
/mnt/secure/asec 5.4G 71.1M 5.4G 4096
/storage/sdcard0 5.4G 71.1M 5.4G 4096
Thanks so much
Cristian
mugen451 said:
Hi everyone,
i have a problem with my Samsung s2. I have installed a ParanoidAndroid ROM and after that make a resize og Internal storage with Pit file throught ODIN. All storage are identify by phone but whe i try to open the gallery i receive the message "No exsternal storage avaible". I try to made a factory reset, wipe data and other, reinstall kernel and the ROM, but i have always the same problem. Do i have to reinstall the firmware? how can i resolve the problem?
i put my filesystem tree
Filesystem Size Used Free Blksize
/dev 395.2M 136.0K 395.0M 4096
/sys/fs/cgroup 395.2M 12.0K 395.2M 4096
/mnt/asec 395.2M 0.0K 395.2M 4096
/mnt/obb 395.2M 0.0K 395.2M 4096
/mnt/fuse 395.2M 0.0K 395.2M 4096
/system 503.9M 344.9M 159.0M 4096
/cache 98.4M 4.2M 94.2M 4096
/efs 19.7M 8.3M 11.4M 4096
/data 7.9G 223.7M 7.7G 4096
/preload 503.9M 411.6M 92.4M 4096
/mnt/media_rw/sdcard1 3.6G 108.0K 3.6G 4096
/storage/sdcard1 3.6G 108.0K 3.6G 4096
/mnt/media_rw/sdcard0 5.4G 71.1M 5.4G 4096
/mnt/secure/asec 5.4G 71.1M 5.4G 4096
/storage/sdcard0 5.4G 71.1M 5.4G 4096
Thanks so much
Cristian
Click to expand...
Click to collapse
I solved make this:
cd /mnt/media_rw/
find sdcard0 -type d -exec chmod 0775 {} \;
find sdcard0 -type d -exec chown media_rw:media_rw {} \;
find sdcard0 -type f -exec chmod 0775 {} \;
find sdcard0 -type f -exec chown media_rw:media_rw {} \;
Hello,
As I started to get low memory warnings, I tried to uninstall all apps, reset data, etc (G+ post with screenshots here: https://plus.google.com/b/108315424589085456181/108315424589085456181/posts/f39yDQqaRox)
As this was not working, I manually wiped /data partition in recovery, but even after a wipe, my /data partition is nearly filled.
I really don't get what happened and how to format my partition in a way that really works!
Thanks for any help
Code:
Filesystem Size Used Free Blksiz
/dev 912.8M 52.0K 912.8M 4096
/sys/fs/cgroup 912.8M 12.0K 912.8M 4096
/mnt/asec 912.8M 0.0K 912.8M 4096
/mnt/obb 912.8M 0.0K 912.8M 4096
/system 1006.7M 538.9M 467.8M 4096
/data 12.0G [B][COLOR="Red"]10.3G [/COLOR][/B]1.7G 4096
/cache 678.4M 11.5M 666.9M 4096
/firmware/radio 199.8M 44.4M 155.3M 4096
/firmware/adsp 199.8M 8.9M 190.8M 4096
/firmware/wcnss 199.8M 4.2M 195.6M 4096
/devlog 29.5M 22.8M 6.7M 4096
/fataldevlog 19.6M 5.0M 14.6M 4096
/custdata 49.2M 4.0M 45.2M 4096
/mnt/shell/emulated 12.0G 10.3G 1.7G 4096
/mnt/media_rw/sdcard1: Permission denied
/mnt/secure/asec: Permission denied
/storage/sdcard1 68.9M 17.5M 51.4M 512
Hi. I have around 22 gigabites on internal storage whereas I know it should 32 gbs. So what takes 10 gbs? And is possible to expand internal storage?
alex009988 said:
Hi. I have around 22 gigabites on internal storage whereas I know it should 32 gbs. So what takes 10 gbs? And is possible to expand internal storage?
Click to expand...
Click to collapse
The OS takes about 9.5 gb
Sent from my SM-G935T using Tapatalk
Sent from my Note 3 running Purify CM13
lol
jongcruz said:
The OS takes about 9.5 gb
Sent from my SM-G935T using Tapatalk
Click to expand...
Click to collapse
Well. I'm sorry if my question seems really stopid but I did not understand that thing.
In other words you mean that the main system is installed on the hidden partition rights? Cuz all file managers shows the maximum capacity is 22gbs and around 9gb is already occupied. And 10 gigabytes is hidden. I'm sorry but I rally doubt that that system takes around 18 gb in total.
So the problem is that all file managers shows 22 gbs maximum capacity whereas it should be 32 gb. Definitely there should be hidden recovery partition like in windows... So am I wrong?:crying: can I remove it?
df -h
... in your favorite shell
[edit]
works on my phone with CyanogenMod
DHGE said:
... in your favorite shell
Click to expand...
Click to collapse
[email protected]:/ $ df -h
Filesystem Size Used Free Blksize
-h: No such file or directory
1|[email protected]:/ $
df ( without -h)
it is human readable anyway:
Code:
Filesystem Size Used Free Blksize
/dev [COLOR="Red"]1.4G[/COLOR] 88.0K 1.4G 4096
/sys/fs/cgroup [COLOR="red"]1.4G[/COLOR] 12.0K 1.4G 4096
/mnt 1.4G 0.0K 1.4G 4096
/mnt/runtime/default/emulated 22.2G 8.4G 13.8G 4096
/mnt/runtime/read/emulated 22.2G 8.4G 13.8G 4096
/mnt/runtime/write/emulated 22.2G 8.4G 13.8G 4096
/mnt/media_rw/97A6-0EBC 119.7G 38.6G 81.2G 131072
/mnt/secure/asec 119.7G 38.6G 81.2G 131072
/mnt/runtime/default/97A6-0EBC 119.7G 38.6G 81.2G 131072
/mnt/runtime/read/97A6-0EBC 119.7G 38.6G 81.2G 131072
/mnt/runtime/write/97A6-0EBC 119.7G 38.6G 81.2G 131072
/tmp [COLOR="red"]1.4G[/COLOR] 4.0K 1.4G 4096
/system [COLOR="red"]4.9G[/COLOR] 3.3G 1.6G 4096
/system/xbin [COLOR="Red"]27.5M[/COLOR] 1.1M 26.4M 4096
/data [COLOR="red"]22.2G[/COLOR] 8.4G 13.8G 4096
/oem [COLOR="red"]290.6M[/COLOR] 75.2M 215.4M 4096
/cache [COLOR="red"]192.8M[/COLOR] 208.0K 192.6M 4096
/persist [COLOR="red"]27.5M[/COLOR] 160.0K 27.3M 4096
/firmware [COLOR="red"]80.0M[/COLOR] 16.7M 63.2M 16384
/lta-label [COLOR="red"]11.7M[/COLOR] 1.1M 10.6M 4096
/idd [COLOR="red"]14.0M[/COLOR] 149.0K 13.8M 1024
/rca [COLOR="red"]8.4M[/COLOR] 4.3M 4.1M 1024
/storage 1.4G 0.0K 1.4G 4096
/storage/emulated 22.2G 8.4G 13.8G 4096
/storage/97A6-0EBC 119.7G 38.6G 81.2G 131072
/su [COLOR="red"]27.5M[/COLOR] 1.1M 26.4M 4096
I let you do the addition.
Well. There is mine
Code:
[email protected]:/ $ df
Filesystem Size Used Free Blksize
/dev 1.4G 92.0K 1.4G 4096
/dev/usb-ffs/adb: Permission denied
/sys/fs/cgroup 1.4G 12.0K 1.4G 4096
/mnt 1.4G 0.0K 1.4G 4096
/mnt/runtime/default/emulated: Permission denied
/mnt/runtime/read/emulated: Permission denied
/mnt/runtime/write/emulated: Permission denied
/mnt/media_rw/3033-6530: Permission denied
/mnt/secure/asec: Permission denied
/mnt/runtime/default/3033-6530: Permission denied
/mnt/runtime/read/3033-6530: Permission denied
/mnt/runtime/write/3033-6530: Permission denied
/tmp 1.4G 0.0K 1.4G 4096
/system 5.0G 4.0G 960.1M 4096
/data 22.2G 11.5G 10.7G 4096
/oem 290.6M 39.2M 251.4M 4096
/cache 192.8M 228.0K 192.6M 4096
/persist 27.5M 160.0K 27.3M 4096
/firmware 80.0M 57.5M 22.5M 16384
/lta-label 11.7M 1.1M 10.6M 4096
/idd 14.0M 149.0K 13.8M 1024
/rca 8.4M 2.1M 6.3M 1024
/su 27.5M 996.0K 26.5M 4096
/storage 1.4G 0.0K 1.4G 4096
/storage/emulated 22.2G 11.5G 10.7G 4096
/storage/3033-6530 119.1G 62.3G 56.8G 131072
/storage/self 1.4G 0.0K 1.4G 4096
1|[email protected]:/ $
I could not find out how to run terminal with such permissions on android.
But from the picture I see if I understand it right, the capacity of internal storage includes only data. Other system stuff are kinda on hidden partitions.
alex009988 said:
Well. There is mine
I could not find out how to run terminal with such permissions on android.
Click to expand...
Click to collapse
su
But from the picture I see if I understand it right, the capacity of internal storage includes only data. Other system stuff are kinda on hidden partitions.
Click to expand...
Click to collapse
Hint: I spent some efffort to color all partions on internal storage
OK. Thanks DHGE I think I understand.
Its not my phone but I am troubleshooting it through internal storage running out. Phone in settings show 8GB internal but I suspect its 4GB in total. Here is "adb shell df" output. Can you figure out how much internal it has. I am confused regarding many /mnt partitions and I cant figure it out.
C:\>adb shell df
Filesystem Size Used Free Blksize
/dev 220.4M 128.0K 220.3M 4096
/sys/fs/cgroup 220.4M 12.0K 220.4M 4096
/mnt/secure 220.4M 0.0K 220.4M 4096
/mnt/asec 220.4M 0.0K 220.4M 4096
/mnt/obb 220.4M 0.0K 220.4M 4096
/system 885.8M 585.9M 300.0M 4096
/data 908.5M 768.4M 140.0M 4096
/cache 123.0M 4.1M 119.0M 4096
/protect_f 8.8M 4.1M 4.8M 4096
/protect_s 8.8M 4.0M 4.8M 4096
/mnt/cd-rom 1.2M 1.2M 0.0K 2048
/mnt/media_rw/sdcard0: Permission denied
/mnt/secure/asec: Permission denied
/storage/sdcard0 1.6G 456.6M 1.1G 16384
/mnt/media_rw/sdcard1: Permission denied
/storage/sdcard1 7.4G 12.9M 7.4G 32768
/mnt/asec/com.garena.gas-1 22.0M 20.5M 1.5M 4096
/mnt/asec/com.roblox.client-1 77.0M 75.6M 1.3M 4096
/mnt/asec/com.UCMobile.intl-2 34.0M 32.6M 1.4M 4096
/mnt/asec/com.asus.launcher-2 24.0M 22.5M 1.5M 4096
/mnt/asec/com.rarlab.rar-1 8.0M 5.3M 2.7M 4096
Adding all partitions make up a number that is between 4 - 8GB so it doesn't makes sense. Please help.