LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 02-07-2008, 06:46 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,372

Rep: Reputation: Disabled
why does my fstab file keep canceling my changes to it?


Pursuant to this thread: http://www.linuxquestions.org/questi...for-me-618400/

...Something strange keeps happening. The fstab changes suggested by Budword worked as desired once, but they keep reverting to what they were. Changing "noauto" to "auto" and adding "rw" was supposed to automount the partition and make sure I could write to it. I have a text file containing my to-do list set to autostart. As before, it opens an empty file; from checking the properties of its partition, I know I got the empty file because it didn't automount as it was supposed to. (Further proof of that: as soon as I mount the partition and reopen the file, I can see it.)
So I opened the fstab file again, and found that auto is back to "noauto" for the partition in question, and "rw" has disappeared. The relevant content now says:

# Dynamic entries below
/dev/sda1 /mnt/sda1 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 ext3 noauto,users,exec 0 0
/dev/sda4 /mnt/sda4 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sdb1 /mnt/sdb1 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/scd0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/cdrom1 /media/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0

Sda4 was the one I've been trying to change. (I might as well set all the sdas to automount, but I don't really need to automount sdb1.) Why would it keep changing back? Certainly, I saved it after rewriting the entry for sda4. (I have been editing it as root, because it won't let me save any changes as user.)

Last edited by newbiesforever; 02-07-2008 at 06:48 PM.
 
Old 02-07-2008, 08:18 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
This sound suspicisoucly like auto detection running thats resetting the file, (the comment line points out these are dynamic entries ).

Do you have kudzu or fstab-sync running?
 
Old 02-07-2008, 11:59 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,372

Original Poster
Rep: Reputation: Disabled
Eh...I'm not sure. I just looked in the process table, and it doesn't say I have either of those running.

Last edited by newbiesforever; 02-08-2008 at 12:00 AM.
 
Old 02-08-2008, 08:26 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Just move the sda4 entry above the # Dynamic entries below line & then make your changes. The "Dynamic entries" are just that -- dynamic -- they are regenerated automatically at every boot, ergo their title.

AFAIK, MEPIS uses neither kudzu nor fstab-sync; but it doesn't matter what program is doing the updating, just move any static entries "out of harm's way" as described above.

BTW, out of curiosity, academic interest, I wouldn't mind hearing what MEPIS uses to do the update, if someone here knows.
 
Old 02-08-2008, 11:32 AM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,372

Original Poster
Rep: Reputation: Disabled
Thank you, Rick! That worked. Well, what is the point of entries regenerating at boot? Is it in the event of the system finding partitions or drives that have no fstab entries yet?
 
Old 02-08-2008, 12:16 PM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I don't know for sure, but I think your guess is correct -- accommodate hardware changes. That's one of the things I remember kudzu doing in RH; & what fstab-sync is for, see: http://linux.die.net/man/8/fstab-sync
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Canceling login page at Fedora 5 jonnyhashem Fedora 4 01-09-2008 09:52 AM
Canceling ISR Thread cause extra Interrupts EmbeddedSteve Linux - Embedded & Single-board computer 0 09-18-2007 04:38 PM
use of /etc/fstab file ankurcse Linux - Newbie 6 04-17-2006 10:34 PM
Why Nics Canceling SSH Comm. meping Linux - Networking 1 09-28-2005 12:45 PM
fstab file Haroon Linux - General 12 09-08-2004 06:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 03: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