Date: Mon, 21 Oct 2013 23:30:10 +0200 From: Polytropon <freebsd@edvax.de> To: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Unmounting a share Message-ID: <20131021233010.b43a372b.freebsd@edvax.de> In-Reply-To: <BLU0-SMTP2347A6F394934906361B01D93010@phx.gbl> References: <BLU0-SMTP2347A6F394934906361B01D93010@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131021233010.b43a372b.freebsd>