Can't delete events files

Support and queries relating to all previous versions of ZoneMinder
Locked
bigmonk
Posts: 8
Joined: Sun Apr 09, 2006 2:25 am

Can't delete events files

Post by bigmonk »

I had a power flicker which caused an unclean reboot and some database corruption. I got the database corruption problem fixed but there are large files in my events folder that I can't delete. When I try to remove them by rm -rf ..../events/* the computer just hangs.

I apparently have too many files in this folder. How can I delete these files?

Running Fedora 8.
ernesto
Posts: 2
Joined: Thu Dec 23, 2004 5:44 pm

Post by ernesto »

find . -name '*.*' | xargs rm
sfmartin
Posts: 6
Joined: Mon Apr 07, 2008 8:25 pm
Location: Argentina

Post by sfmartin »

The rm command usually takes a while to process when you want to delete a folder that contains a huge qty of files. I had the same situation in the past. I just ran the command and left the PC working during the night. After several minutes (maybe hours), it completed the deletion of the folder.

Regards,
Sebastian
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Look at top. It probably shows "rm" as the highest process merrily chugging along deleting a large file or directory.
nabetse_x
Posts: 10
Joined: Thu Aug 23, 2007 4:04 am

Post by nabetse_x »

find -type f | grep \.jpg | xargs rm

i use that command and works nice...

yo uso ese comando y funciona muy bien...
Locked