Re: [opensuse] HELP - How to I delete a directory that won't die! (no rm -rf isn't the answer)



David C. Rankin wrote:
Listmates,

I must have had a script go bad and completely screw up a file or two in a directory and now I cannot "ls" the directory, I cannot "rm -rf" the directory, but I can "mv" the directory and I can "cd" into the directory.

The directory holds font files and I ran a script with "tr" in the scripts and I had the wrong arguments to tr and now there is a mess. The directory "V2" has the following properties:

drwxrwxrwx 2 david dcr 128552960 2009-07-16 22:28 V2/

I booted to runlevel 1 and fsck'ed the disk and it is fine. So, I know this is one of those cases where I have screwed up the files in the directory well beyond my ability just delete them and I'm --- stuck.

What is the best way to recover??

My guess that nothing is stuck, but you're just not patient enough....
Looking at the size of the directory, it contains a LOT of files. It takes
time to do *anything* in this directory.

We're having a CCD system that regularly dumps some 100-200000 files in one
directory. Doing a 'ls' or something similar easily takes up to 10 minutes,
and that's on reiserfs - ext3 will be even slower on that, I assume.

So just run your rm -rf and leave it running. It will eventually finish and
remove everything, but it might well take hours...

No idea wether 'unlink' might work better - never tried this.

Pit

--
Dr. Peter "Pit" Suetterlin http://www.astro.su.se/~pit
Institute for Solar Physics
Tel.: +34 922 405 590 (Spain) P.Suetterlin@xxxxxxxxxxxx
+46 8 5537 8534 (Sweden) Peter.Suetterlin@xxxxxxxxxxx
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Can I reinstall W2K Pro using floppys my CD Rom key is invalid
    ... > upgrading my Compaq Deskpro EN 733 Mhz P III. I'm stuck ... Clone the original hard disk to the new disk with a cloning ... Your product code is NOT stored on your installation ... stuck to the back, with the words "Do not lose this key" printed ...
    (microsoft.public.win2000.setup)
  • Getting stuck
    ... > ODS-5 disks at all, since then they can mount the disk and see the ... I've been reading the getting stuck stories here on comp.os.vms for years, ... DECwindows 1.2-5 or earlier. ... and Mozilla (not actually used with the app). ...
    (comp.os.vms)
  • Re: help diagnosing an Apple IIe, please.
    ... drive rattles for a moment on bootup, the light stays stuck on red, ... and the computer stays stuck at the Apple II logo. ... It's trying to boot a disk. ... If you still can't get reset to work, ...
    (comp.sys.apple2)
  • Re: IDE to SATA and a Laserjet 5 on USB
    ... it so that I don't have to transfer a load of shite off the disk, ... really stuck I'll have a hunt about for it - it's no use to me after my LJ5 ...
    (uk.rec.motorcycles)
  • Re: [opensuse] BASH - I give up : (
    ... On Friday 14 November 2008 20:54:16 David C. Rankin wrote: ... Stuck on a stupid bash problem again. ...
    (SuSE)

Loading