Article View: alt.pl.comp.os.linux.mandrake
Article #19996AUTOFS - Problem z konfiguracją
From: Gienek
Date: Tue, 08 Feb 2011 10:53
Date: Tue, 08 Feb 2011 10:53
108 lines
3861 bytes
3861 bytes
Witam. Znalazłem w internecie opis montowania zasobów sieciowych poprzez AUTOFS. Według tego http://www.banita.pl/konf/smbmapunix.html opisu program umożliwia automatyczne montowanie i odmontowywanie zdalnych zasobów. Na przykład gdy wyłączę komputer zdalny bez poprzedniego odmontowania to nic złego dziać się nie będzie. Zrobiłem tak. Na początek trochę danych. 1. Adres sieciowy zasobu który chcę zamontować to ******************************* //laptop/udostepniony ******************************* laptop to nazwa komputera na którym znajduje się udostępniony katalog o nazwie udostepniony 2. Katalog do którego chcę zamontować zdalny zasób to ******************************* /mnt/msi ******************************* 3. System operacyjny Mandriva 2010.2 64bit Zgodnie z opisem Wyedytowałem plik **************************** /etc/autofs/auto.master **************************** Mam w nim teraz **************************** # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). # /misc /mnt/msi # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master **************************** Następnie wyedytowałem plik *************************** /etc/autofs/auto.misc *************************** i dopisałem do niego regułkę która montuje zasób sieciowy posiadający hasło. ************************** # # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # Details may be found in the autofs(5) manpage #cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom # the following entries are samples to pique your imagination #linux -ro,soft,intr ftp.example.org:/pub/linux #boot -fstype=ext2 :/dev/hda1 #floppy -fstype=auto :/dev/fd0 #floppy -fstype=ext2 :/dev/fd0 #e2floppy -fstype=ext2 :/dev/fd0 #jaz -fstype=ext2 :/dev/sdc1 #removable -fstype=ext2 :/dev/hdd laptop -fstype=cifs,rw,noperm,user=xxx,pass=yyy ://laptop/udostepniony ************************** Z opisu zrozumiałem (nie wiem czy prawidłowo), że komp jest to nazwa zdalnego komputera. xxx to nazwa użytkownia, yyy to hasło do zasobu sieciowego. Wchodzę do katalogu /mnt/msi a tam pusto czyli zasób nie został zamontowany. Jedyne co pozostaje mi napisać to Pomóżcie początkującemu. Co robię źle?
Technical Details
Message-ID:
<iir7ae$6gp$2@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!news.onet.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!news.onet.pl!.POSTED!not-for-mail From: Gienek <gienek@simplusnet.pl> Newsgroups: alt.pl.comp.os.linux.mandrake Subject: AUTOFS - Problem z konfiguracją Date: Tue, 08 Feb 2011 11:53:02 +0100 Organization: http://onet.pl Lines: 108 Message-ID: <iir7ae$6gp$2@news.onet.pl> NNTP-Posting-Host: cpe-83-2-236-177.tps.tkb.net.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1297162382 6681 83.2.236.177 (8 Feb 2011 10:53:02 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Tue, 8 Feb 2011 10:53:02 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit