Results 1 to 4 of 4

Thread: smbumount missing in maverick

  1. #1
    Join Date
    Mar 2006
    Beans
    25
    Distro
    Ubuntu 11.04 Natty Narwhal

    smbumount missing in maverick

    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?

    Code:
    #!/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!

  2. #2
    Join Date
    Jan 2007
    Beans
    165

    Re: smbumount missing in maverick

    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
    Last edited by pdc124; January 7th, 2011 at 09:00 PM. Reason: typo

  3. #3
    Join Date
    Mar 2006
    Beans
    25
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: smbumount missing in maverick

    Quote Originally Posted by pdc124 View Post
    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:
    Code:
    #!/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.

  4. #4
    Join Date
    May 2009
    Location
    Ontario, Canada
    Beans
    67
    Distro
    Ubuntu 14.04 Trusty Tahr

    Cool Re: smbumount missing in maverick

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •