How to kill a dir? (fixed)

John Lagrue admin at moraystudio.com
Mon Jan 5 23:44:26 UTC 2004


On Mon, 2004-01-05 at 23:06, jdow wrote:
> From: "WipeOut" <wipe_out at users.sourceforge.net>
> 
> > Thanks to everyone for your help..
> >
> > I could not work out how to umount / so I could run fsck(as was
> suggested)..
> >
> > So I just switched off the PC (not very elegant, I am sure there must be
> > a better and safer way) then when it started and was mounting the drive
> > it asked to do a full check to which I said yes.. It found errors and I
> > then entered the password for root to get into maintainance mode and ran
> > "fsck", this found illegal filenames to files that were not visable
> > using any "ls" switches that I could find.. it then repaired the illegal
> > filenames and then I was able to kill the directory..
> >
> > Lets hope I never have that again..
> >
> > Thanks again..
> >
> > Later..
> 
> Fix your machine or it will happen again. Finding more than one such
> directory or file indicates your machine hardware is not reliable enough
> to use on anything serious.
> 

I had something similar to this once. If your error reoccurs you might
be interested in how I fixed it:

1. Move everything out of the directory that contains the one with the
wierd name. Assume it is called foo.
2. cd ..
   rm -rf foo

It worked a treat

Just a FYI :)

JDL






More information about the fedora-list mailing list