Utilities icon indicating copy to clipboard operation
Utilities copied to clipboard

Format Disk: Recognize FUSE mounts better

Open probonopd opened this issue 4 years ago • 1 comments

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 avatar Nov 29 '21 07:11 probonopd

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?

probonopd avatar Nov 29 '21 07:11 probonopd