Unmounting usb disk impossible

Polytropon freebsd at edvax.de
Wed Jul 22 19:31:18 UTC 2020

On Wed, 22 Jul 2020 21:24:05 +0200, Morten Bo Johansen via freebsd-questions wrote:
> On 2020-07-22 Polytropon wrote:
> > This command interpretation is similarly listed in "man 1 umount",
> > i. e., "umount -a -t <type>". However, have you checked that
> > the filesystems beneath /media, mounted by automountd, are listed
> > in /etc/fstab? This is a required condition according to the
> > manual page.
> I think I am going to drop this automount stuff and just mount
> and unmount the good old fashioned way. At least that works
> with no problems.

That matches my impression with various local-media automatic
mounting mechanisms...

After fiddling with XML files buried in /usr/local/etc (or was
it /usr/local/share?), device permissions, group membership and
so on, it would mostly mount, but then, it would not unmount
(permission issue?!), so prefix with "sudo", add "-f" option,
add desktop icon for unmount script... no, it didn't fully do
what it said on the can. ;-)

Personally, I liked the way XFCE (version 3!) did it: It had
a wrapper "xfmount" which called mount (with device or directory,
as listed in /etc/fstab), and opened a file manager window on
success; close the window - xfumount ran, unmounted the device,
and everything was fine.

"That simple?" - "Good ideas are always simple." (Dr. Mabuse)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list