maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   help!! accidently entered /usr/lib # rm lib* in xterm.. (https://talk.maemo.org/showthread.php?t=58418)

vendetta711 2010-07-14 08:05

help!! accidently entered /usr/lib # rm lib* in xterm..
 
made a noob mistake so bear with me...
i was attempting to install ettercap based on these instructions
http://talk.maemo.org/showthread.php...light=ettercap

as i was getting errors when attempting to launch the program saying about libnet.so.1. Says no such file or dir. so i figured there must be a problem with the symlinks so i went to remove them and redo
wanting to save time i didnt consider other files and i pressed this



/usr/lib # rm lib*
rm: libaccounts-plugins: is a directory
rm: libcanberra-0.14: is a directory
rm: libconbtui: is a directory
rm: libgconf2: is a directory
rm: libglade: is a directory
rm: libimengines: is a directory
rm: libvte4: is a directory

...to which it hit me in the face my mistake. now i cant open any apps apart from convos, web, etc because they just crash. cant open xterm either!
is there a way to restore this without reflashing? and if a reflash is necessary, if i do a backup now will this restore my mistake on the new flash? or doesnt it backup system files?
thanks in advance!l

antoarts 2010-07-14 08:08

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
A backup shouldn't back up /usr/lib

And you would probably just have to flash the rootfs (as /usr/lib is there)

antoarts 2010-07-14 08:13

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
BTW, the backup doesn't back up your personal files (such as images and documents), you will have to copy them over to your computer manually (with the backup file you generated). Although if you only flash the rootfs, they should be safe (but use the backup app anyway)

Notice that I got no real experience of this, but am just theoretizing, so be careful ;)

kwek 2010-07-14 08:37

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
did you install ssh server and can you still login? Then I could provide the files and you can scp them

maddler 2010-07-14 08:45

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
@vendetta: I'd suggest rootfs reflashing. You will have to reinstall all your apps.
Otherwise you could try getting /usr/lib from another N900. At least you should be able to restore basic functionalities.

AlMehdi 2010-07-14 08:55

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
hmm.. wouldn't he be able to extract this from the flash-img? I am not home and can look this up..

vendetta711 2010-07-14 13:28

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
thanks for all your responses!
unfortunately the phone ran out of battery and now when i go to turn it on it has the NOKIA screen and it says "Malfunction! Device shutdown in 10s" and it just is in a restart loop :( so i can't ssh it

how would i go about flashing just the rootfs? or is it not possible in this state? :( i didnt get the chance to do a backup before it ran out and my last one is back before PR1.2

orion88freedom 2010-07-14 13:37

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
charge ur n900 and just do a complete flash.....you may have now lost ur files !!!

maddler 2010-07-14 13:44

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
only files on rootfs will be lost after flashing, all other files/contents are safe.
go with a reflash

AlMehdi 2010-07-14 13:58

Re: help!! accidently entered /usr/lib # rm lib* in xterm..
 
just flash the FIASCO image, not the Vanilla.. Then your files in MyDocs will be safe.


All times are GMT. The time now is 11:18.

vBulletin® Version 3.8.8