From: "Алексей Сидоров" <alex@reutman.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Возвращение на ALT
Date: Tue, 05 Dec 2006 20:06:15 +0300
Message-ID: <4575A707.6000009@reutman.ru> (raw)
In-Reply-To: <E1GrYFu-000NV3-00.easter1980-mail-ru@f12.mail.ru>
Павел Крупин пишет:
>>> А поделитесь секретом, как вам это удается? %) А то у меня два ipod'а. И все время приходится руками в fstab менять их имен и прочая. Дистрибутив ALC 3.0 локаль utf-8.
>
>> Поколдовать с политиками HAL?
> А как с ним обычно колдуют? %)
> Я бы не прочь. Но не знаю вобще, что это. Понимаю, что это какие-то более новые вещи типа kudzu.
>
Читаем здесь: http://wiki.sisyphus.ru/admin/IvmanAutomount, но ivman сразу выкидываем
Смотрим /usr/share/hal/fdi/policy/, это так, для ознакомления чего к чему, делать будем по образу и подобию...
Создаём в /etc/hal/fdi/policy какой-нибудь файл (возможно должно быть расширение .fdi), и пишем туда что, как и куда монтировать.
Не забываем устройства, которые монтируем через hal вынести из fstab
все параметры, по которым будем определять устройства (то, что будем писать в match, а также в merge) - смотрим по комманде hal-device
ещё кое-что можно посмотреть здесь: http://lists.altlinux.org/pipermail/sisyphus/2005-February/053948.html
вот собственно я изложил что сам понял. а может и не понял, но у меня работает :)
Для примера прилагаю свой конфиг(файл /etc/hal/fdi/policy/10-my.fdi)
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- Все fat монтируем в cp1251. Но это у меня локаль cp1251, если локаль другая, то возможно и монтировать надо в другой iocharset -->
<match key="volume.fstype" string="vfat">
<merge key="volume.policy.mount_option.iocharset" type="string">cp1251</merge>
<merge key="volume.policy.mount_option.codepage" type="string">866</merge>
</match>
<match key="volume.disc.type" string="cd_rom">
<match key="volume.fstype" string="iso9660">
<!-- Все cdrom'ы монтируем в cp1251 -->
<merge key="volume.policy.mount_option.iocharset" type="string">cp1251</merge>
</match>
<!-- Все cdrom'ы монтируем в /media/cdrom -->
<merge key="volume.policy.desired_mount_point" type="string">cdrom</merge>
</match>
<!-- Моя флэшка -->
<match key="volume.uuid" string="044D-20CD">
<!-- мою флэшку монтируем в /media/FLASH -->
<merge key="volume.policy.desired_mount_point" type="string">FLASH</merge>
</match>
<!-- Мой фотик -->
<match key="volume.label" string="KONIKA">
<match key="@info.parent:info.product" string="DiMAGE E50">
<!-- мой фотик монтируем в /media/KONICA -->
<merge key="volume.policy.desired_mount_point" type="string">KONICA</merge>
</match>
</match>
<!-- Мамкин фотик -->
<match key="@info.parent:info.product" string="Optio E10">
<match key="@info.parent:info.vendor" string="PENTAX">
<!-- а мамкин фотик монтируем в /media/PENTAX -->
<merge key="volume.policy.desired_mount_point" type="string">PENTAX</merge>
</match>
</match>
</device>
</deviceinfo>
</device>
--
С уважением, Алексей Сидоров
mailto:alex@reutman.ru
JID: alex@reutman.ru
ICQ: 5052225
parent reply other threads:[~2006-12-05 17:06 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <E1GrYFu-000NV3-00.easter1980-mail-ru@f12.mail.ru>]
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=4575A707.6000009@reutman.ru \
--to=alex@reutman.ru \
--cc=community@lists.altlinux.org \
/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