LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fstab-sync conflicts with autofs? (https://www.linuxquestions.org/questions/linux-software-2/fstab-sync-conflicts-with-autofs-358411/)

sohmc 08-30-2005 06:02 AM

fstab-sync conflicts with autofs?
 
related to my previous thread, i've made some progress in narrowing down the problem.

It seems that fstab-sync attempts to create a directory within /media/, which is an automount directory. This is confusing to me since it seems that the HAL should only be reporting hardware that is added. I've attempted to freeze /etc/fstab a la man fstab-sync

It didn't work.

when I turn autofs off, fstab-sync actually creates a directory in /media named KODAK when I insert a SD card into the drive:
Code:

Aug 30 07:01:23 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Aug 30 07:01:23 bart kernel: sdc: Write Protect is off
Aug 30 07:01:23 bart kernel: sdc: assuming drive cache: write through
Aug 30 07:01:23 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Aug 30 07:01:23 bart kernel: sdc: Write Protect is off
Aug 30 07:01:23 bart kernel: sdc: assuming drive cache: write through
Aug 30 07:01:23 bart kernel:  sdc: sdc1
Aug 30 07:01:23 bart fstab-sync[28094]: added mount point /media/KODAK for /dev/sdc1

My question is, should this be happening at all? Everything I've read about automount says that the directories are created via autofs, not fstab-sync. It seems that fstab-sync is not required for automount.

Any thoughts?

AdaHacker 08-31-2005 03:51 PM

Automount and autofs are completely unrelated to fstab-sync. It sounds like your problem is just that your automount configuration is attempting to use /media, which is the same directory used by fstab-sync. I'm not sure how to turn off fstab-sync, but the easy solution would be to simply use a different directory for automount, e.g. /var/autofs/media or /auto or something.

sohmc 09-03-2005 07:16 AM

sorry for the delayed reply. I hadn't gotten a chance to work on it until now.

So I changed the mount point for autofs from /media to /mnt/media in auto.master.

I restarted autofs.

It still doesn't work. autofs makes the appropriate directories on the new mount mount points, and fstab-sync continues to create the the /media/KODAK mount point.

Here's what I get in /var/log/messages:
Code:

Sep  3 08:12:03 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Sep  3 08:12:03 bart kernel: sdc: Write Protect is off
Sep  3 08:12:03 bart kernel: sdc: assuming drive cache: write through
Sep  3 08:12:03 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Sep  3 08:12:03 bart kernel: sdc: Write Protect is off
Sep  3 08:12:03 bart kernel: sdc: assuming drive cache: write through
Sep  3 08:12:03 bart kernel:  sdc: sdc1
Sep  3 08:12:04 bart fstab-sync[7740]: added mount point /media/KODAK1 for /dev/sdc1

Does it matter that I have autofs4 module running?

AdaHacker 09-03-2005 07:43 AM

Yes, that's exactly what is supposed to happen. Autofs and fstab-sync both do their thing regardless of what the other is doing. I guess I don't understand what you're looking for.


All times are GMT -5. The time now is 09:25 PM.