LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bedrock Linux (https://www.linuxquestions.org/questions/bedrock-linux-118/)
-   -   FSTAB file keeps getting changed (https://www.linuxquestions.org/questions/bedrock-linux-118/fstab-file-keeps-getting-changed-4175703624/)

jr_bob_dobbs 11-15-2021 08:01 AM

FSTAB file keeps getting changed
 
I discovered an unexpected thing in Bedrock and was wondering if anyone could clue me in.

Here is the /etc/fstab as it is in my bedrock OS:
Code:

# /etc/fstab for bedrocked Void on vindi
#device            point  fs    options                    dmp  order
/dev/azura/vindi  / ext4 defaults,noatime 1 0
tmpfs              /tmp  tmpfs  size=4G,nodev,nosuid      0    0
tmpfs              /dev/shm tmpfs nosuid,nodev,noexec      0    0
devpts            /dev/pts devpts gid=5,mode=620          0    0
proc              /proc  proc  defaults                  0    0
/dev/azura/swappy  none  swap  sw                        0    0

/dev/azura/homie /other_home ext4 defaults,noatime 1 0
/dev/azura/sloppy /hsc ext4 defaults,noatime 1 0
/dev/azura/dawn /dawn_slash ext4 ro,defaults,noatime 1 0
/dev/azura/dusk /dusk_slash ext4 ro,defaults,noatime 1 0
/dev/azura/moon /fallback_slash ext4 ro,defaults,noatime 1 0

/dev/sr0          /mnt/cdrom0 auto noauto,user,ro          0    0
/dev/sr1          /mnt/cdrom1 auto noauto,user,ro          0    0
# actual end of this file

Compare this against the fstab in another OS on the same computer:
Code:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>    <type>  <options>          <dump>  <pass>
# breaks initrd: /dev/azura/dawn /                ext4    noatime            1    1
/dev/mapper/azura-dawn  /        ext4    noatime            1    1
/dev/azura/swappy none          swap    sw                  0    0

#/dev/fd0      /mnt/floppy      auto    noauto,owner        0    0
/dev/fd0        /mnt/floppy      auto    noauto,owner        0    0
devpts          /dev/pts        devpts  gid=5,mode=620      0    0
proc            /proc            proc    defaults            0    0
tmpfs          /dev/shm        tmpfs    nosuid,nodev,noexec 0    0
tmpfs          /tmp            tmpfs    size=4G,nodev,nosuid  0  0


/dev/sr0        /mnt/cdrom0    auto    noauto,user,ro      0    0
/dev/sr1        /mnt/cdrom1    auto    noauto,user,ro      0    0
/dev/sr2        /mnt/cdrom2    auto    noauto,user,ro      0    0
/dev/sr3        /mnt/cdrom3    auto    noauto,user,ro      0    0

/dev/azura/moon  /fallback_slash ext4    defaults,ro        1    5
/dev/sda2        /fallback_boot  ext2    defaults,ro        1    6
/dev/azura/dusk  /dusk_slash    ext4    defaults,ro,noatime  1    3
/dev/azura/homie  /home          ext4    defaults,noatime    1    2
/dev/azura/sloppy  /hsc          ext4    defaults,noatime    1    4
/dev/azura/vindi  /vindi_slash  ext4    defaults,noatime    1    7
/dev/sda1        /toy_os        auto    defaults,ro,noatime  1  5

# usb sticks, so that user can mount & unmount them...
/dev/sdb1        /mnt/sdb1      auto    noauto,user        0    0
/dev/sdb5        /mnt/sdb5      auto    noauto,user        0    0
/dev/sdc1        /mnt/sdc1      auto    noauto,user        0    0

# actual end of this file

Two point of interest. One: note how, aside from longer device names, I try to keep everything in clearly visible columns. Two: drives set to be checked at boot time by dump column being set to 1 and then the last ("pass") column set with numbers specifying the order of disk checking.

When I edit the bedrock fstab and then reboot, the spacing is reduced to single spaces, dump values are set to zero and pass set to 0 as well.

This seems to only happen on partitions that are mounted at boot time. Note the "noauto" mount point lines are not changed. Also, commented lines are left alone.

I've tried editing the /etc/hosts file to change things back but the edits get reverted on reboot.

I couldn't find any mention of this on the (bedrock) web site and I was wondering if someone could clue me in? Thank you.

pan64 11-15-2021 08:10 AM

probably: https://bedrocklinux.org/1.0beta2/configure.html#fstab
(is this the really about the /etc/hosts file or fstab?)

jr_bob_dobbs 11-15-2021 08:14 AM

Quote:

Originally Posted by pan64 (Post 6301533)
probably: https://bedrocklinux.org/1.0beta2/configure.html#fstab
(is this the really about the /etc/hosts file or fstab?)

Oh dear: my error: the title of this thread said hosts and I meant to type fstab. D'oh! Has been corrected now.

ParadigmComplex 11-16-2021 06:12 AM

Quote:

Originally Posted by jr_bob_dobbs (Post 6301528)
I couldn't find any mention of this on the (bedrock) web site and I was wondering if someone could clue me in? Thank you.

https://bedrocklinux.org/0.7/known-i...html#fsck-root

Quote:

Originally Posted by pan64 (Post 6301533)

jr_bob_dobbs is almost certainly on the current release; your link refers to an older one.

jr_bob_dobbs 11-16-2021 07:02 AM

Quote:

Originally Posted by ParadigmComplex (Post 6301816)

Ohhh, OK. Now I get it. Thank you.
Quote:

jr_bob_dobbs is almost certainly on the current release; your link refers to an older one.
Yeah, that kind of confused me at first, then I saw it was for a different version and assumed it did not apply.


All times are GMT -5. The time now is 07:37 PM.