Gparted 显示 Linux 的容量低于实际容量。如何解决?

Gparted 显示 Linux 的容量低于实际容量。如何解决?

我有一个 100 GiB 大小的 Ubuntu 系统。我做了一些操作来修复系统,结果我的 Linux 无法启动,GParted 显示系统上只有 1 GiB 已填满。但我知道所有 100 Gib 都已填满。我试过mkfsfsck,但没有帮助。此外,安装后 Linux 命令ls /mnt只显示一个文件夹 lost+found,它是空的。我没有备份(只有超级块备份)(我知道我很混蛋)。

有没有办法在 Linux 中返回所有 100 GiB 数据?

在此处输入图片描述

终端中的命令序列:

ubuntu@ubuntu:~$ sudo mkfs -t ext4 -n /dev/nvme0n1p4
mke2fs 1.45.5 (07-Jan-2020)
/dev/nvme0n1p4 contains a ext4 file system
    created on Thu Feb 29 10:25:01 2024
Proceed anyway? (y,N) y
Creating filesystem with 26214400 4k blocks and 6553600 inodes
Filesystem UUID: f6d50715-fde7-49a1-971b-bcd8fa9aca87
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
    4096000, 7962624, 11239424, 20480000, 23887872

ubuntu@ubuntu:~$ sudo fsck -b 23887872 /dev/nvme0n1p4
fsck from util-linux 2.34
e2fsck 1.45.5 (07-Jan-2020)
/dev/nvme0n1p4 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
Block bitmap differences:  +(32768--33792) +(98304--99328) +(163840--164864) +(229376--230400) +(294912--295936) +(819200--820224) +(884736--885760) +(1605632--1606656) +(2654208--2655232) +(4096000--4097024) +(7962624--7963648) +(11239424--11240448) +(20480000--20481024) +(23887872--23888896)
Fix<y>? yes
Padding at end of inode bitmap is not set. Fix<y>? yes

/dev/nvme0n1p4: ***** FILE SYSTEM WAS MODIFIED *****
/dev/nvme0n1p4: 11/6553600 files (0.0% non-contiguous), 557653/26214400 blocks
sudo fsck -b 20480000 /dev/nvme0n1p4
fsck from util-linux 2.34
e2fsck 1.45.5 (07-Jan-2020)
/dev/nvme0n1p4 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
Padding at end of inode bitmap is not set. Fix<y>? yes
Block bitmap differences: Group 1 block bitmap does not match checksum.
FIXED.

/dev/nvme0n1p4: ***** FILE SYSTEM WAS MODIFIED *****
/dev/nvme0n1p4: 11/6553600 files (0.0% non-contiguous), 557653/26214400 blocks

相关内容