Samba a sdileni ZIPky

ivop na regionet.cz ivop na regionet.cz
Čtvrtek Červen 1 11:14:29 CEST 2000


Michal Konupcik wrote:
> 
> Jeste bych tu mel jeden problem:
> potreboval bych nejakym zpusobem umoznit sdileni ZIP mechaniky na Linuxovem
> stroji pres sambu.
> Potreboval bych to ale udelat tak, aby po zastrceni ZIP diskety do mechaniky
> se automaticky namountovala (tak jako treba CD).
> ZIPka je IDE jako /dev/hdb  a setkal jsem se z problemem, ze nektere ZIP
> diskety jdou namountovat jako hdb1 a nektere treba jako hdb4.

automaticke montovani ZIP lze udelat treba pres autofs, napriklad takto:

$ cat /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).
/mnt	/etc/auto.mnt	--timeout 15

$ cat /etc/auto.mnt
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# 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

floppy	-fstype=auto			:/dev/fd0
wfloppy	-fstype=vfat,codepage=852,posix,iocharset=iso8859-2,quiet,umask=000
:/dev/fd0
cdrom	-fstype=iso9660			:/dev/cdrom
zip	-fstype=vfat,codepage=852,posix,iocharset=iso8859-2,quiet,umask=000
:/dev/sda4
lzip	-fstype=ext2			:/dev/sda4
zip1	-fstype=vfat,codepage=852,posix,iocharset=iso8859-2,quiet,umask=000
:/dev/sda1

z cehoz je videt, ze ZIP mam SCSI (=paralelni port) a jdu na ni

a) /mnt/lzip ... ext2 filesystem, partition 4
b) /mnt/zip .... windousi fat, partition 4, preklad kodovani
c) /mnt/zip1 ... windousi fat, partition 1, preklad kodovani

Defaultni predformatovani ZIP medii byva na partition 4, v praxi to
je normalni disk a fdiskem si tam muzete dat samozrejme cokoliv.

Nevyhoda toho celeho je, ze ten adresar (napr. /mnt/zip) neexistuje predem,
ale musite se do nej prepnout "naslepo" a on vznikne (automounter ho vyrobi).
Takze proste neni videt. Tohle resim (v pripade potreby) pres symlink,
ktery existuje furt a ktery zverejnuji pres sambu.

ip
-- 
E-mail: Ivo.Panacek na regionet.cz
WWW:    http://ivop.regionet.cz
Mobile: +420 602 337776


Další informace o konferenci Linux