helloSystem / Utilities

Utilities written in PyQt5, meant for use with helloSystem
BSD 2-Clause "Simplified" License
27 stars 29 forks source link

Format Disk: Recognize FUSE mounts better #105

Open probonopd opened 2 years ago

probonopd commented 2 years ago

Assuming that all FUSE related mount commands start with mount.* is potentially a bug. Looks like

ntfs-3g -o recover -o noatime /dev/daXsY /media/Name

is not covered by

https://github.com/helloSystem/Utilities/blob/b6ace0b5c0cdffb55195b1fc69dca102b22774ab/System/Format%20Disk.app/Resources/formatdisk.py#L121

Is there a more robust way of finding out which FUSE mounts are there for a given /dev/daX?

probonopd commented 2 years ago

This gets us all mountpoints of a device, including FUSE ones:

lsblk  da0 | awk '{ print $6 }'
MOUNT
-
-
/media/Name
-

but this needs a package:

/usr/local/sbin/lsblk was installed by package lsblk-3.7

Is there a FreeBSD native solution without the need for a package?