From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Description of problem: in /etc/cron.daily/slocate.cron This line: /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net" needs to be changed to: /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net,/mnt/floppy" Version-Release number of selected component (if applicable): slocate-2.6-8 How reproducible: Always Steps to Reproduce: 1. mount /mnt/floppy 2. eject the floppy disk without unmounting 3. Observe all the error messages in your /var/log/messages that indicate a serious disk problem Actual Results: I saw lines like this in my /var/log/messages: Jul 3 17:40:00 xx kernel: 02:00: rw=0, want=16, limit=4 Jul 3 17:40:00 xx kernel: Directory sread (sector 0x20) failed Jul 3 17:40:01 xx kernel: attempt to access beyond end of device Jul 3 17:40:01 xx kernel: 02:00: rw=0, want=16, limit=4 Jul 3 17:40:01 xx kernel: Directory sread (sector 0x20) failed Jul 3 17:40:01 xx kernel: attempt to access beyond end of device Jul 3 17:40:01 xx kernel: 02:00: rw=0, want=16, limit=4 Jul 3 17:40:01 xx kernel: Directory sread (sector 0x20) failed Jul 3 17:40:01 xx kernel: attempt to access beyond end of device Jul 3 17:40:01 xx kernel: 02:00: rw=0, want=16, limit=4 I thought that the hard disk was failing. Turned out slocate was just trying to access /mnt/floppy Additional info: redhat 8.0 also has this problem with slocate-2.6-4
Agreed. And maybe even the line : /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" should be changed to : /usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts,iso9660,vfat,hfs" to also exclude mounted CD-ROMs, mounted Windows partitions and mounted Macintosh filesystems.
I actually have some iso that are permanetly mounted via loopback, so excluding iso's would be a good idea.
That is would *not* be a good idea
Please verify this with a newer version of Red Hat Enterprise Linux or Fedora Core and reopen it against the new version if it still occurs. Closing as "not a bug" for now.
This certainly is a bug, and an easy one to fix too
Hmm. The bugzilla email didn't show me the comment, only that you closed the bug. Anyway I don't have any of those distros, but you can check if this is fixed easily by looking at the text file.
OK I just looked at a fedora core 2 box, and it appears this bug is still in there. # cat /etc/updatedb.conf PRUNEFS="sysfs selinuxfs usbdevfs devpts NFS nfs afs sfs proc smbfs autofs auto iso9660" PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /net /sfs /selinux /udev" export PRUNEFS export PRUNEPATHS ... and as I stated earlier I don't think iso9660 should be automatically excluded.
I have added /mnt/floppy to PRUNEPATHS, but I will not remove iso9660 from PRUNEFS. These are both removable devices, therefore it makes sense not to include them. If you want to include your cdropm drives, then remove iso9660 from PRUNEFS. Fixed in rawhide in rpm slocate-2.7-12 or newer.