[Linux-users] delete huge nest of folders

2011-01-16 Thread Roger Searle
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.

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread C. Falconer
Roger Searle wrote, On 01/17/2011 01:27 PM: 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

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread Jim Cheetham
On Mon, Jan 17, 2011 at 1:27 PM, Roger Searle ro...@stepahead.org.nz wrote: /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

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread C. Falconer
Jim Cheetham wrote, On 01/17/2011 02:02 PM: Not sure what caused your problem, but I like to leave marker files on my mount pounts, where they exist when a device is unmounted (i.e. not /media/...) So when my drive is unmounted I might have /data -- so in there I'll create a file called

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread Jim Cheetham
On Mon, Jan 17, 2011 at 2:05 PM, C. Falconer cfalco...@totalteam.co.nz wrote: Jim Cheetham wrote, On 01/17/2011 02:02 PM: create a file called /data/STOP. When the correct device is mounted At home I automount NFS shares, and at work its also used for USB drives for backups. I've spent

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread Roger Searle
Thanks Jim and Craig for the suggestion to do fsck and possibly write off the partition, as noted it is a backup drive and 1 of 2 that are regularly rotated because you never know when something might go wrong! I expect (and will check) that my rsyncs will have the correct files copied over

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread Jim Cheetham
On Mon, Jan 17, 2011 at 2:44 PM, Roger Searle ro...@stepahead.org.nz wrote: Thanks Jim and Craig for the suggestion to do fsck and possibly write off the partition, as noted it is a backup drive and 1 of 2 that are regularly rotated because you never know when something might go wrong! Well,

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread Roger Searle
On 17/01/11 14:02, Jim Cheetham wrote: Not sure what caused your problem, but I like to leave marker files on my mount pounts, where they exist when a device is unmounted (i.e. not /media/...) So when my drive is unmounted I might have /data -- so in there I'll create a file called

Re: [Linux-users] delete huge nest of folders

2011-01-16 Thread Roger Searle
On 17/01/11 14:56, Jim Cheetham wrote: On Mon, Jan 17, 2011 at 2:44 PM, Roger Searlero...@stepahead.org.nz wrote: Thanks Jim and Craig for the suggestion to do fsck and possibly write off the partition, as noted it is a backup drive and 1 of 2 that are regularly rotated because you never know