admin管理员组文章数量:1577818
Refer to ubuntu-base-18.04-base-arm64 initialize/systemd (https://blog.csdn/hushui/article/details/103882372)
Jan 28 23:58:18 localhost.localdomain systemd[1]: Started Flush Journal to Persistent Storage.
Jan 28 23:59:07 localhost.localdomain kernel: fb: mem_free_work, free memory: addr:800000
Jan 28 23:59:47 localhost.localdomain systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start timed out.
Jan 28 23:59:47 localhost.localdomain systemd[1]: Timed out waiting for device dev-ttyS0.device.
Jan 28 23:59:47 localhost.localdomain systemd[1]: Dependency failed for Serial Getty on ttyS0.
Jan 28 23:59:47 localhost.localdomain systemd[1]: serial-getty@ttyS0.service: Job serial-getty@ttyS0.service/start failed with result 'dependency'.
Jan 28 23:59:47 localhost.localdomain systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start failed with result 'timeout'.
Jan 28 23:59:48 localhost.localdomain systemd[1]: dev-mmcblk0p1.device: Job dev-mmcblk0p1.device/start timed out.
Jan 28 23:59:48 localhost.localdomain systemd[1]: Timed out waiting for device dev-mmcblk0p1.device.
Jan 28 23:59:48 localhost.localdomain systemd[1]: Dependency failed for /boot.
Jan 28 23:59:48 localhost.localdomain systemd[1]: Dependency failed for Local File Systems.
Jan 28 23:59:48 localhost.localdomain systemd[1]: local-fs.target: Job local-fs.target/start failed with result 'dependency'.
Jan 28 23:59:48 localhost.localdomain systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
Jan 28 23:59:48 localhost.localdomain systemd[1]: boot.mount: Job boot.mount/start failed with result 'dependency'.
Jan 28 23:59:48 localhost.localdomain systemd[1]: dev-mmcblk0p1.device: Job dev-mmcblk0p1.device/start failed with result 'timeout'.
Jan 28 23:59:48 localhost.localdomain systemd[1]: Reached target Timers.
Jan 28 23:59:48 localhost.localdomain systemd[1]: Reached target Login Prompts.
Jan 28 23:59:48 localhost.localdomain systemd[1]: Starting Raise network interfaces...
Jan 28 23:59:48 localhost.localdomain systemd[1]: Starting Create Volatile Files and Directories...
Jan 28 23:59:48 localhost.localdomain systemd[1]: Started Emergency Shell.
1. A start job is running for…ces-eth0.device or A start job is running for dev-ttys0.device
ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service
2. /lib/systemd/system/local-fs.target
root@localhost:~# cat /lib/systemd/system/local-fs.target
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Local File Systems
Documentation=man:systemd.special(7)
DefaultDependencies=no
Conflicts=shutdown.target
After=local-fs-pre.target
OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly
root@localhost:~#
root@localhost:~# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs defaults,nosuid 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro,x-gvfs-hide 0 1
/dev/mmcblk0p1 /boot vfat defaults 0 2
root@localhost:~#
>>>>>>>>>>>>>>>>>>
Refer to
http://www.itkeyword/doc/4795330483895491940/systemd-udev-dependency-failure-when-auto-mounting-separate-partition-during-sta
####################################
############ systemd-udev must be installed
khadas@Khadas:/lib/systemd$ dpkg-query -S /lib/systemd/systemd-udevd
udev: /lib/systemd/systemd-udevd
khadas@Khadas:/lib/systemd$
####################################
It appears as though udev isn't mounting mmcblk partitions until after systemd init is complete, which causes dependency errors if /etc/fstab
calls for an mmcblk partition. udev checks the fstab
, waits for an mmcblk device to be mounted and times out, THEN attempts to mount the device.
#/etc/systemd/system/mount-data-partition.service
[Unit]
Description=Mount Data Partition
DefaultDependencies=no
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/mount /dev/mmcblk0p4
本文标签: bootfailureEmergencyArmsystemd
版权声明:本文标题:Ubuntu18ARMsystemdboot failure(emergency) due to devmmcblk0p1mount failboot vfat 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1727823361a1131987.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论