Чтение-запись NTFS с использованием драйвера ntfs-3g в Debian.
обавляем backports в список доступных репозиториев:
$ sudo vi /etc/apt/source.listи вставляем
deb http://www.backports.org/debian sarge-backports mainЗагружаем и добавляем ключи:
$sudo wget -O - http://backports.org/debian/archive.key | sudo apt-key add -Обновляем список репозиториев и устанавливаем NTFS-3g:
$ sudo apt-get updateМонтируем:
$ sudo apt-get install ntfs-3g
$ sudo mount -t ntfs-3g /dev/sda1 /mnt/win -o umask=0Убедившись в том, что все работает правильно, запись можно добавить в файл /etc/fstab:
$sudo vi /etc/fstabдобавляем:
/dev/sda1 /mnt/win ntfs-3g umask=0,nls=ваша_локаль 0 0
Комментарии
в системе 4 диска
создал закомментированные записи
#/dev/sda1 /mnt/win ntfs-3g umask=0,nls= LANG=ru_RU.UTF-8 0 0
(и подобные для всех дисков)
а также все необходимые пути для монтирования.
проверил командами
#mount /dev/sda1
#ls -l /mnt/sda1
убедился что видны русские имена файлов и раскомментировал все записи...
да, забыл сказать
при монтировании пишет:
# mount /mnt/sdc1
[mntent]: warning: no final newline at the end of /etc/fstab
WARNING: Deficient Linux kernel detected. Some driver features are
not available (swap file on NTFS, boot from NTFS by LILO), and
unmount is not safe unless it's made sure the ntfs-3g process
naturally terminates after calling 'umount'. If you wish this
message to disappear then you should upgrade to at least kernel
version 2.6.20, or request help from your distribution to fix
the kernel problem. The below web page has more information:
http://ntfs-3g.org/support.html#fuse26
сейчас времени с этим разбираться нет.
размонтировал все разделы, выключаю комп и надеюсь что завтра когда включу всё будет ОК...
У меня вот такие строки в fstab:
/dev/sda1 /mnt/win_c ntfs-3g umask=0,nls=utf8 0 0
Mount is denied because the NTFS journal file is unclean. Choices are:
A) Shutdown Windows properly.
B) Click the 'Safely Remove Hardware' icon in the Windows taskbar
notification area before disconnecting the device.
C) Use 'Eject' from Windows Explorer to safely remove the device.
D) If you ran chkdsk previously then boot Windows again which will
automatically initialize the journal.
E) Run 'ntfsfix' on Linux which will reset the NTFS journal.
F) Mount the volume read-only by using the 'ro' mount option.
вот что пишет. Помогите плз решить
[url=http://tapikort.ru/]структура социологии[/url]