Re: [Linux] Automount && Autofs

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Sinan Alyuruk (sinan@lkdlists.ayder.org)
Date: Tue 28 Jun 2005 - 16:39:14 EEST


Merhaba,

Murat Koç wrote:

>Sorunun basit bir çözümü yok. autofs ve automount cd takıldığı zaman detect
>etmek için değil tanımlanmış olan dizine erişim yapıldığı zaman mount etmek
>için kullanılır. Misal /cdrom a automount ile tanımlama yaparsanız siz
>
>ls /cdrom
>
>yaptığınız zaman cdrom mount edilir ve görebilirsiniz içindekileri.
>
>
>
>
Ogrenmeye calistigim X + gnome acikken cdrom automount ediliyor,
sonucunda desktop'da CD ikonu filan cikiyor. Nasıl çıkıyor o ikon? Oyle
birsey yapmak istiyorum. Basitce gnome surekli mount dizininlerini
kontrol mu ediyor nedir?

Aslında soyle sakat bisi de is gorebilir:

#~ mv /bin/mount /bin/mount.org
#~ cat > /bin/mount
#!/bin/bash
mount.org $1 $2 $3 $4 $5
start_ripper.pl
..
(Sistem boot ederken sonra ne olur bilinmez)

Neyse automount 'un man page'inde

ARGUMENTS
       automount takes at least three arguments. Mandatory arguments
include mount-point, map-type and map. Both manda-
       tory and optional arguments are described below.

 map-type: Type of map used for this invocation of automount. The
following are valid map types
  bla bla bla....
             program
                     The map is an executable program, which is passed a
key on the command line and returns an entry on
                     stdout if successful.

Gibi bir secenek var. Buradaki programi' ihtiyaca gore nasil
sekillendiririz? Bilgisi olan var mi diye sormustum.

Kolay Gelsin,

_______________________________________________
Linux mailing list
Linux@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.