Problem installing magisk-cant access internal memory from twrp - OnePlus 7T Pro (Regular & McLaren) Q & A

Hi all, I need a little help, I've unlocked bootloader and installed twrp recovery (that's wiped data on the phone and I've reinstalled apps and accounts).
The guide i was following ask to reboot and boot twrp recovery (working) and to install magisk zip file copied from PC to internal memory
I copied magisk in internal memory (root and download folders) but in TWRP I can't see the storage i get from PC, only different folders.
I tried also adb sideload D:\Android\Magisk-v21.2.zip directly from PC but i get errors on mounted file systems yrying to install files i think, I tried to check and mount file systems in TWRP advanced options but I can't mount them ...
How can I install Magisk ?
Thanks for help

blackalex1 said:
Hi all, I need a little help, I've unlocked bootloader and installed twrp recovery (that's wiped data on the phone and I've reinstalled apps and accounts).
The guide i was following ask to reboot and boot twrp recovery (working) and to install magisk zip file copied from PC to internal memory
I copied magisk in internal memory (root and download folders) but in TWRP I can't see the storage i get from PC, only different folders.
I tried also adb sideload D:\Android\Magisk-v21.2.zip directly from PC but i get errors on mounted file systems yrying to install files i think, I tried to check and mount file systems in TWRP advanced options but I can't mount them ...
How can I install Magisk ?
Thanks for help
Click to expand...
Click to collapse
You must copy files from PC to /temp folder

FSadino said:
You must copy files from PC to /temp folder
Click to expand...
Click to collapse
I don't have a temp folder, only Alarms, Android, DCIM...., Ringtones and Whatsup folders, should I create it ? Then i can see it in twrp ?
By the way upgraded twrp to 3.4.0.2
Tried to create temp but I can't see It obvously in twrp as the rest of the folders, only mounted filesystem is metadata

go in twrp to advanced wipe --> format data partition to ext2 --> wait --> when done format back to ext4 --> wait --> now see if your OS recognizes the USB android device. try usb replugging if not --> now you should see a new partion where you can write in your file explorer on HOST OS.

n3tk1d said:
go in twrp to advanced wipe --> format data partition to ext2 --> wait --> when done format back to ext4 --> wait --> now see if your OS recognizes the USB android device. try usb replugging if not --> now you should see a new partion where you can write in your file explorer on HOST OS.
Click to expand...
Click to collapse
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?

blackalex1 said:
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
Click to expand...
Click to collapse
Which guide are you following?

Hw4ng3r said:
Which guide are you following?
Click to expand...
Click to collapse
I found many and they are all similar...
- Unlock boot loader
- Install recovery TWRP
- Reboot in recovery (sometimes from phone other guides from image on PC)
- install magisk copied from OS from twrp recovery
Everything is clear except for I can't access the data partition from TWRP in the last step so I can't see the copied magisk file and I can't mount the partitions in TWRP (i get an error)
A couple of guides:
Root OnePlus 7T Pro (hotdog) and Install TWRP Recovery 3.4.0 (androidweblog.com)
Download Latest Magisk zip 21.2 and Magisk Manager 8.0.4 and Root your phone (getdroidtips.com)
In the second one they use the sdcard partition but I don't have sdcard on 7T Pro ...
You can point me to a different method if available to get magisk installed ...
Thanks for the help

blackalex1 said:
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
Click to expand...
Click to collapse
so when you do as i said you are in twrp cos you booted to it. twrp will read and be able to access your phones storage. you are not wiping the data partion but are formating it to ext2 and then back to ext4 (still do backup as data will be lost). this enables twrp to circumvent the oxygen decryption / format. NOW and only AFTER THAT dont reboot (dont), but now your HOST can copy the desired magisk to the phone that is still in twrp RECOVERY MODE. Thus you can now install it with twrp since twrp can now access and read the recently copied image. anyways i wont do it. i used a patched magisk image. was the only thing that ultimately worked for a clean rooting and it didnt even unlock the /system_boot and /vendor partions but it works. find in the oneplus 7t pro guideds forum topic your corresponding magisk image and flash it to disk with fastboot flash boot magisk-patched.img. that worked pretty well when you use the right android version 10.0.x.etc.
actually, wtf do i know. i just followed this thread:
[Guide] How to Root OnePlus 7T Pro with TWRP
thanks for this detailed root process, I've been looking for this for around 3days. (my OP7t pro is coming today will try this root method)
forum.xda-developers.com

Clearly stated in the TWRP thread, decrypting OOS is not working. And I wouldn't even bother formating data.
In order to flash zip is TWRP you most execute;
"adb push magisk.zip /cache",
then in TWRP go into that folder and flash the file.
Or you can do patched image method, you can find guides in guides section.
Some basic researching would also help.

