Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
Hi Biswajit, Thanks for On 8/25/10, Biswajit Dutta Baruah wrote: > > I have regularly used testdisk to recover files from my laptop's mounted > hard drive. So thats not an issue. > I would recommend using testdisk. > Initially I got stuck with testdisk because I kept hitting 'Enter' (the > defa

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Biswajit Dutta Baruah
Dear Ram, I have regularly used testdisk to recover files from my laptop's mounted hard drive. So thats not an issue. I have used recoverjpg in the past as well, but it recovers files and not folders ...and that I believe is the root of your problem. Not only that, the recovered files also do

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Abhishek Amberkar [अभिषेक]
On Wed, Aug 25, 2010 at 9:07 PM, Ritesh Sinha wrote: > I was testing this out, the problem is with find complaining about the > argument list (too large). > > For testing I did this inside a folder > # for i in $seq(5); do touch ${i}.jpg; done > then tried ls, mv etc. Worked like a charm, I ha

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
Hi seems to be partly solved. These are the commands i am using from within the said directory $ find -H -iname 'image3*.jpg' -type f -size -100 this to see if the command works then tried this $ sudo find -H -iname 'image3*.jpg' -type f -size -100k -exec rm -rfv '{}' \; and now i am able to

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ritesh Sinha
On Wed, Aug 25, 2010 at 08:47:47PM +0530, Abhishek Amberkar [अभिषेक] wrote: > On Wed, Aug 25, 2010 at 7:53 PM, Ramnarayan.K wrote: > > further tweaking gets me here > > # find /home/himal/ size +1000 -name image3*.jpg -exec mv '{}' > > /home/himal/Pictures/recovered/bigger800kb/ \; > > find: paths

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Abhishek Amberkar [अभिषेक]
On Wed, Aug 25, 2010 at 7:53 PM, Ramnarayan.K wrote: > further tweaking gets me here > # find /home/himal/ size +1000 -name image3*.jpg -exec mv '{}' > /home/himal/Pictures/recovered/bigger800kb/ \; > find: paths must precede expression: image301001.jpg > Usage: find [-H] [-L] [-P] [-Olevel] [-D >

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ritesh Sinha
On Wed, Aug 25, 2010 at 07:47:12PM +0530, Ramnarayan.K wrote: > Looking at help i modified the script - corrected my errors and used > this (and the result it below) > > # find /home/himal/ -name image3*.jpg -a size +2 -mtime -2 -exec > mv '{}' /home/himal/Pictures/recovered/bigger800kb/ \; >

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
Hi Jatin Thanks for the script See below for what i tried On 8/25/10, Jkhatri wrote: > On Wednesday 25 August 2010 01:55 PM, Ritesh Sinha wrote: > Use or modify following script This will find the file less then > 100kb ( you can use lt or = also ) -- give you the list of that files > an

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
further tweaking gets me here # find /home/himal/ size +1000 -name image3*.jpg -exec mv '{}' /home/himal/Pictures/recovered/bigger800kb/ \; find: paths must precede expression: image301001.jpg Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] at

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
Looking at help i modified the script - corrected my errors and used this (and the result it below) # find /home/himal/ -name image3*.jpg -a size +2 -mtime -2 -exec mv '{}' /home/himal/Pictures/recovered/bigger800kb/ \; find: paths must precede expression: image301001.jpg Usage: find [-H] [-L]

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
On 8/25/10, Ritesh Sinha wrote: > # find $SOURCEFOLDER -type f -size +800 -name '*.jpg' -exec mv {} > $DESTFOLDER/. \; > this is what i get # find /home/himal -type f +800 -name *.jpg -exec mv {} /home/himal/Pictures/recovered/bigger800kb/ bash: /usr/bin/find: Argument list too long all the way

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
Hi Thanks actually recoverjpeg is another kind of addition to the testdisk suite and is aimed at being more specific. For some reason testdisk could not do what i asked it to, mayb because it was being run from the the same mounted drive - thanks ram On 8/25/10, Biswajit Dutta Baruah wrote: >

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Jkhatri
On Wednesday 25 August 2010 04:44 PM, Abhishek Amberkar [अभिषेक] wrote: On Wed, Aug 25, 2010 at 4:30 PM, Jkhatri wrote: On Wednesday 25 August 2010 01:55 PM, Ritesh Sinha wrote: Use or modify following script This will find the file less then 100kb ( you can use lt or = al

[ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Biswajit Dutta Baruah
Dear Ram, Am not sure about recoverjpg, but there is another way of recovering your dlelted files and folders. A better way to recover is to use testdisk. You can recover your folders exactly as they were before being deleted. The essential difference being that the folder structure is maintai

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Abhishek Amberkar [अभिषेक]
On Wed, Aug 25, 2010 at 4:30 PM, Jkhatri wrote: > On Wednesday 25 August 2010 01:55 PM, Ritesh Sinha wrote: > > > Use or modify  following script This will find the file less then 100kb > ( you can use lt or = also )  -- give you the list of that files and if you > say "YES" it will delete t

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Jkhatri
On Wednesday 25 August 2010 01:55 PM, Ritesh Sinha wrote: On Wed, Aug 25, 2010 at 1:10 PM, Ramnarayan.K wrote: Hi I accidently deleted a folder of images( using shift+del = direct delete not to trash) To recover them i used recoverjpg The problem is that that recoverjpg recovered many ma

Re: [ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ritesh Sinha
On Wed, Aug 25, 2010 at 1:10 PM, Ramnarayan.K wrote: > Hi > > I accidently deleted a folder of images( using shift+del = direct > delete not to trash) > > To recover them i used recoverjpg > > The problem is that that recoverjpg recovered many many images. The > drive it was reading from was 200 g

[ubuntu-in] Strange problem with too many jpg files in one folder

2010-08-25 Thread Ramnarayan.K
Hi I accidently deleted a folder of images( using shift+del = direct delete not to trash) To recover them i used recoverjpg The problem is that that recoverjpg recovered many many images. The drive it was reading from was 200 gig which had tonnes of images, thumbnails etc on it . Recoverjpg look