hallo,
habe hier ein script
(nicht von mir,sondern lfs)was die HD scannen soll
allerdings funktioniert es nicht so richtig,
denn die erstellten log-dateien sind leider leer.
PRUNEPATH ist der PATH der bei beim scannen ausgelassen werden soll

Code:
#!/bin/sh

     PRUNEPATH="/usr/src /proc /tmp /root /home /var/run /dev /mnt /media /var/spool /var/lock"

     PRUNEREGEX=`echo $PRUNEPATH|sed -e 's,^,\\\(^,' -e 's, ,$\\\)\\\|\\\(^,g' -e 's,$,$\\\),'`

     mkdir -p /usr/src/install-logs
     LOGFILE=/usr/src/install-logs/$1

     echo "Collecting current files..."
     find / -regex "$PRUNEREGEX" -prune -o -print > /tmp/before-inst
     cd /tmp
     echo
     echo "Start the installation now. Press a key when you are done to
     continue..."
     read
     cd /
     echo "Collecting new files..."
     find / -regex "$PRUNEREGEX" -prune -o -print > /tmp/after-inst
     cd /tmp
     echo "Creating difference output.."
     diff before-inst after-inst > $LOGFILE
     echo "Modifying difference output file..."
     sed s/"> "// $LOGFILE > $LOGFILE-new
     mv $LOGFILE-new $LOGFILE
     cat $LOGFILE | grep / > $LOGFILE-new
     mv $LOGFILE-new $LOGFILE
     echo "Removing temporary files..."
     rm before-inst after-inst
irgendeine idee ?