Reply
Thread Tools
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#1
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.

Last edited by Joseph9560; 2010-11-09 at 02:34. Reason: misspelled a word
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#2
oh rm means remove! :cry;
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#3
Yup. Now you see why messing around in x-term without knowing what you are doing is a bad idea.
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520
 

The Following 2 Users Say Thank You to RobbieThe1st For This Useful Post:
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#4
from wiki
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;
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#5
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's Avatar
Posts: 1,148 | Thanked: 613 times | Joined on Mar 2010 @ Toronto
#6
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?

since you removed the rootfs content it doesnt really matter what you do now , oh and you have a folder named logs
__________________
The quieter you become the more you are able to hear


"I'm a N900 user, can I haz Flash 10 plz?!11!?" © Jaffa


Elopocalypse started on 11.02.2011
 
Posts: 440 | Thanked: 160 times | Joined on Aug 2010 @ Las Vegas, NV
#7
Originally Posted by HellFlyer View Post
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?

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;
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#8
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.
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520
 

The Following User Says Thank You to RobbieThe1st For This Useful Post:
Posts: 642 | Thanked: 486 times | Joined on Aug 2008
#9
Don't use

Code:
rm -rf *
Use

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

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

The Following User Says Thank You to rash.m2k For This Useful Post:
Posts: 286 | Thanked: 259 times | Joined on Jan 2006 @ Cambridge, England
#10
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.
 

The Following User Says Thank You to richie For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:04.