ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Chernetskyy Olexander" <archer@elec.com.ua>
To: community@lists.altlinux.org
Subject: [Comm] mount CD with russian file names under UTF8 locale
Date: Thu, 14 Dec 2006 16:01:27 +0300 (MSK)
Message-ID: <20061214130127.2A46F2097BAC@mail.elec.ru> (raw)

Такая проблем.
OS=ALC_3.0.4; локаль=UTF8; автомонтирование CD.

Русские имена файлов - какие угодно только не русские. В МС - знаки ворпроса, в конкере - квадратики.

В fstab дописываю iocharcet=utf8. Не помогает.
Нахожу документ "Обобщающий протокол ошибок ALTLinux3.0" и читаю там, что для счастья нужно править файлы в /etc/hal/fdi/policy. Добавляю указанную строку (<merge key="storage.policy.mount_option.iocharset" type="string">utf8</merge>)  - никаких изменений.


ПРИЧЕМ магазинские диски отображаются нормально, а те которые я прожигал сам еще на альте 2.0. 2.2, 2.3, 2.4 разными способами - и из консоли (mkisofs+cdrecord) и k3b - как отрезало. Раньше всегда все русские имена отображались нормально и под альтом, и под вражеской системой. 
 
Вообщем ЧТО Я ДЕЛАЮ НЕ ТАК?
-------------------
Вот строка из fstab:
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,nosuid,nodev,noexec,mode=0444,iocharset=utf8 0 0
-------------------
Вот /etc/hal/fdi/policy/01-charset.fdi

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

  <device>
    <match key="volume.policy.should_mount" bool="true">
      <match key="@block.storage_device:storage.policy.should_mount" bool="true">
        <match key="volume.fstype" string="vfat">
         <merge key="volume.policy.mount_option.iocharset" type="string">utf8</merge>
         <merge key="volume.policy.mount_option.codepage" type="string">866</merge>
        </match>
      </match>
    </match>
    <match key="storage.policy.should_mount" bool="true">
      <match key="storage.no_partitions_hint" bool="true">
        <match key="storage.drive_type" string="cdrom">
            <merge key="storage.policy.mount_option.utf8" type="bool">true</merge>
            <merge key="storage.policy.mount_option.iocharset" type="string">utf8</merge>
        </match>
      </match>
    </match>
  </device>

</deviceinfo>

-------------------
Вот /etc/hal/fdi/policy/91-mount-subfs.fdi
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

  <device>
    <match key="volume.policy.should_mount" bool="true">
      <match key="@block.storage_device:storage.policy.should_mount" bool="true">
        <merge key="volume.policy.mount_filesystem" type="string">subfs</merge>
        <merge key="volume.policy.mount_option.fs" type="copy_property">volume.fstype</merge>
        <append key="info.callouts.add" type="strlist">mount-hal-fs</append>
        <prepend key="info.callouts.remove" type="strlist">mount-hal-fs</prepend>
      </match>
    </match>

    <match key="storage.policy.should_mount" bool="true">
      <match key="storage.no_partitions_hint" bool="true">
        <!-- disabling unmount for mounted subfs, storage only -->
        <merge key="storage.policy.disable_force_umount" type="bool">true</merge>

        <merge key="storage.policy.mount_filesystem" type="string">subfs</merge>
        <match key="storage.drive_type" string="cdrom">
            <merge key="storage.policy.mount_option.fs" type="string">cdfss</merge>
            <merge key="storage.policy.mount_option.iocharset" type="string">utf8</merge>
        </match>
        <match key="storage.drive_type" string="floppy">
            <merge key="storage.policy.mount_option.fs" type="string">floppyfss</merge>
        </match>
        <match key="storage.drive_type" string="zip">
            <merge key="storage.policy.mount_option.fs" type="string">floppyfss</merge>
        </match>

        <match key="storage.drive_type" string="jaz">
            <merge key="storage.policy.mount_option.fs" type="string">floppyfss</merge>
        </match>

        <append key="info.callouts.add" type="strlist">mount-hal-fs</append>
        <prepend key="info.callouts.remove" type="strlist">mount-hal-fs</prepend>
      </match>
    </match>
  </device>

</deviceinfo>
-------------------

Помогите советом.
Заранее благодарен за ответ.

--
Best regards,
ArCher



             reply	other threads:[~2006-12-14 13:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14 13:01 Chernetskyy Olexander [this message]
2006-12-14 13:03 ` Alexey Morsov
2006-12-14 14:05 ` Sergey Pavlov
2006-12-16 23:14 ` Olvin

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=20061214130127.2A46F2097BAC@mail.elec.ru \
    --to=archer@elec.com.ua \
    --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