maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   did I format my emmc via xterm? (https://talk.maemo.org/showthread.php?t=65321)

Joseph9560 2010-11-09 02:31

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
rm -rf *
mkdir logs
chmod 777 logs
cd /
umount /and

and no I didn't mount nitdroid partition in /and before doing this so result was first line said error and probably rest of the line got executed. as i have already mentioned, i copied all those lines first then paste in x term, and i think i was already root before doing this. later I treid the mount line
Code:

sudo gainroot
mount /dev/mmcblk1p2 /and

probably wothout first line as i was already root. and got device or resources busy error.
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.

Joseph9560 2010-11-09 03:31

Re: did I format my emmc via xterm?
 
oh rm means remove! :cry;

RobbieThe1st 2010-11-09 03:41

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.

Joseph9560 2010-11-09 03:49

Re: did I format my emmc via xterm?
 
from wiki
Quote:

rm -rf (variously, rm -rf /, rm -rf *, and others) is frequently used in jokes and anecdotes about Unix disasters. The rm -rf variant of the command, if run by a superuser on the root directory, would cause the contents of every writable mounted filesystem on the computer to be deleted.
:faint;

Joseph9560 2010-11-09 04:03

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?

HellFlyer 2010-11-09 05:14

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 ;)

Joseph9560 2010-11-09 12:38

Re: did I format my emmc via xterm?
 
Quote:

Originally Posted by HellFlyer (Post 867720)
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 ;)

i thought op read it somewhere and it didn't worked only in his case so thought to try.

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;

RobbieThe1st 2010-11-09 12:44

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.

rash.m2k 2010-11-09 12:58

Re: did I format my emmc via xterm?
 
Don't use

Code:

rm -rf *
Use

Code:

rm -rf ./*
If you don't understand linux command line stuff don't ****ing use it! :mad:

The amount of people on here that complain on here about things just gets me annoyed. Not had ANY problems with my N900.

richie 2010-11-09 13:06

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.


All times are GMT. The time now is 07:45.

vBulletin® Version 3.8.8