我碰巧删除了我系统上的/boot目录,而不是我应该删除的目录。我找到这是为了恢复它,但是apt --reinstall有问题,所以我决定手动删除和安装软件包。可能不是最聪明的想法,现在有两个破碎的图像,我不知道如何修复。
运行dpkg --audit告诉我
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure or
我遇到这个奇怪的错误,试图挂载UFS分区。
sudo mount -r -t ufs -o ufstype=ufs2 /dev/sdb2 /home/tim/ufs_mount
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | ta
目录结构和文件系统有什么区别?
Unix/Linux目录和文件系统如下所示:
下面两个目录显然我们知道目录。
/home/abc/xyzdir1 --is a directory
/home/abc/xyzdir2 -- is a directory
以下三个示例说明了文件系统。
/proc -- is a file system
/ -- is a file system
/bin -- is a file system
如何从上面的代码片段中识别哪个是文件系统和一个目录?
当我们执行此操作时(在linux 7.x上)
umount /grop/sdc
umount: /grop/sdc: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
我们可以看到,坐骑在繁忙的时候失败了。
但当我们做remount的时候..。重装是成功的,如下所示:
mount -o rw,remount /grop/sdc
echo $?
0
太有趣了。
重新挂载是否使用类似( umount -l )