PDA

View Full Version : [ubuntu] smbumount missing in maverick



obley
November 3rd, 2010, 03:28 PM
Last night I upgraded from 10.04 to 10.10. I have a job that mounts an smb share, rsyncs, then unmounts but smbumount is no longer available. Anyone out there know what package I'm needing, or what has replaced smbumount?



#!/bin/bash
synclog=/home/mmoser/logs/rsync_$(date +%Y%m%d).log

#mount destination
smbmount //192.168.76.11/_darcyDump /media/dump -o username=xxx,password=xxx,uid=mmoser rw

#kick off sync
rsync -rltEvqz --del --log-file=$synclog /storage/ /media/dump

#clean up
smbumount /media/dump/


thanks!

pdc124
January 7th, 2011, 07:23 PM
did you fix this - ive got a bash scripts that mounts and unmounts windows shares and its stopped working .
smbmount works but smbumount generates and error

obley
January 7th, 2011, 08:12 PM
did you fiux this - ive got a bash scripts that mounts and unmounts windows shares and its stopped working .
smbmount works but smbumount generates and error

oh yea, Sorry. I should have posted for posterity.

You want to use: umount -f /mount/path

Here is my updated script:


#!/bin/bash

synclog=/home/mmoser/logs/rsync_$(date +%Y%m%d).log
dir=/media/dump/www

if [ ! -d "$dir" ]; then
#mount destination
smbmount //192.168.76.11/_darcyDump /media/dump -o username=xxx,password=xxx,uid=mmoser rw
fi

if [ -d "$dir" ]; then
#kick off sync
rsync -rltEvqz --del --log-file=$synclog /storage/ /media/dump
#clean up
umount -f /media/dump
else
echo "mount failed, check IP"
fi

I've also thrown in some mount checks since my last post.

legendbb
November 22nd, 2012, 04:51 PM
Just to add on my ubuntu 10.10, $ sudo umount -f /mnt/SMBShared doesn't work.

I have to $ sudo su to do the same thing.

Don't understand why but it worked.