[CentOS] Silly question - Anything faster than rm?

Sun Sep 30 12:05:37 UTC 2007
Alain Spineux <aspineux at gmail.com>

Some hint :

- use a partition dedicated for that, that you can format every time
you need to reset it.
- try other filesystem. Some filesystem are faster for delete operations.
- try to change the journaling during the delete operations. If you
use ext3, I'm thinking about something like:

# mount -o remount,noload /data
# rm -rf /data/*
# mount -o remount /data

or

# mount -o remount,data=writeback /data
# rm -rf /data/*
# mount -o remount,data=ordered /data


On 9/29/07, Jamie Lists <jamielist at gmail.com> wrote:
> Maybe this is a silly question, but i have a few million files i need
> to delete but i can't just reformat the volume.
>
> Right now the fastest thing i can think of is
>
> nice -20 rm -Rf /folder-i-want-to-delete
>
> is there a better or faster way to do this?
>
> Thanks,
> Jamie
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
Alain Spineux
aspineux gmail com
May the sources be with you