Vivek J. Patankar wrote, at 10/01/2007 07:16 PM +9:00:
Doncho N. Gunchev wrote:On Sunday 2007-09-30 21:40:38 Globe Trotter wrote:How much time does it take it to give this message? Generally speaking youso what is the solution to this, as root? # updatedbupdatedb: src/updatedb.c:721: scan_cwd: Assertion `name_size > 1' failed.Abortedshould call /etc/cron.daily/mlocate.cron, which will tell updatedb what not to index (ex: /dev, /proc, /sys, /selinux, /tmp...). Maybe one of these pseudo filesystems is causing the problem, try mlocate.cron?Better still, add /sys to the PRUNEPATHS parameter in /etc/updatedb.confRun updatedb with the -v flag and you'll probably notice that it gets stuck at /sys/module/nousb/parameters. That's probably because of a file in there that has a zero sized filename.
This is a workaround for a known bug. Please check: https://bugzilla.redhat.com/show_bug.cgi?id=242715 Bugzilla Bug 242715: Updatedb commad aborts unless /sys directory is pruned (fresh install) Regards, Mamoru