blkid identifying whole disk ntfs as both ntfs and msdos partition table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Tested with mkntfs from ntfsprogs and blkid and wipefs from util-linux git HEAD.
Test case:

# cat /etc/fedora-release
Fedora release 30 (Thirty)
# dd if=/dev/zero bs=1M of=/dev/sdb
dd: error writing '/dev/sdb': No space left on device
8193+0 records in
8192+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 39.6128 s, 217 MB/s
#  mkntfs --version
mkntfs v2017.3.23 (libntfs-3g)
...
# mkntfs -Q -F /dev/sdb
/dev/sdb is entire device, not just one partition.
mkntfs forced anyway.
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
# ./blkid --version
lt-blkid from util-linux 2.34.24-e3bb9  (libblkid 2.34.24, 14-Jun-2019)
# ./blkid /dev/sdb
/dev/sdb: UUID="3B64D28A5CF89146" TYPE="ntfs" PTTYPE="dos"
# ./wipefs /dev/sdb
DEVICE OFFSET TYPE UUID             LABEL
sdb    0x3    ntfs 3B64D28A5CF89146
sdb    0x1fe  dos

Note that the test ntfs image in util-linux doesn't cause this.  Just file
systems created by mkntfs from ntfsprogs.

# dd if=/dev/zero bs=1M of=/dev/sdb
# xzcat tests/ts/blkid/images-fs/ntfs.img.xz > /dev/sdb
# ./blkid /dev/sdb
/dev/sdb: LABEL="M-PM-^]M-PM->M-PM-2M-QM-^KM-PM-9 M-QM-^BM-PM->M-PM-<"
UUID="09CBB6DE30C87310" TYPE="ntfs"
# ./wipefs /dev/sdb
DEVICE OFFSET TYPE UUID             LABEL
sdb    0x3    ntfs 09CBB6DE30C87310 Новый том

Thanks,
Mike




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux