LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 11-15-2021, 09:01 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 602
Blog Entries: 119

Rep: Reputation: 176Reputation: 176
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.

Last edited by jr_bob_dobbs; 11-15-2021 at 09:14 AM.
 
Old 11-15-2021, 09:10 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 19,219

Rep: Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519Reputation: 6519
probably: https://bedrocklinux.org/1.0beta2/configure.html#fstab
(is this the really about the /etc/hosts file or fstab?)
 
Old 11-15-2021, 09:14 AM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 602

Original Poster
Blog Entries: 119

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by pan64 View Post
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.
 
Old 11-16-2021, 07:12 AM   #4
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 173

Rep: Reputation: Disabled
Quote:
Originally Posted by jr_bob_dobbs View Post
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 View Post
jr_bob_dobbs is almost certainly on the current release; your link refers to an older one.
 
Old 11-16-2021, 08:02 AM   #5
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 602

Original Poster
Blog Entries: 119

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by ParadigmComplex View Post
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
hp-hosts hosts file format change Skaendo Slackware 0 02-28-2019 02:45 AM
[SOLVED] How to 'include file' in hosts.allow or hosts.deny? arfon Linux - Security 8 01-19-2018 10:54 PM
How to Find who changed /etc/hosts file yuanjunliang Linux - Server 2 08-17-2009 10:10 AM
Hosts file has changed on installation. mooshie Fedora 2 10-16-2005 05:28 PM
does the /etc/hosts file work same as the M$ hosts file? Lleb_KCir Linux - Software 6 04-03-2004 05:33 PM

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

All times are GMT -5. The time now is 11:44 PM.

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