请注意,如果我使用parted将分区大小调整回原始大小,则可以毫无问题地挂载我的/dev/vda1分区。
但是在我把它SHRUNK到8GB之后我怎样才能让它挂载呢?(上面只有1GB数据)
在我使用parted resizepart缩小之后,当我尝试执行resize2fs /dev/vda1时,它告诉我首先运行e2fsck -f /dev/vda1,但总是给出错误:
:~/e2fsprogs-1.44.1# ./e2fsck/e2fsck -f /dev/vda1
e2fsck 1.44.1 (24-Mar-2018)
The filesystem size (according to the superblock) is 5214459 blocks
The physical size of the device is 1924709 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? cancelled!
rootfs: ********** WARNING: Filesystem still has errors **********
Run Code Online (Sandbox Code Playgroud)
我可以获得一些备份超级块,但如果我尝试使用 e2fsck -b backupsuperblockNumber /dev/vda1 中的任何一个,我会收到错误......请参阅下面的粘贴:
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
:~/e2fsprogs-1.44.1# ./e2fsck/e2fsck -b 32768 /dev/vda1
e2fsck …Run Code Online (Sandbox Code Playgroud) rm -rf .*只会不会因为rm拒绝删除.而可怕地结束..。
如何从全局模式中排除这些特殊目录?
这没有解决,dotglob因为我只想匹配以点开头的文件而不是所有文件。
以前,当我只是尝试更新时会收到此错误。我相信这个问题与VLC PPA有关,它在 Ubuntu 上一直是彻头彻尾的垃圾。rm为了清除*vlc*包,我实际上必须删除受包控制的文件。现在,我删除了那个文件,我可以相对轻松地删除 vlc 包。我想这会让我回到开始,我可以再次尝试安装,但是当我这样做时,我收到了这个错误,
sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The …Run Code Online (Sandbox Code Playgroud)