bash: /bin/rm: Argument list too long

I came across this error when trying to delete lots of files on Debian Squeeze. This error apparently occurs due to the reason that the system commands show limitations when a large number of arguments are fed into a single command.
 
so I created a bash script called bulkrm containing
 
for i in *; do
rm -f $i;
done
chmod +x bulkrm
../bulkrm
 
(WARNING THIS WILL DELETE ALL FILES IN THE FOLDER IT'S EXECUTED FROM SO USE
AT YOUR PERIL)
 
Continue Reading

NAS down! NAS down!

My home nas has decided to die for the second time, good job I keep a cold spare. I've swapped the drives over and the raid is currently rebuilding. I am now on my third shuttle so thinking I will replace it with a HP N54L Microserver and be done with it, just need to wait for one of their cashback offers to crop up then I'll buy one.
Continue Reading