Hi, over the holiday period some weirdness occurred and rectifying is 
proving troublesome.  On a USB drive I have a very deeply nested folder 
structure of the same repeating name which probably ultimately ends in 
the same name and has a few 100MB of photos in it i.e. 
/media/drive/2003/2003/2003 (repeat many MANY times) 
/2003/somephotos.jpg.  Attempting to do rm -rf may be doing something 
(shows in htop, taking a few % of a core) but a few hours later is still 
not done.  Looking at the properties of the top level folder in a file 
manager, it reads for ages trying to determine number of folders and 
gets to a brick wall at about 140,000 folders and kills my KDE session!

Some googling isn't really getting me anywhere, ideas like this do not 
finish the job after a couple of hours:
ls | grep 2003 | xargs rm -rf

Any suggestions on how to remove the offending folders in some quick-ish 
and recursive fashion are welcomed, while leaving other folders in 
/media alone.

Secondary importance is ideas on how the situation arose in the first 
place might be interesting.  Possible relevant factors: a 1TB USB drive 
encrypted via TrueCrypt receiving backups via rsync, the host machine 
had a power failure on the boxing day quake such that the power cable to 
one of the internal hard drives (containing /home) came out and left the 
machine in a partially useable state.  Other top level folders on the 
same USB drive are fine.

Cheers,
Roger

_______________________________________________
Linux-users mailing list
Linux-users@lists.canterbury.ac.nz
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to