root device mount error turns into a read-only filesystem

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • root device mount error turns into a read-only filesystem

      after some updates a few days ago sharedfolders suddenly (because before it was correctly working) turns to read-only filesystem; i did not change anything from GUI or shell, but i can't remember which updates were applied ...

      after doin' some search i found there's something in /run/systemd/generator/ : there's a file called -.mount

      Source Code

      1. root@xxx.xxx.xxx.xxx:~# ls -l /run/systemd/generator/
      2. total 16
      3. -rw-r--r-- 1 root root 320 Dec 2 22:25 boot.mount
      4. -rw-r--r-- 1 root root 164 Dec 2 22:25 dev-sda3.swap
      5. drwxr-xr-x 2 root root 100 Dec 2 22:25 local-fs.target.requires
      6. drwxr-xr-x 2 root root 60 Dec 2 22:25 local-fs.target.wants
      7. -rw-r--r-- 1 root root 241 Dec 2 22:25 -.mount
      8. drwxr-xr-x 2 root root 60 Dec 2 22:25 postfix.service.wants
      9. drwxr-xr-x 2 root root 60 Dec 2 22:25 swap.target.requires
      10. -rw-r--r-- 1 root root 206 Dec 2 22:25 tmp.mount

      and the content is:

      Source Code

      1. # Automatically generated by systemd-fstab-generator
      2. [Unit]
      3. SourcePath=/etc/fstab
      4. Documentation=man:fstab(5) man:systemd-fstab-generator(8)
      5. Before=local-fs.target
      6. [Mount]
      7. What=/dev/sda2
      8. Where=/
      9. Type=ext4
      10. Options=errors=remount-ro,relatime
      Display All

      here's the fstab part in config.xml:

      XML Source Code

      1. <fstab>
      2. <!--
      3. <mntent>
      4. <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid>
      5. <fsname>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx|xxxx-xxxx|/dev/xxx</fsname>
      6. <dir>/xxx/yyy/zzz</dir>
      7. <type>none|ext2|ext3|ext4|xfs|jfs|iso9660|udf|...</type>
      8. <opts></opts>
      9. <freq>0</freq>
      10. <passno>0|1|2</passno>
      11. <hidden>0|1</hidden>
      12. </mntent>
      13. -->
      14. <mntent>
      15. <uuid>b4adcc54-adaa-4414-959d-9d4e5d940fd4</uuid>
      16. <fsname>Root Device</fsname>
      17. <dir>/</dir>
      18. <type>ext4</type>
      19. <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      20. <freq>0</freq>
      21. <passno>2</passno>
      22. <hidden>0</hidden>
      23. </mntent>
      24. </fstab>
      Display All

      here's my /etc/fstab:

      Source Code

      1. # <file system> <mount point> <type> <options> <dump> <pass>
      2. /dev/sda2 / ext4 errors=remount-ro,relatime 0 1
      3. /dev/sda1 /boot ext4 errors=remount-ro,relatime 0 1
      4. /dev/sda3 swap swap defaults 0 0
      5. proc /proc proc defaults 0 0
      6. sysfs /sys sysfs defaults 0 0
      7. tmpfs /dev/shm tmpfs defaults 0 0
      8. devpts /dev/pts devpts defaults 0 0
      9. tmpfs /tmp tmpfs defaults 0 0
      10. # >>> [openmediavault]
      11. Root\040Device / ext4 defaults,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      12. # <<< [openmediavault]
      Display All

      here's the mount result:

      Source Code

      1. sysfs on /sys type sysfs (rw,relatime)
      2. proc on /proc type proc (rw,relatime)
      3. udev on /dev type devtmpfs (rw,nosuid,relatime,size=1997744k,nr_inodes=499436,mode=755)
      4. devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
      5. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=402564k,mode=755)
      6. /dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro)
      7. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
      8. tmpfs on /dev/shm type tmpfs (rw)
      9. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
      10. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
      11. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
      12. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
      13. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
      14. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
      15. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
      16. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      17. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
      18. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
      19. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
      20. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
      21. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
      22. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=43,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11988)
      23. /dev/sda2 on /sharedfolders/replica type ext4 (ro,relatime,errors=remount-ro)
      24. mqueue on /dev/mqueue type mqueue (rw,relatime)
      25. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      26. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
      27. /dev/sda2 on /sharedfolders/subsonic type ext4 (ro,relatime,errors=remount-ro)
      28. /dev/sda2 on /sharedfolders/vps346081 type ext4 (ro,relatime,errors=remount-ro)
      29. sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
      30. nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
      31. tmpfs on /tmp type tmpfs (rw,relatime)
      32. /dev/sda1 on /boot type ext4 (rw,relatime,errors=remount-ro)
      Display All

      and this is the error message from dmesg:

      Source Code

      1. systemd-fstab-generator[418]: Failed to create mount unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?
      AFAIK /dev/sda2 and OMV "RootDevice" share the same mount-point, but i wasn't able to change this configuration (at least, without breaking everything and rebooting in "rescue mode" to fix it), so any help would be appreciated.