🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.pl.comp.os.linux.mandrake
1 messages
1 total messages Started by Gienek Tue, 08 Feb 2011 10:53
AUTOFS - Problem z konfiguracją
#19996
Author: Gienek
Date: Tue, 08 Feb 2011 10:53
108 lines
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?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads