In the context of verifying https://trello.com/c/lh0QdXbP/2737-1-verify-behavior-with-ptablefs-in-the-same-disk (internal link) it was needed to create a virtual disk with a filesystem and an empty partition table on it. Thanks to @wfeldt, I manage to prepare it following below steps:
-
With an Ext4 filesystem
# Create a 10GB virtual disk dd if=/dev/zero of=~/virtual-disk-1 bs=1M count=10240 # Create an Ext4 filesystem on it mkfs.ext4 -F ~/virtual-disk-1