#906533 mkfs.ntfs --label=X sets the label to "--label=X" not "X"

Package:
ntfs-3g
Source:
ntfs-3g
Description:
read/write NTFS driver for FUSE
Submitter:
"Trent W. Buck"
Date:
2026-04-23 13:11:02 UTC
Severity:
minor
#906533#5
Date:
2018-08-18 04:05:25 UTC
From:
To:
This behaviour is clearly silly:

    twb@odin:~$ sudo mkfs.ntfs --label=MBB-2007 --fast --enable-compression /dev/sdd1
    Cluster size has been automatically set to 4096 bytes.
    Creating NTFS volume structures.
    mkntfs completed successfully. Have a nice day.

    twb@odin:~$ sudo blkid
    /dev/sdd1: LABEL="--label=MBB-2007" UUID="2EB203FF04F5B043" TYPE="ntfs" PTTYPE="dos" PARTUUID="c3072e18-01"

Using a space instead of an equals has the expected behaviour:

    twb@odin:~$ sudo mkfs.ntfs --label MBB-2007 --fast --enable-compression /dev/sdd1
    Cluster size has been automatically set to 4096 bytes.
    Creating NTFS volume structures.
    mkntfs completed successfully. Have a nice day.

    twb@odin:~$ sudo blkid
    /dev/sdd1: LABEL="MBB-2007" UUID="552521797A7B6805" TYPE="ntfs" PTTYPE="dos" PARTUUID="c3072e18-01"

Please either

  1. make --label=X behave like --label X; or (if that's hard)
  2. make --label=X an error, aborting mkfs.ntfs before it writes to the disk.

#906533#10
Date:
2026-04-23 13:08:33 UTC
From:
To:
I cannot reproduce this with any version of ntfs-3g, I even tried the
last one from buster/x86_64 (version 1:2017.3.23AR.3-3+deb10u2) which
was the distribution that this was reported against and I couldn't
reproduce there either (granted this was in a chroot, but argument
parsing shouldn't be dependent on the kernel version).

Unless anyone has a solid way of reproducing this, I think it should be
closed.

- Erik