场景描述:
巡检服务器时发现,服务器只剩下 / 跟目录和 /home 两个目录,丢失了/dev/sda2 和 /dev/sda1 目录,手动挂载后正常
挂载命令:
[root@localhost ~]# mount /dev/sda1 /boot/efi/
[root@localhost ~]# mount /dev/sda2 /boot/
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 63G 0 63G 0% /dev
tmpfs 63G 811M 62G 2% /run
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 11G 40G 21% /
/dev/mapper/centos-home 1.1T 9.1G 1.1T 1% /home
/dev/sda2 1014M 143M 872M 15% /boot
/dev/sda1 200M 12M 189M 6% /boot/efi
挂载后显示正常: