Open heitbaum opened 3 years ago
What changes are required with udevil 0.4.4 to use the mount = -t ntfs3 type with ntfs volumes?
This is a unsuccessful mount (below)
# /usr/bin/udevil --mount /dev/sda1 --verbose ROOT: /usr/bin/mount -v -t ntfs -o nosuid,noexec,nodev,noatime,big_writes,fmask=0133,uid=0,gid=0,utf8 /dev/sda1 /media/usb-key mount: mounting /dev/sda1 on /media/usb-key failed: No such device mount exit status = 255
This is a successful mount (below) - note the change of -t to ntfs3
# /usr/bin/mount -v -t ntfs3 -o nosuid,noexec,nodev,noatime,big_writes,fmask=0133,uid=0,gid=0,utf8 /dev/sda1 /media/usb-key
This is the device itself - noting the type is ntfs (not ntfs3)
# udevil info /dev/sda1 Showing information for /org/freedesktop/UDisks/devices/sda1 native-path: /sys/devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.3.auto/usb1/1-1/1-1.4/1-1.4:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1 device: 8:1 device-file: /dev/sda1 presentation: /dev/sda1 by-id: /dev/disk/by-id/usb-Generic_Flash_Disk_D737615D-0:0-part1 system internal: 0 removable: 1 has media: 1 is read only: 0 is mounted: 1 mount paths: /var/media/usb-key presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: automount hint: size: 1990606848 block size: 512 usage: filesystem type: ntfs version: uuid: DA44E21B44E1F9E1 label: usb-key partition: scheme: number: 1 type: flags: offset: 1687552 alignment offset: 0 size: 1990606848 label: uuid:
Not the most elegant solution but:
# more /usr/sbin/mount.ntfs #!/bin/sh /usr/sbin/modprobe ntfs3 /usr/bin/mount "$@"
https://github.com/LibreELEC/LibreELEC.tv/commit/80f9f74b49c0df9d48024262eef4ac7436cca1af
What changes are required with udevil 0.4.4 to use the mount = -t ntfs3 type with ntfs volumes?
This is a unsuccessful mount (below)
This is a successful mount (below) - note the change of -t to ntfs3
This is the device itself - noting the type is ntfs (not ntfs3)