mlocate can't search from database file for unmounted drive
Bug #382330 reported by
PGScooter
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mlocate (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mlocate
I built a database file using updatedb. I then unmounted the drive and tried to search that file using the command
sudo locate -d extwd -i *.mp3
This yielded no results. By chance I tried the exact same command later and it worked because the drive was mounted. It appears as though the -e option were being implemented.
Please see this thread for reference:
http://
I'm using Ubuntu 64-bit 9.04.
version of mlocate: 0.21.1
Thank you.
To post a comment you must log in.
Confirmed for Karmic, mlocate 0.21.1-2.
It appears "-e" is always assumed for non-native filesystems:
- "mlocate" will correctly find non-existing files on an ext3 filesystem, and correctly suppress them with "-e" enabled.
- for vfat filesystems (and probably ntfs-3g, too?), non-existing files are *always* suppressed. This is not only the case for individual files that have been moved/removed, but also if the filesystem is unmounted.