LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2020, 10:21 AM   #16
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,459

Original Poster
Blog Entries: 1

Rep: Reputation: 66

Quote:
Originally Posted by MadeInGermany View Post
Traditionally fstab mounts are done in sequence, top-down.
If systemd doesn't do that then there is a compatibility bug in systemd.
The strange thing it not happens always. The previous 2 boots mounted all the file systems as expected. Sometimes, even after a restart the fs on the second disk are not mounted.
@syg00 you see ? it is not a cold boot, the slow disk is up and running...
btw, it is not really a slow disk:
sdc 2:0:0:0 disk ATA ST4000DM000-2AE1 0001 sata

In fact, I am having the same problem and symptoms when I was specifying the fs on fstab. Changing the mounts to systemd didn't change anything at all.
 
Old 07-09-2020, 02:51 PM   #17
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,459

Original Poster
Blog Entries: 1

Rep: Reputation: 66
SOLVED (kind of)

tl;dr, Not a solution, more like a workaround....

Still talking about the problem, looks like the key to understand and fix it, are the messages that "systemctl status" displays at bottom:

Code:
Jun 25 15:43:02 kimera systemd[1]: Mounted Mount /home/miguel/Documentos.
Jun 25 15:43:03 kimera systemd[1]: Unmounting Mount /home/miguel/Documentos...
Jun 25 15:43:03 kimera systemd[1]: home-miguel-Documents.mount: Succeeded.
Jun 25 15:43:03 kimera systemd[1]: Unmounted Mount /home/miguel/Documentos.
Looks like the filesystems are briefly mounted and them, umounted. I have no idea why.

The messages above only occurs when the filesystems are NOT available right after the boot.
When the filesystem ARE avaiable after a boot, there is no messages at all.
Of course, manually issuing "systemctl start" for theses FS works all the time, with no messages at all.

Anyway, I didn't managed to get it fixed but I found a workaround that I want to share....
The workaround is to use automount autogenerated unit files for systemd.
For such, I listed again the FS on /etc/fstab with "x-systemd.automount" on the options field.

A typical entry looks like:

Code:
UUID=af3bd7fe-5796-4248-9917-3e71a5a56ec6  /home/miguel/Downloads  btrfs  auto,x-systemd.automount,x-systemd.requires=home.mount,x-systemd.wanted-by=multi-user.target,subvol=/miguel/Downloads      0  0
I am not sure if all x-systemd flags are needed, I was just super cautious and wanted it worked at the first boot, as this was making me crazy.

And that is it. It worked as expected.
 
  


Reply

Tags
btrfs, mount, systemd


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
[SOLVED] 32GB USB drive mounts Read Only while 4GB mounts RW CollieJim Ubuntu 10 06-13-2020 07:11 AM
LXer: The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linu LXer Syndicated Linux News 1 04-07-2017 11:33 PM
LXer: Why pro-systemd and anti-systemd people will never get along LXer Syndicated Linux News 0 05-15-2015 11:44 PM
LXer: Is systemd as bad as boycott systemd is trying to make it? LXer Syndicated Linux News 0 09-03-2014 05:50 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:48 AM.

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