Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Then I can mount and umount at will as my non-root user. And I can write files to it and delete files from it, and see those changes when I put the drive on my Windows box. Perfect.
However, after a while (many minutes, or a couple of hours--I haven't timed it), /etc/fstab reverts to the version without my change in it, and the /mnt/flash directory disappears. I haven't tried keeping the device mounted for that length of time to see if that changes anything. But, nonetheless, it seems like something's happening that shouldn't be. Does the system regenerate the /etc/fstab file periodically? Does it not tolerate changes? Is there another way I'm supposed to modify the mount table?
i don't know redhat, so i doubt this reply would really be as useful as it could be, but Mandrake used to use a daemon called msec (used to as in when i last used it before going to gentoo) which did exactly what you're guessing at. when you start up redhat, is there a service referring to security levels? if you edit fstab by hand, and then go into whichever GUI configuration tool redhat currently has, is that change reflected there? maybe look for a backup copy of fstab in etc...
This page clued me in to something. There's a utility that updates the /etc/fstab file, called updfstab. There are config files that go along with it, namely /etc/updfstab.conf and /etc/updfstab.conf.default. The man page for updfstab says that devices it adds to the /etc/fstab file are marked with the "kudzu" option. I copied the cdrom and floppy partitions when I added the flash mount partition, and included this option without knowing what it did (the mount and fstab man pages don't mention it) (I thought it might tell the desktop manager to automatically create a desktop icon for the volume when it's inserted.).
So, it looks like updfstab was seeing the "kudzu" option for my flash volume and automatically updating /etc/fstab and removing it. Hopefully it was removing /mnt/flash for the same reason, and not because it thinks it owns /mnt, and can delete whatever it wants from there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.