Hey guys, I'm trying to index part of a NAS (I'm not sure how big it is), so that I can do a lot of file copying/manipulation with find/locate faster than searching the entire NAS every time. However, every time I try to run updatedb (from Cygwin) on the subfolder I need to index using this command: updatedb --localpaths='.' --output=./database in the parent dir, I get an error that, as far as I can tell, means that the process ran out of memory on my 8gb RAM system. This is the Cygwin error: 1 [main] find 8188 C:\cygwin\bin\find.exe: *** fatal error - crealloc would have returned NULL /usr/bin/updatedb: line 411: 8188 Hangup $find $SEARCHPATHS $FINDOPTIONS \( $prunefs_exp -type d -regex "$PRUNEREGEX" \) -prune -o $print_option What can I do to fix this? Running this process at night would save me literally days at work manually copying over the folders I need and while I have a script with FIND that works, it searching all the subfolders every time without an index means it needs to run for 10+ minutes every time a folder is copied over and I have about 50.000 folders. It's worth noting that trying to run ls RD1 > index.txt to make a script with grep ALSO runs out of memory.. submitted by Visti [link] [comment]