Incorrect internal storage information with Magisk (16 instead of 128 GB) - Android Q&A, Help & Troubleshooting

Hi there.
I have a Galaxy A50 (SM-A505FN) with 128GB. I rooted it with magisk (original firmware from sammobile (link below), modified on unrooted phone with magisk manager, flashed through download mode and odin).
The issue is that the phone now says it only has 16GB of storage.
Conneced to my PC it also only finds 16GB of internal storage.
I added a picture of what the terminal says the partitions are.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I read about correcting partitions with twrp but since i dont have that i want to ask if there is another way to fix this.
Thanks!
www sammobile com/samsung/galaxy-a50/firmware/SM-A505FN/DBT/download/A505FNXXU3ASL6/309345/

i can only see 10 GB on your screenshot. check one of the following
Code:
cat /proc/mtd
cat /proc/partitions
cat /proc/dumchar_info
you can download parted binary and check
Code:
parted /dev/block/sda print

note that the 6263-3234 block in the first screenshot is the sd card. i dont have it encrypted so im wondering why it seems to be mirrored in the /mnt/secure/asec block. i did however click the 'copy files from sd card' when it popped up i believe. but even if that did something, it could only block 64 of my 128 gb.
displaying partitions worked, heres the result:
i see that sda shows the 128gb capacity and sda32 seems to be whats is usable for the phone after taking out all the neccessary partitions.

unfortunately i don't know how knox works, all i can see is /data is not mounted, maybe knox prevents

try to uninstall KNOX with su -c pm disable com.sec.knox.seandroid or something

@mirfatif same problem here, must be something new. i have never seen before. maybe permission problem with magisk or some sort of disk quota
data is mounted /sbin/.magisk/mirror/data
(or /sbin/.magisk/block/data)

aIecxs said:
@mirfatif same problem here, must be something new. i have never seen before. maybe permission problem with magisk or some sort of disk quota
data is mounted /sbin/.magisk/mirror/data
(or /sbin/.magisk/block/data)
Click to expand...
Click to collapse
No idea. Can't conclude anything unless OP performs some troubleshooting steps. Whatever the case is, "/data" must be a mount point. May be something to do with SELinux, or mount namesapce, or new Magisk changes for Android 10. I'm using old Magisk release on Android 9. So may be missing something new.

Related

