First let's reach to the the description of the first three fields of fstab format, from
The following is a typical example of an fstab entry:
LABEL=t-home2 /home ext4 defaults,auto_da_alloc 0 2
The first field (fs_spec).
This field describes the block special device or remote filesystem to be mounted.
The second field (fs_file).
This field describes the mount point (target) for the filesystem
The third field (fs_vfstype).
This field describes the type of the filesystem. Linux supports many filesystem types: ext4, xfs, btrfs, f2fs, vfat, ntfs, hfsplus, tmpfs, sysfs, proc, iso9660, udf, squashfs, nfs, cifs, and many more. For more details, see mount(8).
The first parameter is device identification, it can be either
/dev/nvme0n1 (or whatever else device name is reported by
The second parameter is the mount point, i.e. where you want the mounted filesystem to appear in your local filesystem, for example
/mnt/mydisk, assuming you have created such a directory and it is entirely empty.
gpt is not a type of filesystem, and that's what is expected in this field. In the context of
gpt is the partitioning scheme applied to divide the whole of the disk into partitions. This partitioning scheme corresponds to the type of partition table, residing in a (relatively) small block of data, around 1MB, starting at the zero position of the
/dev/nvme0 (note, no
n1 suffix) device. The actual filesystem is what resides in the
n1 partition (just past the partition table), and it will typically have one of the types listed my
You can use this command
sudo fsck -N /dev/nvme0n1 to tell you the filesystem to put there. More specifically this command will tell you which "flavour" of
fsck command recognized this filesystem (this way telling you its type, in an roundabout way, e.g. if the filesystem was recognized by
fsck.ext4 that means you can put