Lossyx said:
Clearly stated in the TWRP thread, decrypting OOS is not working. And I wouldn't even bother formating data.
In order to flash zip is TWRP you most execute;
"adb push magisk.zip /cache",
then in TWRP go into that folder and flash the file.
Or you can do patched image method, you can find guides in guides section.
Some basic researching would also help.
Click to expand...
Click to collapse
PERFECT thank you very much, got only a couple of warnings at the end:
failed to mount /system_root (permission denied)
failed to mount /vendor (permission denied)
But It seems correct.
I will check for patched image to better understand what is tha advantage compared to the standard one.

blackalex1 said:
PERFECT thank you very much, got only a couple of warnings at the end:
failed to mount /system_root (permission denied)
failed to mount /vendor (permission denied)
But It seems correct.
I will check for patched image to better understand what is tha advantage compared to the standard one.
Click to expand...
Click to collapse
Those errors are nothing to worry about since it's not possible to modify those partitions on stock.

I tried rooting my lenevo tab M10 hd and flashed a incorrect boot img as I am new to rooting and bricked up my device then from some where I got the correct boot img and recovered my device but now I am unable to use its internal storage , its shows some random letters when I open the file manager can you guys help me out resolving this issue.

Related

[Q] E:Unable to mount /sdcard after rom install and bootloop

