ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Canis Cerberus <altlinux@nm.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Автомонтирование USB Flash диска
Date: Fri, 14 Nov 2003 15:08:04 +0300
Message-ID: <200311141508.04921.altlinux@nm.ru> (raw)
In-Reply-To: <1068801164.6293.13.camel@golovin.work>

В сообщении от 14 Ноябрь 2003 12:12 Andrey Golovin написал(a):
> В Птн, 14.11.2003, в 12:03, Roman Savelyev пишет:
> > В Птн, 14.11.2003, в 11:35, Andrey Golovin пишет:
> > > Мне уже давно интересно, почему линукс не монтирует CDROM, когда диск
> > > вставляют в привод и не размонтирует, когда на приводе жмут кнопку.
> > >  Кто
> > > бы написал такой сервис? Ведь просто же... А мне лень :-)
> >
> > Проект supermount. Функциональность есть и в automount. Но последний
> > работает так, что лучше бы его не было.
> > Но путь Apple лучше - на дисководах и CD нет никаких лишних кнопок.
>
> Не о том речь.
> autorun в windows знаете? Ну так вот аналогично сделать автоматическое
> монтирование когда детектится диск. ИМХО ядро сигнал об этом дает (леь
> снова искать как). И наоборот - когда нажимается кнопка на приводе (даже
> если он заблокирован), драйвер опять дает какой-то сигнал, по которому
> можно было бы сделать umount. Если отмонтируется - выплюнет диск, если
> нет - ничего не произойдет.
> Сам не видел, но где-то читал, что так сделано в солярке и HPUX. Не
> говоря уже про MacOS...
Открой глаза :-) В РедХат и АСП используется система autorun, если не веришь 
поставь пакет autorun из РЕдХата, вставляешь диск - запускается файловый 
менеджер или программа автозапуска если таковая есть на этом диске (например 
есть на диске РедХат Кирилик Едишн), а если аудио-диск запускается 
проигрыватель и т.д. все взависимости от настроек.
Я дак в прошлом году под Альтом пользовался этой системой, но сейчас понял что 
autofs - лучше 8-|

а вот и REDME к нему :
""""""""""""""""""""""""""""""
                  autorun - cdrom mounter for the lazy user
                 ============================================

autorun automagically recognises all available CDROMs in your system,
mounts them upon insertion and executes a possible 'autorun' executable on the
CD. To allow an ordinary user to do this you have to add the options
user,exec in /etc/fstab to the CDROMs you want to use.

You may also use Autorun.kdelnk for KDE. Just place it in your Autostart
folder.

Read the `INSTALL' file for generic informations on installing this
program.

You may specify some default things at compile time by defining:

- AUTORUN_PATH ("/autorun") for another default autorun executable

- AUDIOCD_PLAYER ("/opt/kde/bin/kscd") for another default
        audio cd playing program

- NOTIFY_PATH ("/opt/kde/bin/kfmclient refreshDesktop") to refresh
        the CDROM icon's status for KDE, if s.th. changes

- CHECK_INTERVAL (1000000) for another default check interval (in usec)

- KDEDIR ("/opt/kde") the kde base dir, used to install a autorun.kdelnk

Harald Hoyer <Harald.Hoyer@RedHat.de>
""""""""""""""""""""""""""""""""""

-- 
Canis Cerberus
Magna est veritas et praevalebit !
A1000/KT333/256DDR/MatroxG450/Barracuda80Gb/Teac552/SBLive!/SJ3500c/DJ3820/SL45i
Санкт-Петербург


  parent reply	other threads:[~2003-11-14 12:08 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-13 15:31 Slava Dubrovskiy
2003-11-13 16:50 ` Alex Yustasov
2003-11-14  7:36   ` Slava Dubrovskiy
2003-11-14  7:41     ` Korshunov Ilya
2003-11-14  8:02       ` Slava Dubrovskiy
2003-11-14  8:15         ` Korshunov Ilya
2003-11-14  8:08       ` Sergey S. Skulachenko
2003-11-14  8:41         ` Slava Dubrovskiy
2003-11-14  8:46           ` Korshunov Ilya
2003-11-14  9:03             ` Sergey Vlasov
2003-11-14  9:13               ` Korshunov Ilya
2003-11-14  9:20                 ` Sergey Vlasov
2003-11-14  9:32                   ` Korshunov Ilya
2003-11-14  8:02     ` Roman Savelyev
2003-11-14  8:35     ` Andrey Golovin
2003-11-14  8:52       ` Slava Dubrovskiy
2003-11-14  9:07         ` Andrey Golovin
2003-11-14  9:26           ` Slava Dubrovskiy
2003-11-14  9:39             ` Andrey Golovin
2003-11-14 10:31           ` Max A Mazin
2003-11-14 10:47             ` Andrey Golovin
2003-11-14 10:58               ` Max A Mazin
2003-11-14 12:51                 ` Roman Savelyev
2003-11-14 13:00                   ` Aleksey Novodvorsky
2003-11-14 13:33                     ` Sergey V Turchin
2003-11-14 14:11                       ` Sergey S. Skulachenko
2003-11-14 14:17                         ` Sergey V Turchin
2003-11-14 14:24                         ` Roman Savelyev
2003-11-14 15:05                           ` Sergey S. Skulachenko
2003-11-14 15:16                             ` Roman Savelyev
2003-11-14 14:07                     ` Slava Dubrovskiy
2003-11-14 14:19                       ` Sergey V Turchin
2003-11-14 14:20                       ` Sergey S. Skulachenko
2003-11-14 10:55             ` Sergey Vlasov
2003-11-14  9:18         ` Roman Savelyev
2003-11-14  9:03       ` Roman Savelyev
2003-11-14  9:12         ` Andrey Golovin
2003-11-14  9:32           ` Roman Savelyev
2003-11-14 11:03             ` Andrey Golovin
2003-11-14 12:08           ` Canis Cerberus [this message]
2003-11-13 19:13 ` Sergey Kuznetsov
2003-11-14 10:57   ` Sergey Vlasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311141508.04921.altlinux@nm.ru \
    --to=altlinux@nm.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git