使用 fdisk 更改分区会显示类似“partition#x contains ext4-signature”的警告

pow*_*ete 6 filesystems partitioning ext4 partition

我正在缩小分区大小

#Reduce Partition Size
fsck -f /dev/sdb2
resize2fs /dev/sdb2 -M -p

#Limit Partion
fdisk /dev/sdb
... #Now I'm changing the Partition 2 to the new (smaller) size
Run Code Online (Sandbox Code Playgroud)

fdisk 给了我一个(红色)警告,比如partition#2 contains ext4-signature( Partition #2 enthält eine ext4-Signatur)

有什么不对?为什么 fdisk 向我显示警告?

小智 6

我试图找到相同的。所以这意味着这个分区上有 EXT4 fs。例如,在分区和 FS 上增加此警告。如果您不打算删除 fs,只需选择“N”。

Created a new partition 1 of type 'Linux' and of size 100 GiB.
Partition #1 contains an ext4 signature.

Do you want to remove the signature? [Y]es/[N]o: N
Run Code Online (Sandbox Code Playgroud)

最完整的答案在这里:https : //unix.stackexchange.com/questions/477991/what-is-a-vfat-signature/478001#478001