我想在新品牌的 TF 卡(不是 micro SD)上创建三个分区,但我搞不清!到目前为止我做了什么:
创建磁盘分区表
fdisk -l /dev/sdd Disco /dev/sdd: 250 GiB, 268436504576 bytes, 524290048 sectores Modelo de disco: USB SD Reader Unidades: sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico/físico): 512 bytes / 512 bytes Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes Tipo de etiqueta de disco: dos Identificador del disco: 0xf7620d53 Disposit. Inicio Comienzo Final Sectores Tamaño Id Tipo /dev/sdd1 * 2048 8194047 8192000 3,9G c W95 FAT32 (LBA) /dev/sdd2 8194048 16386047 8192000 3,9G 83 Linux /dev/sdd3 16386048 524290047 507904000 242,2G c W95 FAT32 (LBA)
建立文件系统:
mkfs.fat -n ANBERNIC /dev/sdd1 mkfs.ext4 -L SHARE /dev/sdd2 mkfs.fat -n GAMES /dev/sdd3
没有抛出任何错误
但最后一个分区没有出现!
lsblk -f sdd ├─sdd1 vfat FAT32 ANBERNIC 6E52-6C60 ├─sdd2 ext4 1.0 SHARE 6de8cf4f-be99-4c17-9c1d-22228dd8c450 └─sdd3
我做错了什么?TF 卡不能有超过 2 个分区吗?
[编辑] 关于@Kamil 询问的更多细节:
# file -skr /dev/sdd3
/dev/sdd3: data
# mount /dev/sdd3 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdd3,
missing codepage or helper program, or other error
dmesg(1) may have more information after failed mount system call.
# dmesg |tail
[30621.365113] FAT-fs (sdd3): bogus number of reserved sectors
[30621.365119] FAT-fs (sdd3): Can't find a valid FAT filesystem
[30621.367010] XFS (sdd3): Invalid superblock magic number
我也尝试在 /dev/sdd3 中创建一个 ext4 文件系统(只是为了尝试一下),结果相同:
# mkfs.ext4 -L GAMES /dev/sdd3
...
# file -skr /dev/sdd3
/dev/sdd3: data
# mount /dev/sdd3 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdd3,
missing codepage or helper program, or other error
dmesg(1) may have more information after failed mount system call.
# dmesg |tail
[31413.748671] EXT4-fs (sdd3): VFS: Can't find ext4 filesystem
[31413.750915] FAT-fs (sdd3): bogus number of reserved sectors
[31413.750924] FAT-fs (sdd3): Can't find a valid FAT filesystem
[31413.753555] XFS (sdd3): Invalid superblock magic number
对于最后一种情况,我仍然更加困惑,因为我不明白带有“FAT-fs”的两行......
编辑2:
# cp /bin/bash /dev/sdd3; echo 3 > /proc/sys/vm/drop_caches; cmp /bin/bash /dev/sdd3
/bin/bash /dev/sdd3 differ: byte 1, línea 1
# ls -l /dev/sdd*
brw-rw---- 1 root disk 8, 48 Dec 10 13:43 /dev/sdd
brw-rw---- 1 root disk 8, 49 Dec 10 13:43 /dev/sdd1
brw-rw---- 1 root disk 8, 50 Dec 10 13:43 /dev/sdd2
brw-rw---- 1 root disk 8, 51 Dec 10 13:53 /dev/sdd3
我也尝试过 testdisk,正如帖子中所说 FAT 文件系统 - 坏超级块但没有结果:-(