[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: removed root directory files




> Hey All,
>
> Bit of a problem here - I ran rm /*
> It didn't remove the directories obviously but now no commands work but cd

cd is a bash-builtin, that's why it works. "echo", "type", "cat", etc
also work, I suppose.
 

> I was wanting to run ./*
> Now if I ls I get
> -su: /bin/ls: No such file or directory

I suppose the /bin/ls file still is OK (test by "cd /bin; echo *", you
should see ls as one of the many commands listed), but either
/lib/ld-linux.so or some other library has gone. That is strange, as
just typing "rm /*" should not remove anything but files in / , so I
suspect you actually typed something else than "rm /*"



Yea echo * works - and it looks like the files in the subfolders are in place. Maybe i deleted some aliases that were in the root directory?
I'm not seeing /lib/ld-linux.so - but I am seeing ld-2.3.6.so and ld-linux.so.2
Only command run that would have messed things up was the "rm /*" command.
It's a pretty fresh install of Debian so all the files should be in their usual locations.

 
>  Help much appreciated.

Insert debian boot CD, boot, mount your root partition of harddisk,
and inspect it.
Maybe you only removed a few files from /lib, you might be able to
copy them from the boot disk /lib. But I suppose a re-install of
Debian would be safer (or wait till someone else has a better idea on
this list).


If there's a way to do it without having to put a cd in would be really great =o
The server is pretty far away - but if not then so be it.

Thank you for the help,

Abraham

Reply to: