From: Sviatoslav Sviridov <svd@lintec.minsk.by>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] mount.cifs
Date: Fri, 10 Oct 2003 17:06:43 +0300
Message-ID: <3F86BCF3.4040208@lintec.minsk.by> (raw)
In-Reply-To: <20031010143340.797bb232.vyt@vzljot.ru>
[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]
Vitaly Ostanin wrote:
>Hello, All!
>
>У кого-нибудь получилось примонтировать что-нибудь с помощью
>mount -t cifs
>?
>Кто умеет раздавать ресурсы через cifs
>(samba2,samba3,win2k,win98) ?
>
>Я пытался монтировать ресурсы, раздаваемые на samba2 и win2k - не
>получилось.
>
>
У меня постоянно получается :)
Приложенный скрипт у меня монтирует все необходимые мне ресурсы. Сервера
- win2k.
Бывают и проблемы:
- Иногда примонтированный ресурс становится недоступным. Это замечается
для тех серверов, от которых монтируется более одного ресурса.
- Иногда во время выключения машины при попытке отмонтировать шары
наблюдается kernel oops. Как правило, рассмотреть что там написано я не
успеваю, а на следующее утро уже нет желания в этом копаться :)
--
-- Sviatoslav Sviridov <svd at lintec dot minsk dot by>
/* icq: 10845380; jid: svd at altlinux dot org; */
??????????????????, xmtr ?????? ?????????? ???????????????? ????????????????. ?????? ?????????? ?????????????? feature.
-- ldv in sisyphus@
[-- Attachment #2: mount-shares --]
[-- Type: text/plain, Size: 820 bytes --]
#! /bin/sh
BASEMNTDIR=$HOME/mnt
USEROPT=`cat ~/personal/.credentials|grep 'username='`
[ -n "$USEROPT" ] || USEROPT="username=Sviataslau_Svirydau"
PSWOPT=`cat ~/personal/.credentials|grep 'password='`
[ -z "$PSWOPT" ] || PSWOPT=",$PSWOPT"
find_hosts()
{
find $BASEMNTDIR -type d -maxdepth 1|grep -v 'mnt$'|sed -e 's:.*/::'|grep -i ^ep
}
mount_host_shares()
{
local host="$1"
#while
local share=""
find $BASEMNTDIR/$host -type d -maxdepth 1|grep -v "$host\$"|sed -e 's:.*/::'| \
while read share;do
#echo "found: //$host/$share"
local m=`mount|grep "$host/$share"`
if [ -z "$m" ]; then
echo "Mounting //$host/$share"
mount.cifs "//$host/$share" "$BASEMNTDIR/$host/$share" -o "domain=${DOMAIN-MINSK},$USEROPT$PSWOPT"
fi
done
}
find_hosts|while read h; do
#echo $host
mount_host_shares $h
done
next prev parent reply other threads:[~2003-10-10 14:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-10 10:33 Vitaly Ostanin
2003-10-10 14:06 ` Sviatoslav Sviridov [this message]
2003-10-10 14:19 ` [sisyphus] mount.cifs Vitaly Ostanin
2003-10-10 14:26 ` Alexander Bokovoy
2003-10-10 14:39 ` Vitaly Ostanin
2003-10-10 14:46 ` Vitaly Ostanin
2003-10-10 14:55 ` Sviatoslav Sviridov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F86BCF3.4040208@lintec.minsk.by \
--to=svd@lintec.minsk.by \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git