Actions
Bug #3401
openmount(8) doesn't detect filesystem type in raw GPT partition
Start date:
02/23/2026
Due date:
% Done:
0%
Estimated time:
Description
mount(8) tries to guess/detect the FS type for a partition within a BSD disklabel. However, it doesn't guess the FS type for a raw GPT partition, e.g.,
% sudo gpt show vn4
Disk vn4: 2048MB (4194304 512-byte sectors)
Start Sectors Size Index Contents
0 1 512B - PMBR
1 1 512B - Pri GPT header
2 32 16.0KB - Pri GPT table
34 2014 1007KB - Unused
2048 2000896 977MB 0 GPT part - EFI System
2002944 2191327 1070MB - Unused
4194271 32 16.0KB - Sec GPT table
4194303 1 512B - Sec GPT header
% sudo newfs_msdos vn4s0
/dev/vn4s0: 2000352 sectors in 62511 FAT16 clusters (16384 bytes/cluster)
BytesPerSec=512 SecPerClust=32 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=245 SecPerTrack=32 Heads=64 HiddenSecs=0 HugeSectors=2000896
% sudo mount /dev/vn4s0 /mnt/tmp
mount: warning: fstype in disklabel not set to anything I understand
attempting to mount with -t ufs
mount_ufs: /dev/vn4s0 on /mnt/tmp: incorrect super block
No data to display
Actions