LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-24-2004, 02:56 PM   #1
dmancine
LQ Newbie
 
Registered: Aug 2004
Location: Louisville, CO
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Unhappy Redhat 9 overwriting /etc/fstab?


I'm using Redhat 9. Kernel 2.4.20-8.

I got a sandisk cruzer micro usb drive, and was able to get it to work brilliantly. As root, I added the following to /etc/fstab:

/dev/sda1 /mnt/flash vfat noauto,user,kudzu,rw 0 0

and I created the mount point:

mkdir /mnt/flash

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?
 
Old 08-24-2004, 03:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
Code:
find /etc  -iname fstab
might turn up something....
 
Old 08-24-2004, 05:24 PM   #3
dmancine
LQ Newbie
 
Registered: Aug 2004
Location: Louisville, CO
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Smile New discovery

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
edit /etc/fstab redhat 9 tommytom02 Linux - Newbie 1 12-20-2003 05:19 PM
Redhat 9.0 FSTab problem gizmogadgetus Linux - Newbie 5 08-24-2003 09:44 PM
Redhat 9 fstab is driving me crazy! Seph64 Linux - Distributions 4 04-08-2003 11:14 AM
fstab overwritten? (RedHat 8) hoborocks Linux - Software 2 01-08-2003 11:51 AM
fstab keeps resetting in redhat 7.3 burningodzilla Linux - General 3 06-06-2002 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration