![]() |
did I format my emmc via xterm?
all i did was copied and paste some x term codes in the hope of getting rid of flight mode in nitdroid. I was reading http://forum.nitdroid.com/index.php?topic=538.0 and executed copy and paste command of thread writer
Code:
cd /and/data Code:
sudo gainroot but it recieved error and I tried those lines few more times but without luc. later I saw my docs/folders/songs are all gone. please somebody clearify me what have i done with those commands and what is the solution, if any. background: i have installed nitdroid in my 512mb mmc just a day before yesterday and it went fine except some known exceptions. and conky shows i have 26.99gib free out of 27. |
Re: did I format my emmc via xterm?
oh rm means remove! :cry;
|
Re: did I format my emmc via xterm?
Yup. Now you see why messing around in x-term without knowing what you are doing is a bad idea.
|
Re: did I format my emmc via xterm?
from wiki
Quote:
|
Re: did I format my emmc via xterm?
and yes everything is gone! mydocs folder, mmc(nitdroid) everything is wiped out. i don't think i lost too important things since most of my space were covered by songs and backup deb files. lost recent photos and don't know what else. seems like i will try that recovery tool ment for maemo to check if I lost something more important.
now anybody please tell me is it safe to reboot? are those bootmenu things still there to serve me? or will it create trouble. what else than mmc and emmc content might have been deleted? home isn't wiped out totally but is something deleted there as well? |
Re: did I format my emmc via xterm?
lol the OP in that thread didnt know what he was doing and he was asking for help , second post seems to have the answer. why would you use commands from the person who is asking for a solution? :D
since you removed the rootfs content it doesnt really matter what you do now , oh and you have a folder named logs ;) |
Re: did I format my emmc via xterm?
Quote:
rootfs contents were deleted meaning? yes i can understand those lines except for that rm(which i understand by now), browsing throught directory, creating directory, setting permission. i wonder what happened to op, was he root while doing that!!! cause whether or not he mount /and he must have lost content of his drives as I did. i am asking again, will i get any other probem because of that? btw seems like nice time to try nitdroid in emmc partition! hope i won' mess like that this time around. anybody with link to howto install nitdroid in emmc? i may just follow wrong tutorials! :afraid; |
Re: did I format my emmc via xterm?
Rootfs = Maemo's files. Everything in /.
The problem with the rm command was that it should have been "rm /and/data/* -rf", which would only delere everything in that folder. |
Re: did I format my emmc via xterm?
Don't use
Code:
rm -rf * Code:
rm -rf ./* The amount of people on here that complain on here about things just gets me annoyed. Not had ANY problems with my N900. |
Re: did I format my emmc via xterm?
If you are not completely sure what rm is doing you can add -i to the command options to get interactive mode, yes/no delete question for every file. Doesn't help here as too late, but I always use this initially to check rm is doing what I want it to do.
|
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:50. |
vBulletin® Version 3.8.8