Before I make things worse, can someone let me know what did I do / doing wrong. I was on Sinister v8, trying to update to v11 of the same rom, using TWRP 2.3.1.0, i did a full full wipe,(Factory, System, Ex Storage, Internal Storage), copied new files to sdcard, reboot into recovery, Install zip (v11) from SD card, reboot....bootloop.
Then I went to try it again, remembering that i may need to extract boot.img and use fastboot but couldn't even access the filesystem. In TWRP I see a bunch of
Code:
E:Unable to mount '/sdcard'
E:Unable to recreate android secure folder
E:Unable to mount '/sdcard'
E:Unable to mount internal storage.
...
E:Unable to mount /sdcard when trying to read settings file...
Here are my details
Code:
JEWEL PVT SHIP S-ON RL
HBOOT-1.19.0000
RADIO-1.12.11.0809
OpenDSP-v29.1.0.45.0622
eMMC-boot
Aug 9 2012
I'm able to format data/system partitions via TWRP, but can't mount sdcard to get anything on it. I'm pretty sure i'll need to recreate/format the partitions. Any other steps I could try? (I have a backup from 12/31/2012 on my desktop cpu but can't get it on to the phone). I'm good with wiping everything and starting over with this phone if I knew how.
chris_v said:
Before I make things worse, can someone let me know what did I do / doing wrong. I was on Sinister v8, trying to update to v11 of the same rom, using TWRP 2.3.1.0, i did a full full wipe,(Factory, System, Ex Storage, Internal Storage), copied new files to sdcard, reboot into recovery, Install zip (v11) from SD card, reboot....bootloop.
Then I went to try it again, remembering that i may need to extract boot.img and use fastboot but couldn't even access the filesystem. In TWRP I see a bunch of
Code:
E:Unable to mount '/sdcard'
E:Unable to recreate android secure folder
E:Unable to mount '/sdcard'
E:Unable to mount internal storage.
...
E:Unable to mount /sdcard when trying to read settings file...
Here are my details
Code:
JEWEL PVT SHIP S-ON RL
HBOOT-1.19.0000
RADIO-1.12.11.0809
OpenDSP-v29.1.0.45.0622
eMMC-boot
Aug 9 2012
I'm able to format data/system partitions via TWRP, but can't mount sdcard to get anything on it. I'm pretty sure i'll need to recreate/format the partitions. Any other steps I could try? (I have a backup from 12/31/2012 on my desktop cpu but can't get it on to the phone). I'm good with wiping everything and starting over with this phone if I knew how.
Click to expand...
Click to collapse
Fixed. Here's what I did.
Mounted via TWRP
Reformatted drive in Windows (desktop)
Copied new ROM zip to drive
copied boot.img (from rom zip) to drive
Wiped, Installed ROM via TWRP
Rebooted to bootloader
Applied boot.img via fastboot
Rebooted
worked.
chris_v said:
Fixed. Here's what I did.
Mounted via TWRP
Reformatted drive in Windows (desktop)
Copied new ROM zip to drive
copied boot.img (from rom zip) to drive
Wiped, Installed ROM via TWRP
Rebooted to bootloader
Applied boot.img via fastboot
Rebooted
worked.
Click to expand...
Click to collapse
How do you mount via TWRP? There's no mount option.
axtn95 said:
How do you mount via TWRP? There's no mount option.
Click to expand...
Click to collapse
Can't remember on the older versions, but on the newer versions the mount option is on the main menu.
FinZ28 said:
Can't remember on the older versions, but on the newer versions the mount option is on the main menu.
Click to expand...
Click to collapse
I know the mount menu, but what do you click after that, you just plug in and it turns on mount? Sorry i don't have the device in front of me, only a Nexus 4 as of now, but I'm not able to mount with N4, might be a different deal with the evo lte.
I had this same issue a few weeks back from Factory Reseting within the bootloader. I connected the phone to a USB port, then booted into TWRP and mounted the internal sd card. Right clicked the drive from within Windows then formatted it. I unmounted then rebooted back into TWRP and the SD card was mounted. If when trying to flash a ROM after this you get a Unable to mount cache message, try doing a Factory Reset from within TWRP.
axtn95 said:
I know the mount menu, but what do you click after that, you just plug in and it turns on mount? Sorry i don't have the device in front of me, only a Nexus 4 as of now, but I'm not able to mount with N4, might be a different deal with the evo lte.
Click to expand...
Click to collapse
You plug your phone in to your PC and select "Mount", then select which storage you'd like to mount.
still can't get to work
Still can't mount /sdcard. I can get into TRWP I have gone into Windows (I am on a MAC) and formatted the drive (is FAT32 the correct way?) When I try mounting the partitions, I can't select SD-ext nor Internal, is this why I can't fix this? I was able to send boot.img through ADB, just testing if this works. I could use some help before I have to turn this over to Sprint and pay for a replacement. I tried Chris V's solution but that didn't do anything. can't factory resest in TWRP cause can't load the /sdcard.
TWRP 2.6.3
DirtyRun
s-off
HBOOT 2.09.444
Radio 1.13.11.0830
chris_v said:
Fixed. Here's what I did.
Mounted via TWRP
Reformatted drive in Windows (desktop)
Copied new ROM zip to drive
copied boot.img (from rom zip) to drive
Wiped, Installed ROM via TWRP
Rebooted to bootloader
Applied boot.img via fastboot
Rebooted
worked.
Click to expand...
Click to collapse
What is wiped?
I installed new rom, rebooted to bootloader
what is applied boot.img (would that remove twrp) because now when i click recovery cynogenmod attempts to start but it boots again and keeps restarting (htc quietly briliant)
did not work
chris_v said:
Fixed. Here's what I did.
Mounted via TWRP
Reformatted drive in Windows (desktop)
Copied new ROM zip to drive
copied boot.img (from rom zip) to drive
Wiped, Installed ROM via TWRP
Rebooted to bootloader
Applied boot.img via fastboot
Rebooted
worked.
Click to expand...
Click to collapse
Thanks, you just saved my phone from flying.
Might as well post this fix here while I'm at it.
HTC EVO 4G LTE Rescue Guide
same problem here with my flare s3 octa
chris_v said:
Fixed. Here's what I did.
Mounted via TWRP
Reformatted drive in Windows (desktop)
Copied new ROM zip to drive
copied boot.img (from rom zip) to drive
Wiped, Installed ROM via TWRP
Rebooted to bootloader
Applied boot.img via fastboot
Rebooted
worked.
Click to expand...
Click to collapse
i have the same problem but, can you make your fix more precise. i mean,
1. what did you mount via twrp? are those cache, data, eemc, system, sdcard, sd-ext? cause i can't mount them all except cache, i can't even click the box with X.
2. i've also reformatted my drive (sdcard) through my windows 7 and make it to exfat.
and all the time i do the wipe of everything that have to be wipe it always says: factory reset failed!
elena03 said:
i have the same problem but, can you make your fix more precise. i mean,
1. what did you mount via twrp? are those cache, data, eemc, system, sdcard, sd-ext? cause i can't mount them all except cache, i can't even click the box with X.
2. i've also reformatted my drive (sdcard) through my windows 7 and make it to exfat.
and all the time i do the wipe of everything that have to be wipe it always says: factory reset failed!
Click to expand...
Click to collapse
A better bet would be to post in the forum for your particular device. I'm not familiar with the Flare S3 Octa, but basically the steps should be the same. What you want to mount is the "System" and/or the "SD Card". You can transfer to those partitions. Another good rule of thumb is to make sure you're using the latest recovery available. When all else fails, you may need to do a complete reset via an RUU.
ocarinaz64 said:
A better bet would be to post in the forum for your particular device. I'm not familiar with the Flare S3 Octa, but basically the steps should be the same. What you want to mount is the "System" and/or the "SD Card". You can transfer to those partitions. Another good rule of thumb is to make sure you're using the latest recovery available. When all else fails, you may need to do a complete reset via an RUU.
Click to expand...
Click to collapse
thanks for the quick response. yes i am pertaining to both "system" and "sd card" that i can't mount. and i don't know if i'm using the latest recovery hehehe. may i know, what is all about RUU? sorry for that many question, for i'm not a pro neither a developer by any chance. thanks for the help.
elena03 said:
thanks for the quick response. yes i am pertaining to both "system" and "sd card" that i can't mount. and i don't know if i'm using the latest recovery hehehe. may i know, what is all about RUU? sorry for that many question, for i'm not a pro neither a developer by any chance. thanks for the help.
Click to expand...
Click to collapse
I really did spend some time looking for your device. This page is all I have to offer.
my problem got resolved (HTC Desire 600 Dual sim)
chris_v said:
Fixed. Here's what I did.
Mounted via TWRP
Reformatted drive in Windows (desktop)
Copied new ROM zip to drive
copied boot.img (from rom zip) to drive
Wiped, Installed ROM via TWRP
Rebooted to bootloader
Applied boot.img via fastboot
Rebooted
worked.
Click to expand...
Click to collapse
thanks for help...i applied these steps for my HTC desire 600 dual sim handset..
n it worked

please, help, storage error after rooting

hi i just bought a samsung mega 6.3 in indonesia, it's a 16 version but i didn't check it before i root it, however i seem to remember when i plug it onto my computer it was 11 or 12 gb storage
so after rooting using guide in this thread " http://forum.xda-developers.com/showthread.php?t=2355680&page=3 ", when i plug it on my computer it shows only 128 mb storage, why is it happening? and if i checked setting - more - storage it says "8 gb (why 8 gb instead of 16 gb or 12 gb?).
if i open application manager from setting - application manager it says 352 mb used out of 12 gb free.
I used odin 3.07 to flash vcoreroot-v2.tar, followed by original kernel KERNEL-XSE-I9200XXUAMEE-1369705836.tar, followed by cwm recovery v6.0.3.2 - i9200-cwm-recovery
please help me. thank you so much
oh and the storage on the pc is empty without any folder, and i can't copy files onto it...
please helpppppp
The internal storage ( sdcard ) is only a folder on your data partition ( /data/media ). The entire 16GB is not allotted to your sdcard. It is shared. So you will not see the entire 16GB when you mount your sdcard on your PC. So no worried there. Also make sure your usb debugging is on before connecting your phone to PC.
Regarding root, the easiest method is to flash cwm recovery and then flash the SU zip file. If you use twrp recovery, the recovery will do the rooting for you. Just remember to reboot to recovery first after flashing the twrp recovery, else recovery will get overwritten by stock recovery.
I suggest, you flash your stock rom again and re-root. You could also try this app to root your phone using windows.
The internal storage ( sdcard ) is only a folder on your data partition ( /data/media ). The entire 16GB is not allotted to your sdcard. It is shared. So you will not see the entire 16GB when you mount your sdcard on your PC. So no worried there. Also make sure your usb debugging is on before connecting your phone to PC. ===> debugging is already on. yes however it shows up only 128 mb, and i couldn't copy any data onto it
Regarding root, the easiest method is to flash cwm recovery and then flash the SU zip file. If you use twrp recovery, the recovery will do the rooting for you. Just remember to reboot to recovery first after flashing the twrp recovery, else recovery will get overwritten by stock recovery.
Click to expand...
Click to collapse
i also couldn't get into the recovery mode, it was 2 red lines and it just restart, i've re root it twice using the same method...
0664348999
finally after 5 hours of works and skipping actual job. im able to get my pc to read the whole 12 gb of the storage,
by using steps and original firmware from hxxp://honai-android.blogspot.com/2013/11/how-to-update-galaxy-mega-63-i9200-with.html
for anyone who might stumble upon the same problem
thank you for helping @Silesh.Nair

[Q] need to bring a file to the phone, no ROM installed

I've attempted to flash a newer version of cyanogenmod on my phone (10.1.3 to 11). I'm using TWRP 2.6.1.0
I can not boot because I've wiped the phone (dalvik, system, data, internal storage, cache), and I suspect the ROM I have is corrupted but I can't connect it to my computer and transfer the file via USB because I have no ROM installed and can not boot. I also can't take the SD card (since there's non) and put the file that way.
My phone is Oppo find 5
My root file flashing was successful, but installation of the ROM cm-11-20140204-NIGHTLY has failed. I assume the file was corrupted, but I have no way to find out what it is.
I now realize my mistakes, like wiping the system unnecessarily.
Is there any way to get another file on the device? any other suggestions?
Also, I'm not sure if this is the correct place to post this, but I was not able to find the right place. I apologize in advance.
Eyal,
http://forum.xda-developers.com/showthread.php?t=2141817
Check that thread, set up adb and push a ROM to the internal sd of your phone via adb. You can use adb in recovery mode (I could in CWM, dont know about your recovry) so if you can boot into recovery, you can push the rom. (There is info on the thread about adb pushing/pulling)
Sent from my GT-S5660
Cwm has an option to mount storage to PC in mounts & storage menu
Check if twrp has the option
You can mount it that way:good:
vneogi199 said:
Cwm has an option to mount storage to PC in mounts & storage menu
Check if twrp has the option
You can mount it that way:good:
Click to expand...
Click to collapse
it doesn't seem to recognize anything.

TWRP unable to mount memory even after wipe

Hi,
I have a Xiaomi Redmi Note 5A, and I installed TWRP and Magisk on it 6 months ago, and all was working fine until the last update of MIUI that was installed just yesterday. After that, Magisk had no more root access and TWRP was no more here. At this point I flashed again TWRP with ADB, and after rebooting on recovery, TWRP launched but it was unable to mount any memory, so I could not flash any file. After several tries and researchs on forum I ended up to wipe memory (also changing format file from EXT4 to EXT2 then back to EXT4). After that TWRP sees effectively the memory but I can't still flash any file as I just wiped memory. So I have to reboot on system to put files on the memory: doing that I have first all the different screens steps to setup MIUI from scratch. When all the phone is configured, I reboot in fastboot to flash again TWRP, then I reboot on recovery, and again TWRP is unable to mount memory. I tried this several times and tried many other things (removing the patern lock, setting just a PIN...) but nothing worked so far after several hours searching...
If anyone could help, I would really appreciate it. Thanks in advance!
Ok, I finally solved it. Here is what I have done:
First I strictly followed instructions from this tutorial:
Fix Unable To Mount Storage TWRP: If you are trying to factory reset your device using twrp recovery and it’s displaying unable to must data then follow the below instructions.
First off all remove pattern lock from device and add PIN lock/password as a security lock as shown in above method.
Still getting “unable to mount storage twrp error” then go to main menu of twrp recovery.
Click on “WIPE” option >> “Advance Wipe” >> select “Cache” >>click on “Repair or Change File System” >> “Change File System” >> click “F2Fs” and “swipe to Change”
Again Go back and select >> “EXT4” option >> “Swipe To Change”
Now repeat the same process with “System” option and “Data” option one by one.
After doing that you are free to wipe or factory reset your device without any TWRP error. This time it will not show the unable to mount storage in TWRP recovery.
Click to expand...
Click to collapse
Note that it wiped everything even OS.
So I downloaded the latest official ROM from MIUI website, and I copied the file to the phone with USB mass storage mode (still being in TWRP). I also put the LazyFlasher zip and Magisk zip. Then I installed the 3 zips at the same time, ROM first, LazyFlasher second, Magisk third.
After rebooting, and reconfiguring the phone, all works fine.

[QUESTION][TWRP] Can I install a custom ROM downloaded while on the OS?

Hey, I've always wondered if it would be possible to just download a ROM on the phone I'm going to install the OS on, boot into TWRP, go to the downloads folder, and install the ZIP file from there. Would that be possible? Or would it require a SD card or to ADB sideload the file? (like I always do it)
Yes, this is possible, as long as TWRP is already installed. It doesn't matter how the file gets to storage, whether you download it through Android or transfer via USB. The only thing that matters is whether TWRP can decrypt your data (if encrypted) and whether the file is intact and not corrupted.
Once your device is rooted and has TWRP installed for your device and you have backed up your current working rom on an sdcard using TWRP, Yes you can download any rom for your device and install it from TWRP, Download folder
The install process for roms do not wipe your sdcard (phone's storage) only the system partitions unless they contain pit files which repartition the whole device (usually only when installing stock rom pit files included otherwise custom rom developer will list in the install instructions use external sdcard as whole phone will be partitioned but in the years I've been involved with custom roms this has never happened to date)
Hope I answered your question have fun and enjoy learning
V0latyle said:
Yes, this is possible, as long as TWRP is already installed. It doesn't matter how the file gets to storage, whether you download it through Android or transfer via USB. The only thing that matters is whether TWRP can decrypt your data (if encrypted) and whether the file is intact and not corrupted.
Click to expand...
Click to collapse
see above forgotten to click reply on yourself lol cheers

Categories

Resources