![]() |
Re: did I format my emmc via xterm?
hey I have another command for you to copypaste!
Code:
sudo gainroot |
Re: did I format my emmc via xterm?
Quote:
More foolproof instructions would have been something like: Code:
rm -rf /and/data/* |
Re: did I format my emmc via xterm?
Quote:
|
Re: did I format my emmc via xterm?
Congratulations - you are well on the way to being a Linux Master.
Seriously - I find that by making huge cockups such as this, you learn loads more than reading manuals etc. |
Re: did I format my emmc via xterm?
seems like I wan't in /home/user but in MyDocs or somewhere else cause my dictionaries and lots of other folders of user seems intact.
what i read by now is that rm -rf * deletes (force unix/linux to forget) all the content of ALL MOUNTABLE DRIVES. is it the same if I browse to particular directory or is it that it will delete contents of those directory only as you(pelago) said? just tried to recover my contents using phoyorec, just to make sure I what were there(one txt file I can remember is a compilation of maemo tips such as how to install dict file etc) and it seems to work fine although it was a bit buggy (marking recovery extensions and scrolling) and a bit confusing, I tested it and recovered few photos(of small size around 12kb, does maemo creates thumbnails like that? or was it quiver) and aborted recovery as it was saying 7hrs required and still only 10% cylinders were scanned. even pc takes hours, why wouldn't it. and yes i reboot safely, no problems and seems like bootloader entry for nitdroid is gone and its just normal boot like before. albeit i am not linux guru, i have little experience of ubuntu(learned how to install tarballs and some command lines as well) but that was 2 yrs back. its just impossible to live with linux only(main reason-slow internet that i have and lack some softwares related to civil engg, and 40gb hard disk else...). anyways... thanks to all you guys for helping me out, even when you are scolding me, ypu are helping me. love you all and love tmo. |
Re: did I format my emmc via xterm?
Quote:
most of, because it won't delete "hidden" items (those beginning with a period (.) in the root of the current directory. |
Re: did I format my emmc via xterm?
Quote:
Code:
rm -rf ./* |
Re: did I format my emmc via xterm?
Quote:
(Note: there's actually a hidden difference in behaviour if there's a filed named "-r" in the dir, and your shell expansion algorithms suck; but I doubt this is what we're talking about) The problem here is that parent poster copied a lot of commands he had no idea what they did, and even then, ignored the error that the first command in the set gave him, and blindly proceeded to destroy his filesystem. There's no solution to this other than repeating: ask first, run later. |
Re: did I format my emmc via xterm?
Quote:
btw i didn't got a chance to stop on error as i foolishly copied and paste all lines at once. |
Re: did I format my emmc via xterm?
The Ubuntu forums had a thread where they previously gave warnings to users that a malicious user could induce you to run commands that might have sounded nice but its results definitely aren't, and even gave you some tricks into how to decipher some of the "magic incantations".
These days, instead of that, they're warning posters not to post "evil" commands.... sigh. Still, I guess https://help.ubuntu.com/community/UsingTheTerminal is better than nothing. Here's to hoping that the next time such a thing happens to you it will be because of your own commands & will (or not, as everyone including me has some time accidentally rm -rf'd / by mistyping a script ;) ) |
All times are GMT. The time now is 00:29. |
vBulletin® Version 3.8.8