[Q] Corrupt files in /sdcard root

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
^^That's what's at the root of my gtab's /sdcard.
Also, there used to be two folders in that that I had created and are no longer there.
Here's what I was doing immediately before I noticed this:
I'm currently using TnT Lite. I need to be able to access wifi at work but my company uses EAP encryption and TnT doesn't have a setting for EAP. I decided that rather than switching roms, I would just switch settings menus (using the files found here: http://forum.xda-developers.com/showthread.php?t=857939).
Stupid me, I downloaded them to /sdcard2 rather than /sdcard. I booted into clockworkmod and tried to install the zip from the sdcard but clockworkmod couldn't find anything. I realized my mistake and rebooted the gtab and hooked up the usb to my pc. That's when I noticed the file corruption.
Everything still seems to work as it did before, I just don't have access to any of the files that were in those folders.
In case it matters, one folder held the TnT Lite rom and the other held several videos.
Does anyone have any idea what could have caused this?
Should I try to delete the corrupted files?
Any help with this is much appreciated.
I don't claim to know why this happens this is just what I did to fix my problem.
I noticed this on my gtab also, to the point my cal program wouldn't open. The only way I could fix it was to do an sd partition to it fix the issue. There are instructions on how to do that with cm8. This is from memory so please double check, go to the advanced options choose sd partition 2048/0. Please note that this wipes the sd card so back up prior.
I still get a few of those weird files buy not like before.
same thing happened to me but hasn't come back after
re-partitioning with cwm ... maybe that is the fix
I would *really* like to know why this happens (that and why
the sdcard2 gets wiped out sometimes).
Basically, you dare not trust android with any important data
and you never know if what's on it will disappear suddenly
Unfortunately, this makes the tablet just a toy
So is the best option really just to re-partition the sd card?
If I end up re-partitioning, will I have to flash the ROM over again? Or does partitioning just remove the user data?
Quote: will I have to flash the ROM over again?
No

[QUESTION][GalaxyS2] Questions/Help with internal memory, customized ROM, "true" fact

[QUESTION][GalaxyS2] Questions/Help with internal memory, customized ROM, "true" fact
(1) I need to completely wipe, remove, restore my phone to absolute stock. I am having some weird issues and want a "clean slate" to work off of. I currently have AJK (with custom initd and extweeks), cwm recovery, and cyanogen installed. I want all of it removed and want to start from scratch. What's the best way to accomplish this?
(2) upon completing Q1; I have a very small internal phone memory, somewhere around 1/2gb but I have a 32gb SDcard -- is it possible to format my SDcard to allow it to be used as "phone memory" so I can have more apps installed? I know there is the "move to SD" options, but this is not what I am looking for since this does not work for widget apps. Also I have a difficult time downloading apps without getting the "insufficient space" error via the play store during app installs.
I am so tired of having to uninstall apps just to install or test new ones. There has got to be a way to use my SDcard as phone memory
I have:
- 100mb out of 1.97gb on Internal Storage (/system)
- 7.82gb out of 11.36gb on Internal Storage (/sdcard0)
- 14.84gb out of 29.32 on SD Card (/sdcard1)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So even if I could combine /system and /sdcard0 to become /system and only have 1 sdcard partition would suffice
(3) is it possible to customize/package CyanogenMod to install NovaLauncher (remove/replacing Trebuch) and SwiftKeyboard (instead of AOSP keyboard), amongst other apps (I have the .apk files) so they are installed by default? Also removing apps like Apollo and DSPmanager.
(4) what are some custom scripts, init.d, extweeks, etc you guys are using that I should look into using to get the best performance, battery life, speeds out of the GS2?
Sent from my SGH-I777 using Tapatalk 4
bumping this, really need help with Question 2!!!!
please someone help me out here! there has to be a way!!
I found this thread: http://forum.xda-developers.com/showthread.php?t=2412319
does anyone know if just from reading it, if it will work for my problem?
I found this thread: http://forum.xda-developers.com/showthread.php?t=2412319
does anyone know if just from reading it, if it will work for my problem?
ksaul said:
I found this thread: http://forum.xda-developers.com/showthread.php?t=2412319
does anyone know if just from reading it, if it will work for my problem?
Click to expand...
Click to collapse
Please look at http://forum.xda-developers.com/showthread.php?t=1914184, well it's said for MT6577, but it doesn't mean they can't be try to other type.. there are 3-option that worth to try..

[HELP] Internal SD Card Gone, stock firmware won't flash

First of all, this is not related to any unsuccessfull flash process, I got my S3 in 2012 and it worked like a charm after many flash processes. The last ROM is - was :'( - Blekota Note 4 Lite 5.2
The problem came when this morning, I plugged my phone to charge, it was 3% battery, I left it for 1 hour and when I came back, the back of the phone was very hot and the phone screen hanging on the first image of boot animation. I unplugged it and removed battery, once turned on, it did not leave the samsung logo. I suppose the chip simply fried...
I was looking for a solution and found something that may be for help, but the solution i found was for SGS-I9000, the process did not work for my S3 (this one with two others related to sgs1), I formatted the sd card with 16GB Ext 4 and 16GB Fat32.
As I am not familiar with scripts and linux commands, my question is simple:
Is there a way to install a ROM in external SD card ? my phone starts in download mode and I am able to flash TWRP (or any other recovery) via odin, this one shows me Internal SD card capacity as 0 when I try to install anything. See attachments below, the red messages appear also when trying to flash stock firmware , after the first reboot (I9300XXEMD3_I9300OJVEMC1_I9300XXEMA5)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you cant mount anything, its either your internal storage is burnt too or corrupted from being affected by the burn. Your s3 might be basically destroyed
Jericho Arcelao said:
If you cant mount anything, its either your internal storage is burnt too or corrupted from being affected by the burn. Your s3 might be basically destroyed
Click to expand...
Click to collapse
That's the point of trying to install system in external SD
Unfortunately that is impossible. Sorry

Data lost but huge "system data" partition after a crash

Hi everyone.
I've a Nexus 5 which runs Android 6.0.1 but I think the problem is not especially related to the Nexus 5, so I post here.
What happened ? Few days ago my phone crashed (I didn't use it) and was slow to boot up. So I tried to force the reboot by pressing the power button for 15/20s and it worked.
But 5/10min after I saw the "Select language" menu ... The phone performed a factory/reset by itself. I don't know why.
First, I plug my phone to my computer and I've seen that 26GB/32GB were already in use.
So I tried to recover my pictures and videos with many apps and the one which worked was "Undeleter" (5$) but it didn't recover all my data.
Yesterday, I wanted to understand what happened really. I ran "DiskUsage" which give me this result for /storage/emulated/0 :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How can I access to the "System data" partition which has a size similar to the storage space used before the crash ?
Regards,
Laurent
EDIT :
Finally I backed up all my data !
Indeed, files of my memory (/sdcard) before the crash was in /data/lost+found/#1351681/0
Then, I was able to move them to /sdcard and to copy the files on my PC.
How to ?
Make sure your phone is rooted and install a file explorer such as Root Browser.
Open Root Browser and navigate until /data/lost+found/#xxxxx [in my case, with a Nexus 5 it was 1351681/0]
(Look for the directory which corresponds to your previous "sdcard".)
Now, you can see the files but you can't open them. So move (not copy!) them to /sdcard (I suggest you to do that folder by folder).
Great, you've recovered your files ! But now, transfer them to your computer to prevent damages (I was forced to do that and remove files after to continue because the storage was full).
You can do it in connecting your phone to your computer and via the explorer or you can use adb (adb pull /sdcard/directory_to_move path_to_a_dir_of_your_computer)
I hope it will be useful.
Laurent

Internal storage mount or permission problem (Oneplus One)

Hello all,
I've been flashing rooms on the phone for quite a while now, but last weekend i flashed a new CM14.1 ROM onto the phone with the new GAPPS with it. Before doing this i ofcourse wiped the needed partitions in order for them to work right. However, since i've done this and flashed the new software, the phone doenst have access to the internal storage while being booted into the system (OS)..
When i boot into TWRP, i have full access to the internal storage and i'm able to create new folders and copy/cut/paste files onto it. Down here, you see i've created a new folder using the PC while its booted in TWRP.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When i try to do this while its booted in CM14.1 (android 7.1.1, but i think any ROM i'd flash) this happens:
To translate this from Dutch to English: "The new folder couldn't be created on this location. The device isn't responding anymore or the connection has been lost".
When i browse to the internal storage through the OS itself, it does show up. However, i dont have any access to create new folders or files or to change them:
Also when i try to take a picutre using the camera, it says this:
Even when i enable developer options and giving root to both apps and adb, it still doesnt have the required access to perform these actions:
Also going to the gallery, it says that there is no storage available:
I also looked up some info about the partition, which might be useful for those who have some knowledge about this.. This is what i found using the app "Diskinfo":
And i also used the commands ls -l to show the permissions of the /data/media/(and)0/ to see what rights are giving out:
As you see here, the app itself didnt have access to go to the storage location untill i gave it "su" rights. Does this mean the entire OS doesnt have access to this location because it simply doesnt have the right permissions for it?
If anyone has any suggestions or wants to help me figure out what is wrong, please feel free to reply here or through a PM. It would be highly appreciated.
///Edit
After searching around on the web i came across a post where someone said that running the TWRP advanced option "Fix Context" would reset all permissions that you normally dont do yourself. So i've ran that, it ran for like 0.5 second before being finished. After rebooting the phone into the system (OS/Android) all problems were solved and permissions were set right.
Therefore my problem is resolved now, and this topic could be closed ^^

Categories

Resources