automount a RH 6.0

David Zabensky zabensky na ica.cz
Čtvrtek Listopad 25 11:23:54 CET 1999


Dobry den,
chtel bych poprosit o radu. Mam RH6.0 a chtel bych pouzivat automount demona. Podle man jsem si nastavil
soubor /etc/auto.master:
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#/misc  /etc/auto.misc  --timeout 60      // tohle jsem zablokoval je to snad nutne???
# pripojeni diskety a cdrom
/disketa /etc/auto.cfg --timeout 60
/cdrom   /etc/auto.cfg --timeout 300                                            

Tj. konfiguraci "misc" - default jsem vyhodil a doplnil jsem sve na disketu a cdrom.
Vytvoril jsem subor auto.cfg s obsahem:
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
/cdrom              -fstype=iso9660,ro      :/dev/cdrom
/disketa            -fstype=auto            :/dev/fd0                           

Po zadani /etc/rc.d/initd/autofs restart se mi normalne demoni nastartuji a mount mi ukazuje:
/dev/hda3 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/hda5 on /data type vfat (rw)
none on /dev/pts type devpts (rw,mode=0622)
automount(pid1543) on /disketa type autofs (rw,fd=5,pgrp=1543,minproto=2,maxproto=3)
automount(pid1557) on /cdrom type autofs (rw,fd=5,pgrp=1557,minproto=2,maxproto=3)                                                                              


Pokud vsak dam disketu do mechaniky a dam ls /disketa, nevidim nic. Bude nekdo tak
hodny a poradi mi?
PS: Pokud si normalne primontuji disketu ci CDROM, je vse OK

Dekuji a preji prijemny den, David


Další informace o konferenci Linux