The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"ntfs + русский"
Вариант для распечатки Архивированная нить - только для чтения! 
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(ok) on 23-Сен-04, 21:50  (MSK)
создаю нтфс на партиции, монтирую ее, но после создания какой-либо
диры/файла с русским названием я ее не вижу, хотя реально она там есть:

packetstorm linux # mkntfs -Q -v /dev/sda1
mkntfs v1.9.2
Creating NTFS volume structures.
Creating root directory (mft record 5)
Creating $MFT (mft record 0)
Creating $MFTMirr (mft record 1)
Creating $LogFile (mft record 2)
Creating $Volume (mft record 3)
Setting the volume dirty so check disk runs on next reboot into Windows.
Creating $AttrDef (mft record 4)
Creating $Bitmap (mft record 6)
Creating $Boot (mft record 7)

Beginning bootsector check...
Calculating bootsector checksum... OK
Checking OEMid... OK
Checking bytes per sector... OK
Checking sectors per cluster... OK
Checking cluster size... OK
Checking reserved fields are zero... OK
Checking clusters per mft record... OK
Checking clusters per index block... OK
Bootsector check completed successfully.
Creating backup boot sector.
Creating $BadClus (mft record 8)
Creating $Quota (mft record 9)
Creating $UpCase (mft record 0xa)
Creating system file (mft record 0xb)
Creating system file (mft record 0xc)
Creating system file (mft record 0xd)
Creating system file (mft record 0xe)
Creating system file (mft record 0xf)
Syncing root directory index record.
Syncing $Bitmap.
Syncing $MFT.
Updating $MFTMirr.
Syncing device.
mkntfs completed successfully. Have a nice day.
packetstorm linux #

packetstorm linux # mount /dev/sda1 /mnt/md/
packetstorm linux # ls -la /mnt/md/
total 1
drwx------   1 root root 4096 Сен 23 11:42 .
drwxr-xr-x  13 root root  336 Сен 21 10:06 ..
packetstorm linux #

packetstorm linux # mkdir /mnt/md/hello
packetstorm linux # mkdir /mnt/md/привет
packetstorm linux # ls -la /mnt/md/
total 1
drwx------   1 root root 4096 Сен 23 11:42 .
drwxr-xr-x  13 root root  336 Сен 21 10:06 ..
drwx------   1 root root    0 Сен 23 11:44 hello
packetstorm linux #

