Making /etc/fstab persistent in live-system
Loïc Grenié
loic.grenie at gmail.com
Sun Oct 17 16:49:00 UTC 2010
2010/10/17 Tom Browder <tom.browder at gmail.com>:
> On Sun, Oct 17, 2010 at 05:47, Are Venes <arevenes at gmail.com> wrote:
> ...
>> I can`t get the /etc/fstab to be persistant, I can make changes to it, but
>> as soon as i reboot, it is changed back two the same two lines as were there
>> before..
>
> Try changing its file attributes like this:
>
> sudo chattr +i /etc/fstab
>
> which makes it immutable.
>
> View a file's attributes with lsattr. See manpages for both for details.
That would work but it has the annoying side effect that it becomes
cumbersome to modify /etc/fstab afterward (the first person only wanted
that his/her fstab would not be reset at each boot).
Loïc
More information about the ubuntu-users
mailing list