Ubuntu18/ARM/systemd/boot failure(emergency) due to /dev/mmcblk0p1 mount fail /boot vfat

24 篇文章 0 订阅

Refer to ubuntu-base-18.04-base-arm64 initialize/systemd   (https://blog.csdn.net/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.com/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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值