You are not logged in.

#1 2011-03-26 23:12:44

botzoboy
Member
From: Romania/Deutschland
Registered: 2010-02-03
Posts: 90

Help!! (sudo rm -rf /tmp/*)

I am so stupid
I executed by mistake:
sudo rm -rf /tmp/*
and now I can not login

Can someone help me??

Offline

#2 2011-03-26 23:19:53

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: Help!! (sudo rm -rf /tmp/*)

Can't log into console or slim.. or what?  Also, did you try to reboot?

Offline

#3 2011-03-26 23:22:37

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: Help!! (sudo rm -rf /tmp/*)

In the words of the IT Crowd: Have you tried turning it off and on again?


Rauchen verboten

Offline

#4 2011-03-26 23:24:35

botzoboy
Member
From: Romania/Deutschland
Registered: 2010-02-03
Posts: 90

Re: Help!! (sudo rm -rf /tmp/*)

milomouse thanks for helping me

i can login in console :vim, htop, console applications are working
I can not login using slim it give me : failed to execute login command
restarting is not a solution (already 5 times and no succes)

Offline

#5 2011-03-26 23:28:07

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Help!! (sudo rm -rf /tmp/*)

you did something else. everything is deleted at reboot/shutdown from /tmp

Last edited by wonder (2011-03-26 23:31:47)


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2011-03-26 23:37:50

botzoboy
Member
From: Romania/Deutschland
Registered: 2010-02-03
Posts: 90

Re: Help!! (sudo rm -rf /tmp/*)

wonder wrote:

you did something else. everything is deleted at reboot/shutdown from /tmp

I runed this comand, the screen got black and not responding and the pushed power butotn to restart
and thats all

Offline

#7 2011-03-26 23:41:27

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Help!! (sudo rm -rf /tmp/*)

botzoboy wrote:
wonder wrote:

you did something else. everything is deleted at reboot/shutdown from /tmp

I runed this comand, the screen got black and not responding and the pushed power butotn to restart
and thats all

This command cannot do that. /tmp is temporary. You may have did a typo. Mount a livecd and check whether any of your partitions are empty.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2011-03-27 00:31:14

lives2evil
Member
From: GMT+7
Registered: 2010-03-21
Posts: 244

Re: Help!! (sudo rm -rf /tmp/*)

ngoonee wrote:

This command cannot do that. /tmp is temporary. You may have did a typo. Mount a livecd and check whether any of your partitions are empty.

Same thought. But it's not neccessary to boot from a live CD, he can boot to console and everything.
I wonder if he did "sudo rm -rf /tmp/ *".

Last edited by lives2evil (2011-03-27 00:32:21)


tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ

Offline

#9 2011-03-27 00:45:03

botzoboy
Member
From: Romania/Deutschland
Registered: 2010-02-03
Posts: 90

Re: Help!! (sudo rm -rf /tmp/*)

All partitions are ok
I uninstalled Slim and then I tryed startx but it give a black screen .
I reinstalled slim, deleted /var/lock/slim.lock no succes

Instaled Gdm and now is working.

Offline

#10 2011-03-27 02:44:28

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: Help!! (sudo rm -rf /tmp/*)

This is why I generally never use the -f flag when working in the root directory. Bad things happen to good people. Stick with the -i flag to save you from yourself!


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

Board footer

Powered by FluxBB