olegos2 / termux-box

GNU General Public License v3.0
559 stars 31 forks source link

Termux-box installation script erased all my storage #56

Closed admo64 closed 7 months ago

admo64 commented 1 year ago

Only the Android folder was left, all my apps are still running with they own saved data. Fortunately I made a backup of my photos not so long ago, so I kinda appreciate the extra space but such bug is very dangerous.

The storage erasing happened in some point between this steps. I did NOT run any command in termux, only the installation script of termux-box

  1. Install termux-box in chroot
  2. Since steam wasn't working I tried to change to Proot containing method. After doing in the settings of termux-box it said something like "./start-proot.sh" not found
  3. Tried to rerun the installation script, this time it showed many "can't erase xxxxxx" in a "ubuntu-sh" folder
  4. Selected Proot for installation and again it said "./start-proot.sh" not found
  5. Cleaned all the data of termux in android settings
  6. Reinstalled termux-box, this time there wasn't any error messages
  7. Selected Proot and again didn't work
  8. Erased termux data in android settings
  9. Denied root permissions to termux
  10. Reinstall termux-box, many "denied permission" showed up
  11. Selected Proot again and after a few "denied permission" it just stops and does nothing

After this is when I realized that all my storage was gone

romanovj commented 1 year ago

you didn't unmount folders before Cleaned all the data of termux in android settings

admo64 commented 1 year ago

I see, never saw uninstall instructions so I thought it was enough cleaning the data. May I ask how to properly uninstall so this doesn't happen again?

romanovj commented 1 year ago

the safest way is to delete whatever you want after reboot

admo64 commented 1 year ago

Well, I actually the day before was trying various options, box64droid, winlator until termux-box which was the one I liked the most. Today in the morning while trying to boot box64 in proot was when my storage was erased, so I don't know if was the install script fault or a termux app bug.

I redid the steps I wrote but it did not erase anything. I guest I have to reboot every time I have to reinstall and hope it doesn't happen again.

May I ask that if I manually execute the script start-proot.sh inside the termux-box folder does boot box64 properly in proot containment?

olegos2 commented 1 year ago

Unmount problems can sometimes happen. I don't have root and I can't fix all rooted version problems yet

romanovj commented 1 year ago

@olegos2 script could be started with sudo -E unshare -m ./script no mounts in global namespace - no problems (script needs adjustment for unshare)

bharteja commented 1 year ago

Guys don't you erase them manually in file manager

MohamadOday commented 7 months ago

Hey, How can I avoid this? What is the proper way of uninstallation?

admo64 commented 7 months ago

The safest way is to uninstall after a reboot. After rebooting you can either use the script option to uninstall if available or erase termux app data