我红色了一些教程,如何修复我的 casper-rw,由 YUMI 为 Mint 19 创建。文件是在 USB 上创建的,但现在我将其复制到 HDD 上,没有 r/w 错误。
$file casper-rw
casper-rw: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=21054c3a-197b-774e-91ec-7f08ed0eb027, volume name "casper-rw" (errors) (large files)
$sudo mount casper-rw /media/cas
mount: /media/cas: can't read superblock on /dev/loop0.
$dumpe2fs casper-rw | grep superblock
dumpe2fs 1.44.1 (24-Mar-2018)
Primary superblock at 0, Group descriptors at 1-1
Backup superblock at 32768, Group descriptors at 32769-32769
Backup superblock at 98304, Group descriptors at 98305-98305
Backup superblock at 163840, Group descriptors at 163841-163841
Backup superblock at 229376, Group descriptors at 229377-229377
Backup superblock at 294912, Group descriptors at 294913-294913
Backup superblock at 819200, Group descriptors at 819201-819201
Backup superblock at 884736, Group descriptors at 884737-884737
$e2fsck -y -b 98304 casper-rw
casper-rw was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #0 (31736, counted=6688).
Fix? yes
...
Directories count wrong for group #30 (0, counted=5).
Fix? yes
Free inodes count wrong (1047541, counted=1028864).
Fix? yes
casper-rw: ***** FILE SYSTEM WAS MODIFIED *****
casper-rw: 18688/1047552 files (7.5% non-contiguous), 342826/1046784 blocks
$sudo mount -o sb=98304 casper-rw /media/cas
mount: /media/cas: can't read superblock on /dev/loop0.
答案1
这是 VirtualBox 中的 BUG。解决方案是从“本地”文件夹安装,而不是从“共享”文件夹安装。 IE:
https://www.virtualbox.org/ticket/17360?cversion=0&cnum_hist=1
VBox 5.2.12 和 GuestAdditions 5.2.12 上的 Guest OL7.5 也存在同样的问题。
从共享文件夹:
[root@OL7 OVM_3.4.x]# mount -o 循环 ovmm-3.4.5-installer-OracleLinux-b1919.iso /mnt 挂载:/dev/loop0:无法读取超级块
从本地文件夹:
[root@OL7 ovm]# mount -o 循环 ovmm-3.4.5-installer-OracleLinux-b1919.iso /mnt mount: /dev/loop0 被写保护,挂载为只读