[Bug 1600525] Re: systemd fails to mount on startup via /etc/fstab
Schiggn
koffeinfriedhof at gmail.com
Sun Jul 17 13:32:14 UTC 2016
Update:
systemd creates missing mount points! So there could NOT be an error
message.
This error is depending on the encryptet home-folder via encryptfs.
Steps to reproduce:
* Install 16.04 with encrypted home-folder
* edit /etc/fstab with an entry like UUID=[UUIDofPartition] /home/FIRSTUSER/lalala ext4 defaults 0 0
* do NOT create the directory lalala
* add a second admin-user (sudo usermod -aG SECONDUSER sudo)
* reboot
* Login with second user
* look at ls -lha /home/FIRSTUSER/
* You'll find the directory lalala.
* Login with first user. There's no directory lalala in the encrypted home
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1600525
Title:
systemd fails to mount on startup via /etc/fstab
Status in systemd package in Ubuntu:
New
Bug description:
Hello!
(partially) informations first:
#Kubuntu 16.04:
#uname -a
Linux desktop 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
#lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
#sudo blkid
/dev/sda5: LABEL="Daten" UUID="fa600d38-2bda-4a98-8297-4f6bd7ca909c" TYPE="ext4" PARTUUID="4dc4a374-05"
#/etc/fstab (yes, there's an empty line at the end)
UUID=fa600d38-2bda-4a98-8297-4f6bd7ca909c /home/schiggn/Daten ext4 defaults 0 0
#journalctl -b -r | grep "Daten"
Jul 09 20:09:20 desktop systemd[1]: Mounted /home/schiggn/Daten.
Jul 09 20:09:20 desktop systemd[1]: Mounting /home/schiggn/Daten...
Jul 09 20:09:20 desktop systemd[1]: Found device WDC_WD10EARS-00Y5B1 Daten.
#show folder after startup
root at desktop:~# ls -lha /home/schiggn/Daten/
insgesamt 8,0K
drwxrwxr-x 2 schiggn schiggn 4,0K Jun 30 21:35 .
drwx------ 25 schiggn schiggn 4,0K Jul 9 20:09 ..
root at desktop:~#
#mount -v -l
/dev/sda5 on /home/schiggn/Daten type ext4 (rw,relatime,data=ordered) [Daten]
#Status
root at desktop:~# systemctl status home-schiggn-Daten.mount
● home-schiggn-Daten.mount - /home/schiggn/Daten
Loaded: loaded (/etc/fstab; bad; vendor preset: enabled)
Active: active (mounted) since Sa 2016-07-09 20:09:20 CEST; 52min ago
Where: /home/schiggn/Daten
What: /dev/sda5
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Process: 753 ExecMount=/bin/mount /dev/disk/by-uuid/fa600d38-2bda-4a98-8297-4f6bd7ca909c /home/schiggn/D
Jul 09 20:09:20 desktop systemd[1]: Mounting /home/schiggn/Daten...
Jul 09 20:09:20 desktop systemd[1]: Mounted /home/schiggn/Daten.
root at desktop:~#
#systemd --version
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
Problem is, that systemd is mounting correctly with no errors, but the
folder is still empty.
sudo mount -a results in an "/home/schiggn/Daten : already
mounted"
a manually "sudo mount /dev/sda5 /home/schiggn/Daten" works as
expected and the files are shown.
Can you please help me how to track this?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1600525/+subscriptions
More information about the foundations-bugs
mailing list