Unmounting a share

Polytropon freebsd at edvax.de
Mon Oct 21 21:30:25 UTC 2013

On Mon, 21 Oct 2013 16:21:20 -0400, Carmel wrote:
> I have a Windows machine that I use to back up data onto. I use the
> following command to mount the share:
> # Mount the drive
> /usr/sbin/mount_smbfs -N -f 0644 -U jim -W WORKGROUP //jim at boss-4700/FreeBSD $HOME/FreeBSD_D
> I also have this in the /etc/fstab file:
> //jim at jim@boss-4700/FreeBSD  /usr/home/jim/FreeBSD_D   smbfs   rw,noauto       0       0
> All of that works fine. The problem is that I cannot find a command to
> umount the share. I have tried every combination I could find on Google
> but they all result in an error message. It is probably really simple,
> but I cannot find one that works.

First, why do you scatter information across so many
places (most notably: interactive command)? You can
enter the CIFS "credentials" in /etc/nsmb.conf. For




The other information you have correctly entered in
/etc/fstab. You can add the equivalent of -N -f 0644
in the "options" field (like "rw,noauto,-x,-y,-z").

The mound command should then only be:

	# mount /usr/home/jim/FreeBSD_D

The umount command should similarly be:

	# umount /usr/home/jim/FreeBSD_D

In case you're getting an error: What _is_ the error?
In some cases, forcing the umount can work (but make
sure you know what you're doing):

	# umount -f /usr/home/jim/FreeBSD_D

If this also results in an error, please post the
error message.

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

More information about the freebsd-questions mailing list