[systemd-devel] fsck, /home, btrfs, multiple partitions/drives, boot failure [Ubuntu 15.04]

Roger Binns rogerb at rogerbinns.com
Fri May 29 11:02:42 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/28/2015 08:40 PM, Andrei Borzenkov wrote:
> Try booting with udev.log-priority=debug
> rd.udev.log-priority=debug, this may give some hint what happens.

Wow did that produce a lot of output!

> No. You can set "nofail" in which case boot will proceed and you
> can mount it manually later.

I added the nofail flag to /home and mounts below it, along with the
udev flags above.  Booting at least got me to a login screen instead
of the emergency shell.  I was then able to login at a virtual
console, checked /home was not mounted, and mount -a quite happily
mounted it and the system works.

I have attached the output of journalctl -b which has all the udev
output as well as everything else.  That is fulljournal.txt.gz.

Separately my laptop has two drives, and I have 3 luks+dmcrypt
partitions.  One of them is for swap, and two of them are in RAID0 for
a single btrfs filesystem that contains / and /home subvolumes.  The
initrd does the keysetup and decryption, long before systemd is
involved.  My boot time with systemd has become several minutes, but
eventually succeeds.  Looking in the log (attached as laptop.txt.gz),
it too has messages about waiting for disk devices and eventually
timing out, but the system eventually boots compared to the desktop
emergency shell.

It seems there is something very confused going on between the initrd,
udev and systemd, especially noticeable if you have btrfs across
multiple partitions and the same partitions are already mounted for
root by initrd.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlVoqb0ACgkQmOOfHg372QRi4QCgp1GNeKJ4UIPqAVtI7vkGzpwE
u7cAn1aAiBolnDd4xBIlQETTR+0nmUji
=0DRw
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fulljournal.txt.gz
Type: application/gzip
Size: 45366 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150529/6377af45/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: laptop.txt.gz
Type: application/gzip
Size: 42393 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150529/6377af45/attachment-0003.bin>


More information about the systemd-devel mailing list