rm -fr not deleting stuff

Amichai Rotman amichai at iglu.org.il
Tue Feb 24 10:34:33 UTC 2015

I would try running 'updatedb' to make sure all is up to date before trying
to delete.
It could be related to the time it takes to close the and trying to delete

Also, and I haven't checked if it is possible at all, maybe trying to
combine the backups with logrotate and rsync?
I think logrotate's facility to delete old logs can be useful in your

Good luck, and let us know!

Amichai Rotman.
On Feb 24, 2015 12:13 PM, "Karl Auer" <kauer at biplane.com.au> wrote:

> On Tue, 2015-02-24 at 09:50 +0000, Colin Law wrote:
> > On 23 February 2015 at 23:17, Karl Auer <kauer at biplane.com.au> wrote:
> > > Anyway, when I tried removing a backup using rm -fr dirname it deleted
> > > heaps of files out of the directory and its many subdirectories, but
> > > also issued lots of messages about being unable to delete directories
> > > because they were not empty.
> >
> > Anything in syslog?  USB access problems?
> Nope and nope. I'm wondering now if it is as Chris Green implies, some
> kind of resource problem when recursing deep into the directory tree.
> It's easily ten to twenty levels deep in places. However, I'd have
> thought that would have caused an earlier error than the high-level "no
> can do because directory not empty". And remember the effect is
> identical in both rm and rsync.
> Regards, K.
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer at biplane.com.au)
> http://www.biplane.com.au/kauer
> http://twitter.com/kauer389
> GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
> Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150224/57154994/attachment.html>

More information about the ubuntu-users mailing list