I wanna mount my NTFS usb by UUID, but when I use block info and block detect, the output is different, why?
Using block info:
/dev/sda1: UUID="0000001800000048" MOUNT="/mnt/usb" TYPE="ntfs"
Using block detect:
config 'mount'
option target '/mnt/sda1'
option uuid '4E56BC2D56BC1823'
option enabled '0'
Actually, only lsblk
shows correct UUID for me:
# opkg install block-mount losetup lsblk ntfs-3g-utils
...
# dd if=/dev/zero of=ntfs.img bs=10M count=1
...
# mkfs.ntfs -F ntfs.img
...
# losetup /dev/loop1 /root/ntfs.img
# block info /dev/loop1
/dev/loop1: UUID="0000001800000030" TYPE="ntfs"
# block detect | grep -C1 loop1
config 'mount'
option target '/mnt/loop1'
option uuid '0000001800000030'
# lsblk -o name,uuid /dev/loop1
NAME UUID
loop1 356720BB1AFCCA50
Looks like a bug.
block-mount_2018-04-16-e2436836-1_x86_64
lsblk_2.32-2_x86_64
hmmm, this is a strange thing