Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AUTOFS - Problem z konfiguracją

3 views
Skip to first unread message

Gienek

unread,
Feb 8, 2011, 5:53:02 AM2/8/11
to
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?

0 new messages