![]() |
miroroot.sh a script to clear rootfs has ruined my phone !! :(
1 Attachment(s)
I found this ((((sh)))) script on a website, has codded to clear rootfs, but after using it ... I've noticed some widgets were disappeared .. and there are many bugs !!!
ps: this script made a folder called miroroot in this directory & contains two folders (var,usr) : home/user/miroroot/ so what should I do to solve this problem :confused: :( :confused: :( |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
So what's the problem ?
1. That script deleted some system files ? or 2. That script didn't delete all system files ? |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
actually I think the script has deleted some unimportant system files & moved large files to this directory :
Code:
home/user/miroroot/ |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
@Ammar Hamdan,
You can either undo what the script has done (can be hard, but it is doable) OR completely reflash. In view of your willingness to execute some script you found somewhere, I'd recommend the latter. |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
1 Attachment(s)
This script edited by Amr.fayz you can find him here in Meecolay thread, anyway this is his script :
Code:
#!/bin/sh Code:
#!/bin/sh ./sifo |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
Quote:
Plus, the "Miroroot" folder is not created at the beginning of the script but the first time mkdir -p is used. Nevertheless, the script does chmod +x and chmod 755 (which in itself makes me seriously doubt of the skills of this Amr.fayz) on that folder, before it is even created. Don't want to blame anybody without being 100% but looking at the script my first thought would be "HANDS OFF", and *I* can read and write shell scripts and know my way around Unix. An inexperienced user should think "HANDS OFF" before even looking at the script. Obviously the damage is reversible. By definition. But at least *I* will not do the hard work of reversing that. So either the original author of the script (Amr.fayz) comes to the rescue, or the OP does a complete reflash. |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
thank u all 4 replies ... I doubt the author is alive to come to rescue :D ... I think he knew his script has bugs & cant find a solution or he's working on a solution to fix the bugs & need some time ... so there is no way except flashing my phone :(
|
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
I would sort everything via WinSCP.
Delete created symlinks and move all folders from home/user/miroroot/ (if it's actually present) back to / Like reinob said the original script uses /home/ as destination (which is a system folder and already present) but the customized script wants to put everything into home/user/miroroot/ but forgot to create this folder. ;) |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
@J4ZZ
I have a noob question :D : how to delete created symlinks ?? |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
Quote:
For example, your script did (amongst others)(expanded and simplified from parsing the script): Code:
mv /usr/share/icons /home/Miroroot/usr/share/icons Code:
rm /usr/share/icons Do not be tempted to use rm -r though. That will delete not just the symlink but also recursively all the files and folders the symlink points to, thus screwing up your phone irreversibly with a reflash the only way back. Before embaring on any of this, I strongly suggest to check the folders actually exist under /home/Miroroot. Both J4ZZ and reinob have already warned you about that. |
All times are GMT. The time now is 02:09. |
vBulletin® Version 3.8.8