当前位置: 代码迷 >> 综合 >> How to solve the Ubuntu prompt W: mdadm: /etc/mdadm/mdadm.conf defines no arrays
  详细解决方案

How to solve the Ubuntu prompt W: mdadm: /etc/mdadm/mdadm.conf defines no arrays

热度:7   发布时间:2023-12-15 00:41:29.0

How to solve the Ubuntu prompt W: mdadm: /etc/mdadm/mdadm.conf defines no arrays

  • Problem
  • Solution

Problem

Ubuntu 16.04 Server LTS升级内核时,每次都跑出来“W: mdadm: /etc/mdadm/mdadm.conf defines no arrays”的提示。明明没有用RAID,查了mdadm.conf也有没有任何相关的配置。虽然不影响使用,但是强迫症患者还是觉得很不爽。

Solution

先删除mdadm.conf文件

lwk@ubuntu:~$ sudo rm /etc/mdadm/mdadm.conf

再用update-initramfs命令,自动生成新的mdadm.conf文件。

lwk@ubuntu:~$ sudo update-initramfs -u
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:LANGUAGE = (unset),LC_ALL = (unset),LC_MONETARY = "zh_CN.UTF-8",LC_ADDRESS = "zh_CN.UTF-8",LC_TELEPHONE = "zh_CN.UTF-8",LC_NAME = "zh_CN.UTF-8",LC_MEASUREMENT = "zh_CN.UTF-8",LC_IDENTIFICATION = "zh_CN.UTF-8",LC_NUMERIC = "zh_CN.UTF-8",LC_PAPER = "zh_CN.UTF-8",LANG = "en_US.UTF-8"are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
update-initramfs: Generating /boot/initrd.img-4.4.0-119-generic
lwk@ubuntu:~$ 

如此问题就解决了。

参考文献

  • Ubuntu提示W: mdadm: /etc/mdadm/mdadm.conf defines no arrays解决办法
  相关解决方案