umount in shell script
George Vanev
george.vanev at gmail.com
Wed Sep 5 04:15:45 PDT 2007
Hi all,
I have the following script:
#!/bin/sh
mnt_path='//user at server1/archive'
mnt_ip='xxx.xxx.xxx.xxx'
mkdir /usr/tmp_mnt
mount_smbfs -N -I $mnt_ip $mnt_path /usr/tmp_mnt
#rotate files
#dump mysql database
#gzip
#encrypt
#copy to /usr/tmp_mnt
umount /usr/tmp_mnt
<EOF>
Sometimes /usr/tmp_mnt is still mounted.
It's random behavior.
I didn't noticed any logic when it is unmounted or not.
OS: FreeBSD 6.2-RELEASE
Thank you!
More information about the freebsd-questions
mailing list