![]() |
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. |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
@pichlo
thx 4 ur advice :) .. but I already flashed my phone :( anyway everything is O.K .. but after installing some apps .... media player app & media player widget were disappeared !! PLZ HEEEEEEEEELP !!! :( :confused: :( :confused: :( |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
Start with a list of apps you installed after flashing your phone, as without it, there is no way of knowing what could possibly have gone wrong.
|
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
Quote:
Code:
sudo gainroot J4ZZ |
Miroroot script to safely free space on rootfs
1 Attachment(s)
Hi,
Miroroot is script to safely free space on rootfs To solve the problem of Low space |
Re: Miroroot script to safely free space on rootfs
why do not write more explicationes for noobs like me, or should I download and find out myself what will happen after running this script.
anyway thanks. |
Re: Miroroot script to safely free space on rootfs
Quote:
ok Download script and put it on MyDocs and run HTML Code:
sh /home/user/MyDocs/miroroot.sh the script will be given the space of rootfs before and In the end will be given the new space of rootfs Compare them :) |
Re: Miroroot script to safely free space on rootfs
I've never used Miroroot but in view of this thread, I'd be very careful with it.
|
Re: Miroroot script to safely free space on rootfs
Quote:
thanks it is the first time I see this topic but Anyway It's a new version without any problems The idea simply Transfer some files from root to opt In a file named miroroot SO If there is a problem Only Transfer files to its previous ther is No damage at all |
Re: Miroroot script to safely free space on rootfs
Quote:
The only change I see in this "new" one is that you've selected a different set of folders, which probably most users don't even have (/usr/lib/debug, /usr/lib/gcc, etc.) Plus you've shamelessly ripped this script from Thomas Tanner's original without even bothering to acknowledge that your work, if not a verbatim copy, is *heavily* based on Tanner's work. |
Re: Miroroot script to safely free space on rootfs
The word "safely" is been thrown around way too much - plenty of things can fail, with this: return codes aren't checked, especially before and after the "rm" part; what happens if /home is full, and the copy fails? The original files are deleted, and there's no way to recover them. It doesn't handle the case of those directories already being optified, and it's susceptible to ^C.
Please avoid, this script will probably damage your system. |
Re: miroroot.sh a script to clear rootfs has ruined my phone !! :(
You have been merged!
Instead of using ridiculous scripts to free space think about what is needed on the phone and what not, I only ran out of space once with an OTA upgrade, never again! If you install stuff not optified properly you may want to use the very first version of this script to brick your beloved n900 finally! If you cannot wait for developers shipping software and want to have it at an early stage you might also accept to run out of space. |
All times are GMT. The time now is 15:28. |
vBulletin® Version 3.8.8