报错代码:
History:
- Can't hardlink/copy /var/tmp/...... to /var/cache/zypp/packages/......
- Can't provide ./x86_64/......
Abort, retry, ignore? [a/r/i] (a):
分析:
如果对应的目录存储空间不够,就会出现此类报错
解决方法:
扩大对应的存储空间或者在对应的目录里删除无用的数据
History:
- Can't hardlink/copy /var/tmp/...... to /var/cache/zypp/packages/......
- Can't provide ./x86_64/......
Abort, retry, ignore? [a/r/i] (a):
如果对应的目录存储空间不够,就会出现此类报错
扩大对应的存储空间或者在对应的目录里删除无用的数据
Input df command and the command is stuck
Can not us cd / command to access /(root) directory
Can not us ls / command to display /(root) directory
There may be some network storage disconnected
# mount
(Add: At this moment, we can see at least one remote storage mount to local directory. If we cd to this directory, system command prompt will output target is busy)
# umount -f <nfs storage which is stuck>
Or:
# umount -l <nfs storage which is stuck>
Or:
# umount -f -l <nfs storage which is stuck>
默认情况下,journal 的日志存储在 /run/log/journal,而 /run 目录只是一个临时目录。
将 Storage 参数设置为 persistent 后,journal 的日志将存储在 /var/log/journal,/var/log 则是一个永久的目录。
# vi /etc/systemd/journald.conf
将部分内容修改如下:
[Journal]
......
Storage=persistent
......
# systemctl restart systemd-journald.service
https://linuxconfig.org/introduction-to-the-systemd-journal
当一个用户没有某些挂载目录的读权限时,使用 df -h 命令会不显示这些目录。但是如果给 df 命令加上 –all 选项,则又可以看到这些目录。例如:
$ df --all
Filesystem 1K-blocks Used Available Use% Mounted on
...
/dev/mapper/share2 - - - - /test/02
/dev/mapper/share1 - - - - /test/01
Read-only file system
# mount -o remount rw /run
(补充:这里以重新挂载 /run 目录并给此目录添加读和写权限为例)
非正常关机可能造成文件系统受损,系统重启后,受损的分区自动挂载后就会变成只读。此时修复这个分区则可能修复这个问题
# fsck.ext4 -y /dev/sda1
(补充:这里以修复分区格式为 ext4 的分区 /dev/sda1 为例)