[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: locates Datenbank leer



Frank Terbeck schrieb:
...
Tag Andre,
du könntest einmal

% sh -x /usr/bin/updatedb

versuchen, und schauen, ob dir etwas verdächtiges dabei auffällt.
Deine updatedb.conf sieht so aus wie meine.

Sorry, eine solche Ausgabe sehe ich zum ersten Mal, ich weiß ja gar nicht was sh -x macht, ich nehme mal an sowas wie strace? Deshalb poste ich mal den kompletten Output, sieht für mich aber unverdächtig aus, oder?

root@linux:/var/cache/locate# sh -x /usr/bin/updatedb
+ usage='Usage: /usr/bin/updatedb [--findoptions='\''-option1 -option2...'\''] [--localpaths='\''dir1 dir2...'\''] [--netpaths='\''dir1 dir2...'\'']
       [--prunepaths='\''dir1 dir2...'\''] [--prunefs='\''fs1 fs2...'\'']
       [--output=dbfile] [--netuser=user] [--localuser=user]
       [--old-format] [--version] [--help]

Report bugs to <bug-findutils@gnu.org>.'
+ changeto=/
+ old=no
+ test no = yes
+ true
+ sort='/usr/bin/sort -z'
+ print_option=-print0
+ frcode_options=-0
+ :
+ : /bin/bash
+ : /
+ :
+ : '/tmp /usr/tmp /var/tmp /afs /amd /sfs'
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ test -z ''
++ echo /tmp /usr/tmp /var/tmp /afs /amd /sfs
++ sed -e 's,^,\\(^,' -e 's, ,$\\)\\|\\(^,g' -e 's,$,$\\),'
+ PRUNEREGEX='\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/afs$\)\|\(^/amd$\)\|\(^/sfs$\)'
+ : /var/cache/locate/locatedb
+ test -d /var/tmp
+ : /var/tmp
+ export TMPDIR
+ : daemon
+ test -n ''
+ : /usr/lib/locate
+ test -n ''
+ : /usr/bin
+ : /usr/bin/find
+ : /usr/lib/locate/frcode
+ : /usr/lib/locate/bigram
+ : /usr/lib/locate/code
+ PATH=/bin:/usr/bin:/usr/bin
+ export PATH
+ : 'nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs' + test -n 'nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs' ++ echo nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs
++ sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' -e 's/-o //' -e 's/$/ -o/'
+ prunefs_exp='-fstype nfs -o -fstype NFS -o -fstype proc -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o'
+ rm -f /var/cache/locate/locatedb.n
+ trap 'rm -f $LOCATE_DB.n; exit' HUP TERM
+ test no = no
+ cd /
+ test -n /
+ '[' '' '!=' '' ']'
+ /usr/bin/find / '(' -fstype nfs -o -fstype NFS -o -fstype proc -o -fstype afs -o -fstype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype shfs -o -type d -regex '\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/afs$\)\|\(^/amd$\)\|\(^/sfs$\)' ')' -prune -o -print0
+ /usr/bin/sort -z -f
+ /usr/lib/locate/frcode -0
+ test -n ''
+ true
+ test -s /var/cache/locate/locatedb.n
+ rm -f /var/cache/locate/locatedb
+ mv /var/cache/locate/locatedb.n /var/cache/locate/locatedb
+ chmod 644 /var/cache/locate/locatedb
+ exit 0

Viele Grüße
André



Reply to: