You are not logged in.

#1 2022-01-06 06:57:46

curioustech
Member
Registered: 2020-11-27
Posts: 11

Failed to start Remount Root and Kernel File Systems.

systemd-remount-fs.service is failing with message "Failed to start Remount Root and Kernel File Systems."

[pranav@ArchLinux ~]$ systemctl status systemd-remount-fs.service
× systemd-remount-fs.service - Remount Root and Kernel File Systems
     Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; enabled-runtime; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2022-01-06 01:41:10 EST; 4min 42s ago
       Docs: man:systemd-remount-fs.service(8)
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
    Process: 258 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
   Main PID: 258 (code=exited, status=1/FAILURE)
        CPU: 9ms

Jan 06 01:41:10 ArchLinux systemd-remount-fs[261]: mount: /: mount point not mounted or bad option.
Jan 06 01:41:10 ArchLinux systemd-remount-fs[258]: /usr/bin/mount for / exited with exit status 32.
Jan 06 01:41:10 ArchLinux systemd[1]: systemd-remount-fs.service: Main process exited, code=exited, status=1/FAILURE
Jan 06 01:41:10 ArchLinux systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
Jan 06 01:41:10 ArchLinux systemd[1]: Failed to start Remount Root and Kernel File Systems.
Notice: journal has been rotated since unit was started, output may be incomplete.

My fstab seem to have correct and valid entry and it does mount my root subvolume correctly.

[pranav@ArchLinux ~]$ cat /etc/fstab 
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /               btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=256,subvol=/@,subvol=@ 0 0

# /dev/sdc1
UUID=ACAC-8788          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro       0 2

# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /home           btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=257,subvol=/@home,subvol=@home 0 0

# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /var            btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=258,subvol=/@var,subvol=@var   0 0

# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /.snapshots     btrfs           rw,noatime,compress=lzo,ssd,space_cache,subvolid=259,subvol=/@snapshots,subvol=@snapshots       0 0

# /dev/sdc2
UUID=6a4be001-0098-4f68-b8cb-f86c33243204       none            swap            defaults        0 0

[pranav@ArchLinux ~]$ mount | grep -i 'btrfs'
/dev/sdc3 on / type btrfs (rw,relatime,ssd,space_cache=v2,subvolid=256,subvol=/@)
/dev/sdc3 on /.snapshots type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=259,subvol=/@snapshots)
/dev/sdc3 on /home type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=257,subvol=/@home)
/dev/sdc3 on /var type btrfs (rw,noatime,ssd,space_cache=v2,subvolid=258,subvol=/@var)
[pranav@ArchLinux ~]$ 

My system boots up and working.
However, I noticed that / is mounted without noatime,compress=lzo options.
What do I need to do to ensure systemd-remount-fs.service can remount subvolid=256,subvol=/@ at / with noatime,compress=lzo options?

Offline

#2 2022-01-06 10:31:07

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Failed to start Remount Root and Kernel File Systems.

Having both subvolid and subvol in the options seems unnecessary and having two different subvol options is just weird. That doesn't seem to cause issues for the other subvols, but those are not remounted. Maybe this and/or a mismatch with the options in rootflags (kernel parameter) causes systemd-remount-fs to fail.

Offline

#3 2022-03-11 16:38:54

curioustech
Member
Registered: 2020-11-27
Posts: 11

Re: Failed to start Remount Root and Kernel File Systems.

Raynman wrote:

having two different subvol options is just weird.


This put me on the correct path.
Here is updated/corrected fstab file.

[pranav@ArchLinux ~]$ cat /etc/fstab 
# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /               btrfs           rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=256,subvol=/@       0 0

# /dev/sdc1
UUID=ACAC-8788          /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /home           btrfs           rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=257,subvol=/@home   0 0

# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /.snapshots     btrfs           rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=259,subvol=/@snapshots      0 0

# /dev/sdc3
UUID=060d7af3-aef2-4db9-9eb4-d2405e5bf66c       /var            btrfs           rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=258,subvol=/@var    0 0

# /dev/sdc2
UUID=6a4be001-0098-4f68-b8cb-f86c33243204       none            swap            defaults        0 0

Now the issue is resolved.

[pranav@ArchLinux mnt]$ mount | grep -i 'btrfs'
/dev/sdc3 on / type btrfs (rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=256,subvol=/@)
/dev/sdc3 on /.snapshots type btrfs (rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=259,subvol=/@snapshots)
/dev/sdc3 on /home type btrfs (rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=257,subvol=/@home)
/dev/sdc3 on /var type btrfs (rw,noatime,compress=lzo,ssd,space_cache=v2,subvolid=258,subvol=/@var)

[pranav@ArchLinux mnt]$ systemctl status systemd-remount-fs.service
● systemd-remount-fs.service - Remount Root and Kernel File Systems
     Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; enabled-runtime; vendor preset: disabled)
     Active: active (exited) since Wed 2022-03-09 15:45:40 EST; 1 day 19h ago
       Docs: man:systemd-remount-fs.service(8)
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
   Main PID: 253 (code=exited, status=0/SUCCESS)
        CPU: 285ms

Mar 09 15:45:40 ArchLinux systemd[1]: Finished Remount Root and Kernel File Systems.
[pranav@ArchLinux mnt]$ 

Last edited by curioustech (2022-03-11 16:40:47)

Offline

Board footer

Powered by FluxBB