From owner-freebsd-questions@FreeBSD.ORG Mon Oct 21 21:30:25 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9E368F04 for ; Mon, 21 Oct 2013 21:30:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 62EA627CA for ; Mon, 21 Oct 2013 21:30:25 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id E94BA278E5 for ; Mon, 21 Oct 2013 23:30:16 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r9LLUARi002366 for ; Mon, 21 Oct 2013 23:30:10 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 21 Oct 2013 23:30:10 +0200 From: Polytropon To: FreeBSD Subject: Re: Unmounting a share Message-Id: <20131021233010.b43a372b.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Oct 2013 21:30:25 -0000 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@boss-4700/FreeBSD $HOME/FreeBSD_D > > I also have this in the /etc/fstab file: > //jim@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 example: [default] workgroup=WORKGROUP [boss-4700] addr=192.168.456.789 [boss-4700:jim] password=TOPSECRET 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...