packetstorm linux # mkdir /mnt/md/привет
mkdir: cannot create directory `/mnt/md/привет': File exists
packetstorm linux #


в чем может быть трабла?

  Рекомендовать в FAQ | Cообщить модератору | Наверх

 Оглавление

Индекс форумов | Темы | Пред. тема | След. тема
Сообщения по теме

1. "ntfs + русский"
Сообщение от quaker Искать по авторуВ закладки(??) on 24-Сен-04, 10:52  (MSK)

Тебе нужно указать кодировку монтируемой FS.
На своей ОС (ASPLinux9) я ето делаю так
mount -t ntfs -o nls=cp1251 /dev/hda3 /mnt/nt
или
mount -t ntfs -o iocharset=cp1251 /dev/hda3 /mnt/nt
Второй вариант работает но система ругается на какуето хрень (какую не помню)

P.S read man (man mount)

  Рекомендовать в FAQ | Cообщить модератору | Наверх

2. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(ok) on 24-Сен-04, 13:19  (MSK)
не не помогло, тестил уже
к томуже для нтфс в маунте нет опции nls


Mount options for ntfs
       iocharset=name
              Character  set  to  use when returning file names.  Unlike VFAT,
              NTFS suppresses names that contain unconvertible characters.

       utf8   Use UTF-8 for converting file names.

       uni_xlate=[0|1|2]
              For 0 (or `no' or `false'), do  not  use  escape  sequences  for
              unknown  Unicode  characters.   For 1 (or `yes' or `true') or 2,
              use vfat-style 4-byte escape sequences starting with ":". Here 2
              give  a  little-endian  encoding  and  1 a byteswapped bigendian
              encoding.

       posix=[0|1]
              If enabled (posix=1),  the  file  system  distinguishes  between
              upper  and lower case. The 8.3 alias names are presented as hard
              links instead of being suppressed.

       posix=[0|1]
              If enabled (posix=1),  the  file  system  distinguishes  between
              upper  and lower case. The 8.3 alias names are presented as hard
              links instead of being suppressed.

       uid=value, gid=value and umask=value
              Set the file permission on the filesystem.  The umask  value  is
              given in octal.  By default, the files are owned by root and not
              readable by somebody else.

  Рекомендовать в FAQ | Cообщить модератору | Наверх

3. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:28  (MSK)
utf8=yes
  Рекомендовать в FAQ | Cообщить модератору | Наверх

4. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(ok) on 24-Сен-04, 13:32  (MSK)
>utf8=yes


все бы хорошо, да вот только локаль у меня cp1251
хотя это ед.способ после которого я наконец-то увижел файлы с русским названием, но отобржаются они вот так примерно
`ïðèâåò'

  Рекомендовать в FAQ | Cообщить модератору | Наверх

5. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:45  (MSK)
>все бы хорошо, да вот только локаль у меня cp1251
Буду вредным: надо читать "рекомендации" внизу страницы - потому как не телепаты мы ;)

iocharset=cp1251,utf8=yes

  Рекомендовать в FAQ | Cообщить модератору | Наверх

6. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:49  (MSK)
>>все бы хорошо, да вот только локаль у меня cp1251
>Буду вредным: надо читать "рекомендации" внизу страницы - потому как не телепаты
>мы ;)
>
>iocharset=cp1251,utf8=yes


или если не помогло, то
iocharset=cp866,utf8=yes

точно не скажу, т.к. никогда локасль cp1251 не имел...
на локали UTF8 достаточно
utf8=yes

на локали KOI8-R
iocharset=cp866,utf8=yes

в общем, направление поисков должно быть понятно. И еще: самая последняя дока по опциям монтирования доступна в /usr/src/linux/Documentation/filesystems/ntfs.txt

  Рекомендовать в FAQ | Cообщить модератору | Наверх

7. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(ok) on 24-Сен-04, 13:49  (MSK)
он отказывается выполнять 2е эти ф-ии

packetstorm ~ # mount -t ntfs /dev/sda1 /mnt/md/ -o iocharset=cp1251,utf8=yes
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems
packetstorm ~ #

так же как и при неправильных коммандах ругается

а вообще разве моя локаль
packetstorm ~ # locale
LANG=ru_RU.cp1251
LC_CTYPE="ru_RU.cp1251"
LC_NUMERIC=POSIX
LC_TIME="ru_RU.cp1251"
LC_COLLATE="ru_RU.cp1251"
LC_MONETARY="ru_RU.cp1251"
LC_MESSAGES=POSIX
LC_PAPER="ru_RU.cp1251"
LC_NAME="ru_RU.cp1251"
LC_ADDRESS="ru_RU.cp1251"
LC_TELEPHONE="ru_RU.cp1251"
LC_MEASUREMENT="ru_RU.cp1251"
LC_IDENTIFICATION="ru_RU.cp1251"
LC_ALL=
packetstorm ~ #

не дает эффекта iocharset'a=cp1251

  Рекомендовать в FAQ | Cообщить модератору | Наверх

8. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:51  (MSK)
ну тогда уж и версию ядра написал бы...

в последних ядрах
iocharset=name          Deprecated option.  Still supported but please use
                        nls=name in the future.  See description for nls=name.

nls=name                Character set to use when returning file names.
                        Unlike VFAT, NTFS suppresses names that contain
                        unconvertible characters.  Note that most character
                        sets contain insufficient characters to represent all
                        possible Unicode characters that can exist on NTFS.
                        To be sure you are not missing any files, you are
                        advised to use nls=utf8 which is capable of
                        representing all Unicode characters.

utf8=<bool>             Option no longer supported.  Currently mapped to
                        nls=utf8 but please use nls=utf8 in the future and
                        make sure utf8 is compiled either as module or into
                        the kernel.  See description for nls=name.

т.е. ковыряться надо с nls=

  Рекомендовать в FAQ | Cообщить модератору | Наверх

9. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:54  (MSK)
да, кстати, с опцией nls=utf8 (или utf8=yes) все должно работать, просто ты создавал файл с русскими именами, пока фс была смонтирована без этих опций, а смотреть пытаешься с ними. Т.е. смонтируй с nls=utf8 создай файл/каталог и посмотри...
  Рекомендовать в FAQ | Cообщить модератору | Наверх

10. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(ok) on 24-Сен-04, 13:54  (MSK)
вот все что может мой маент для 2.4 ядра

Mount options for ntfs
       iocharset=name
              Character  set  to  use when returning file names.  Unlike VFAT,
              NTFS suppresses names that contain unconvertible characters.

       utf8   Use UTF-8 for converting file names.

       uni_xlate=[0|1|2]
              For 0 (or `no' or `false'), do  not  use  escape  sequences  for
              unknown  Unicode  characters.   For 1 (or `yes' or `true') or 2,
              use vfat-style 4-byte escape sequences starting with ":". Here 2
              give  a  little-endian  encoding  and  1 a byteswapped bigendian
              encoding.

       posix=[0|1]
              If enabled (posix=1),  the  file  system  distinguishes  between
              upper  and lower case. The 8.3 alias names are presented as hard
              links instead of being suppressed.

       posix=[0|1]
              If enabled (posix=1),  the  file  system  distinguishes  between
              upper  and lower case. The 8.3 alias names are presented as hard
              links instead of being suppressed.

       uid=value, gid=value and umask=value
              Set the file permission on the filesystem.  The umask  value  is
              given in octal.  By default, the files are owned by root and not
              readable by somebody else.


никакого nls =(

  Рекомендовать в FAQ | Cообщить модератору | Наверх

11. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:57  (MSK)

utf8=yes - смонтируй с nls=utf8 создай файл/каталог и посмотри...
  Рекомендовать в FAQ | Cообщить модератору | Наверх

12. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 13:58  (MSK)
>
>utf8=yes - смонтируй с nls=utf8 создай файл/каталог и посмотри...


ошибся:
utf8=yes - смонтируй с utf8=yes создай файл/каталог и посмотри...

  Рекомендовать в FAQ | Cообщить модератору | Наверх

13. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 15:29  (MSK)
вот
packetstorm ~ # mkdir /mnt/md/приветик
mkdir: cannot create directory `/mnt/md/приветик': Invalid or incomplete multibyte or wide character
packetstorm ~ #
  Рекомендовать в FAQ | Cообщить модератору | Наверх

14. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 16:15  (MSK)
>вот
>packetstorm ~ # mkdir /mnt/md/приветик
>mkdir: cannot create directory `/mnt/md/приветик': Invalid or incomplete multibyte or wide character
>
>packetstorm ~ #

Похоже, что в твоем случае iocharset обязателен
iocharset=cp1251,utf8=yes

  Рекомендовать в FAQ | Cообщить модератору | Наверх

15. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 16:17  (MSK)

см. тред выше
packetstorm ~ # mount -t ntfs /dev/sda1 /mnt/md/ -o iocharset=cp1251,utf8=yes
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems
packetstorm ~ #

  Рекомендовать в FAQ | Cообщить модератору | Наверх

16. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 16:22  (MSK)
>
>
>см. тред выше
>packetstorm ~ # mount -t ntfs /dev/sda1 /mnt/md/ -o iocharset=cp1251,utf8=yes
>mount: wrong fs type, bad option, bad superblock on /dev/sda1,
>       or too many mounted file
>systems
>packetstorm ~ #


а вообще опция iocharset работает? Например, iocharset=koi8-r

  Рекомендовать в FAQ | Cообщить модератору | Наверх

17. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 16:24  (MSK)
по отдельности обе работают
  Рекомендовать в FAQ | Cообщить модератору | Наверх

18. "ntfs + русский"
Сообщение от Jogn Искать по авторуВ закладки on 24-Сен-04, 16:25  (MSK)
>по отдельности обе работают


обе - это iocharset=cp1251 и utf8=yes?

  Рекомендовать в FAQ | Cообщить модератору | Наверх

19. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 16:27  (MSK)
да


  Рекомендовать в FAQ | Cообщить модератору | Наверх

20. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 16:30  (MSK)
вот пример:
packetstorm ~ # mkreiserfs /dev/sda1
mkreiserfs 3.6.18 (2003 www.namesys.com)

A pair of credits:
Jeremy  Fitzhardinge  wrote  the  teahash.c  code  for  V3.  Colin  Plumb  also
contributed to that.

Vladimir Saveliev started as the most junior programmer on the team, and became
the lead programmer.  He is now an experienced highly productive programmer. He
wrote the extent  handling code for Reiser4,  plus parts of  the balancing code
and file write and file read.


Guessing about desired format.. Kernel 2.4.27-grsec-2.0.1 is running.
Format 3.6 with standard journal
Count of blocks on the device: 10007536
Number of blocks consumed by mkreiserfs formatting process: 8517
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 2bd157cd-61de-4337-b991-9162cde0de96
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
        ALL DATA WILL BE LOST ON '/dev/sda1'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok

Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.

ReiserFS is successfully created on /dev/sda1.
packetstorm ~ #


packetstorm ~ # mount /dev/sda1 /mnt/md/
mount: you must specify the filesystem type
packetstorm ~ # mkdir /mnt/md/one
packetstorm ~ # mkdir /mnt/md/один
packetstorm ~ # ls -la /mnt/md/
total 2
drwxr-xr-x   4 devol root  96 Сен 24 16:34 .
drwxr-xr-x  13 root  root 336 Сен 21 10:06 ..
drwxr-xr-x   2 root  root  48 Сен 24 16:34 one
drwxr-xr-x   2 root  root  48 Сен 24 16:34 один
packetstorm ~ #

  Рекомендовать в FAQ | Cообщить модератору | Наверх

21. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 16:31  (MSK)
>да

откуда mkntfs и какие есть опции создания фс?
по идее с utf8=yes должно все работать. Может необходима опция при создании фс?

  Рекомендовать в FAQ | Cообщить модератору | Наверх

22. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 16:34  (MSK)
packetstorm ~ # esearch ntfsprogs
[ Results for search key : ntfsprogs ]
[ Applications found : 1 ]

*  sys-fs/ntfsprogs
      Latest version available: 1.9.2
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 640 kB
      Homepage:    http://linux-ntfs.sourceforge.net/
      Description: User tools for NTFS filesystems
      License:     GPL-2


packetstorm ~ #


packetstorm ~ # mkntfs --help
mkntfs v1.9.2
mkntfs: invalid option -- -
Copyright (c) 2000-2004 Anton Altaparmakov
Copyright (c) 2001-2003 Richard Russon
Create an NTFS volume on a user specified (block) device.
Usage: mkntfs [options] device [number-of-sectors]
    -s sector-size           Specify the sector size for the device
    -p part-start-sect       Specify the partition start sector
    -H heads                 Specify the number of heads
    -S sectors-per-track     Specify the number of sectors per track
    -c cluster-size          Specify the cluster size for the volume
    -L volume-label          Set the volume label
    -z mft-zone-multiplier   Set the MFT zone multiplier
    -f                       Perform a quick format
    -Q                       Perform a quick format
    -C                       Enable compression on the volume
    -I                       Disable indexing on the volume
    -n                       Do not write to disk
    -F                       Force execution despite errors
    -q                       Quiet execution
    -v                       Verbose execution
    -vv                      Very verbose execution
    -V                       Display version information
    -l                       Display licensing information
    -h                       Display this help
Please report bugs to linux-ntfs-dev@lists.sourceforge.net
Linux NTFS homepage: http://linux-ntfs.sourceforge.net
packetstorm ~ #


по идее мне придется менять локаль, но я этого делать не собираюсь
никаких таких опция я не нашел

  Рекомендовать в FAQ | Cообщить модератору | Наверх

23. "ntfs + русский"
Сообщение от John Искать по авторуВ закладки(??) on 24-Сен-04, 16:43  (MSK)

Если есть желание/возможность, попробуй создать фс из под винды, а потом смонтируй с опцией utf8=yes или, если не поможет, iocharset=cp1251,utf8=yes

У меня с utf8=yes прекрасно работает с томами ntfs созданными из винды (FC2, kernel-2.6.8.1, LANG=ru_RU.UTF-8), но работало и раньше (RH 7.0-7.3, kernel-2.4, LANG=ru_RU.KOI8-R iocharset=koi8-r,utf8=yes) и (RH 8.0-9, kernel-2.4 - 2.6, LANG=ru_RU.UTF-8 utf8=yes)

  Рекомендовать в FAQ | Cообщить модератору | Наверх

24. "ntfs + русский"
Сообщение от devol emailИскать по авторуВ закладки(??) on 24-Сен-04, 16:45  (MSK)
к сожалению нету такой возожности
винды ниукого нету поблизости =(
  Рекомендовать в FAQ | Cообщить модератору | Наверх


Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Пожалуйста, прежде чем написать сообщение, ознакомьтесь с данными рекомендациями.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру