CypherpunkArmory / UserLAnd

Main UserLAnd Repository
Other
3.59k stars 396 forks source link

HELP!! Ubuntu 18.04 rootfs failed to uninstall after factory data reset. #682

Closed JasonsDoomGitHub closed 5 years ago

JasonsDoomGitHub commented 5 years ago

The issue is that I know have an extra 3gb of used up memory in internal storage [/storage/emulated/0], making it a total of 6 used up gigabytes. And that is after I factory data reset the device (Samsung Galaxy j7).I figured since you only need to uninstall app to uninstall the Linux Distribution, I just went right ahead and relayed factory data reset through GUI. Initially I was settings up config_file for udev rules or something related to that package, can't remember the specific name but it was related. Long story short, there were a few errors when the packages were downloaded, wifi connection lagged. I then manually fixed the issues and proceed to install a Desktop environment and that's when the ssh terminal froze. My question is how to I delete those residual files from my android phone. On android OS, the Internal memory partition reads that there is and additional subdir that is similar to dir /storage/emulated (enc_emilated) and that's where the additional 3gb of files are or so I think since Userland loads onto external drive right? But there are files in ext4 that shows it contains a good amount of mb. But I'm not sure how to go about this. I installed Ubuntu again and through CLI uses cmd fdupes and fslint to search for residual files and there is a bunch of files pertaining to /data directorie and similar root files i.e. ./data ./etc ./usr ect... I'm running android OS v.8.1.0 on Samsung Galaxy j7 sm_j727r4 ,, not rooted So to whom ever this may intrest I would really appreciate the help. Seems like the solution to this should be to delete all residual files on host-rootfs using the root ssh but that will take forevermore.... Sorry if it seems like a Roockie question but that's because I am.. but I must prevail!!! Yours truly -jasonsdoom

enforce-issue-templates[bot] commented 5 years ago

Hello @JasonsDoomGitHub! It looks like you've posted an issue that requires more details for our team to be able to start working on it.

We have created some issue templates to assist you in this process. These issue templates can be found here.

To correctly follow the template, all of the headers from the template must be present in your new issue. The headers for each template are the lines that begin with a '#'. Include the headers, and then provide the data the headers require in the space below that header.

Following these templates will help our team begin work on your issue. We often cannot get started at all without that information, which is why we created this bot to help us out.

Please be as descriptive as possible when posting your issue, including any steps we would need to recreate it. If reproducing your issue requires us to figure out how to reproduce it in the first place, it will marked low priority.

If your issue is not updated to follow a template, we will likely close it within the week.

Thanks for using UserLAnd and for helping us improve it!

corbinlc commented 5 years ago

Just simply uninstalling the app should be all that is needed. The filesystems are only created in internal storage, not on the emulated or real sdcard partition. A factory data reset should definitely blow away anything from UserLAnd. Are you sure it is something from UserLAnd taking up all that space?

JasonsDoomGitHub commented 5 years ago

Yes, it is definitely related to UserLand. A couple hours ago I reinstalled the app and was trying to delete the duplicate packages and all its files but we are talking about at least 4gb. Originally the phone has 16gb of available storage and when I first bought the device it had at least 13 GB of available storage minus the 2ish GB of used storage for the host-rootfs. To no avail, I uninstalled the app and boom now it went from 6gb to 8gb of used internal storage. Honestly either there's a script that is mounted onto the host-rootfs or some how after uninstalling again, the contents of UserLAnd stayed on device due to the fact that right before I relayed a factory data reset I had unlocked the OEM bootloader because I was updating the phone via OAT. (Idk why I unlocked it) but ever since then I noticed the issue. Here i will take a snapshot of devices storage. You will see that there's really nothing that should take that much space. I literally have 2 apps. I was using X-plorer file manager and was browsing the rootfs and yeah definitely it has to be it. How am I so positive we'll in one .text file there were scripts related to Ubuntu (bionic beaver) were the key words that made me so sure it's part of UserLAnd which is by the way an Extraordinary App. Since postings this I went into devices developers settings and toggled off the OEM bootloader switch. Another thing I was also doing at the time of this unfortunate setback was looking into how to mount Ubuntu onto the device itself some what like Anbox. But didn't really start doing it. Because of present issue. Like I mentioned, I tried installing app to use proot.sh to go into file system as root user to fix the issue but there's a lot....... can I some how use the cmd like (purge) to erase multiple packages I know that either cmd (fslint) or (fdupes) can find residual files or duplicates. But like mentioning before, its 7gb. Note not sure how to post .img

JasonsDoomGitHub commented 5 years ago

Or the issue could pertain to a Fusefs module bridging the kernel to the partition that UserLAnd occupies when it is installed.

corbinlc commented 5 years ago

You cannot install fusefs in UserLAnd. That requires real root permissions.

JasonsDoomGitHub commented 5 years ago

Yea, my bad. Had to hit the books really quick. but what if it was possible, what if... Let's say it did happen some how some way on a phone with no root. And there really are residual files and folders left behind. Would I be able to delete every single trace of ubuntu that was left behind? And how would I delete every single trace of residual files and folders left behind by ubuntu but with root privileges? Sorry but not all information that is online isnt always accurate but it's all trial and error. But back to the main issue, I did find either a .text file or a .sh file pertaining to Ubuntu. And this is after hard factory resetting and even updating firmware literally half a hour later. Is there any output I can send you or post that would be useful to read and identify if there really isn't, like cmd ~$ la-R or similar? you never know, I mean this is Linux. I would really appreciate the help.

corbinlc commented 5 years ago

Our app installs and uninstalls like a normal app, so any failure for it to be removed by an uninstall or a factory data reset would be a problem with Android and outside of our control. If really interested, our files live under /data/data/tech.ula . If there are files there, but you have UserLAnd uninstalled, then Android failed the uninstall for some reason.

corbinlc commented 5 years ago

btw... you are correct. Even Android plus preinstalled apps is getting bloated. So you can have a lot of our disk taken up right out of the box.