大家好。这是我的第一个问题。
因此,我有一个来自旧 RAID 系统的驱动器,它有 2.7TB 的存储空间,我想将它用于一些常规的 ext4 分区:
root@FluxCapacitor:/dev# fdisk -l /dev/sda
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 3F869CBE-740E-1940-A549-5FA3E087B04D
如果我对驱动器进行分区,我会得到:
Device Start End Sectors Size Type
/dev/sda1 2048 2147485695 2147483648 1T Linux filesystem
/dev/sda2 2147485696 4294969343 2147483648 1T Linux filesystem
到目前为止一切顺利。现在,如果我尝试挂载,即使在详细模式下,也会收到未指定的错误。我运行了 fsck.ext4:
root@FluxCapacitor:/dev# fsck.ext4 /dev/sda1
e2fsck 1.44.1 (24-Mar-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/sda
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Found a gpt partition table in /dev/sda
相同:
root@FluxCapacitor:/dev# fsck /dev/sda1
root@FluxCapacitor:/dev# fsck.ext4 /dev/sda2
root@FluxCapacitor:/dev# fsck /dev/sda2
我尝试使用上面显示的任何备份超级块以及所有其他备份超级块,但都不起作用。
我没看到什么?有人能帮我吗?
更新以下是 的输出lsblk -f
:
root@FluxCapacitor:~# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1
└─sda2
mmcblk1
├─mmcblk1p1 vfat boot 52AA-6867 /media/boot
└─mmcblk1p2 ext4 rootfs e139ce78-9841-40fe-8823-96a304a09859 /
如您所见,lsblk 无法显示文件系统类型。另一方面,我用于分区的 fdisk 可以:
Command (m for help): p
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 87E4647D-3D62-FC4B-BA74-91DFAF95E9A9
Device Start End Sectors Size Type
/dev/sda1 2048 2147485695 2147483648 1T Linux filesystem
/dev/sda2 2147485696 4294969343 2147483648 1T Linux filesystem
请注意,我在 Ubuntu 18.04 ODROID HC2 上只有非图形选项。另外,我不是以英语为母语的人。
另外,我不想使用磁盘进行启动。我打算将一些主目录放在上面,供备份系统的不同用户使用。