Страница 1 из 1

FUSE на FreeBSD 10 не рабочая?

Добавлено: 2013-12-13 19:51:13
iZEN
Хочу сделать монтирование флешки с NTFS с возможностью записи на неё (флэшка рабочая, отформатирована под Windows XP). Система FreeBSD 10.0-PRERELEASE.

Ставлю порт /usr/ports/sysutils/fusefs-ntfs, за ним тянутся зависимости и тоже ставятся:

Код: Выделить всё

Installing fusefs-ntfs-2012.1.15... done
==============================================================================

NTFS-3G has been installed, for information, known issues and how to report
bugs see the FreeBSD README:

/usr/local/share/doc/ntfs-3g/README.FreeBSD

Also see the official README (but has some Linux specific parts).

==============================================================================

===>>> Waiting for background 'make clean' processes to finish

===>>> pkg-message for fusefs-libs-2.9.3_1
Install the fuse kernel module to use this port.

===>>> pkg-message for fusefs-ntfs-2012.1.15
==============================================================================

NTFS-3G has been installed, for information, known issues and how to report
bugs see the FreeBSD README:

/usr/local/share/doc/ntfs-3g/README.FreeBSD

Also see the official README (but has some Linux specific parts).

==============================================================================

===>>> Done displaying pkg-message files

===>>> The following actions were performed:
	Installation of devel/libtool (libtool-2.4.2_2)
	Installation of devel/libublio (libublio-20070103)
	Installation of sysutils/fusefs-libs (fusefs-libs-2.9.3_1)
	Installation of sysutils/fusefs-ntfs (fusefs-ntfs-2012.1.15)

===>>> Deleting installed build-only dependencies
Deinstallation has been requested for the following 1 packages:

	libtool-2.4.2_2

The deinstallation will free 2 MB
[1/1] Deleting libtool-2.4.2_2... done

===>>> Exiting
Указываю в /etc/rc.conf fusefs_enable=”YES”, в /etc/sysctl.conf vfs.usermount=1, перезагружаю комп.

После перезагрузки пробую примонтировать:

Код: Выделить всё

% ntfs-3g /dev/da0s1 /mnt
fuse: failed to open fuse device: No such file or directory
Хотя:

Код: Выделить всё

% gpart list da0
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 31490047
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: da0s1
   Mediasize: 16118710272 (15G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 4194304
   Mode: r0w0e0
   rawtype: 7
   length: 16118710272
   offset: 4194304
   type: ntfs
   index: 1
   end: 31490047
   start: 8192
Consumers:
1. Name: da0
   Mediasize: 16122904576 (15G)
   Sectorsize: 512
   Mode: r0w0e0
Среди модулей модуля FUSE нет:

Код: Выделить всё

% kldstat
Id Refs Address            Size     Name
 1   43 0xffffffff80200000 ac0a80   kernel
 2    1 0xffffffff80cc1000 2248c8   zfs.ko
 3    2 0xffffffff80ee6000 5b18     opensolaris.ko
 4    1 0xffffffff80eec000 d2e0     tmpfs.ko
 5    1 0xffffffff80efa000 1128     msdosfs_iconv.ko
 6    2 0xffffffff80efc000 84f0     libiconv.ko
 7    1 0xffffffff81012000 19ef     ums.ko
 8    1 0xffffffff81014000 1260     uhid.ko
 9    1 0xffffffff81016000 291da    pf.ko
10    1 0xffffffff81040000 1410b    nfsserver.ko
11    1 0xffffffff81055000 8c8      nfs_common.ko
12    1 0xffffffff81056000 4faee    radeon.ko
13    1 0xffffffff810a6000 12e8d    drm.ko
Странно...
Запускаю FUSE:

Код: Выделить всё

% /usr/local/etc/rc.d/fusefs start
/usr/local/etc/rc.d/fusefs: Command not found.
Как так?! :shock:

Re: FUSE на FreeBSD 10 не рабочая?

Добавлено: 2013-12-13 20:58:08
iZEN
Подсказали на bsdportal.ru.

Оказывается, с некоторых пор FUSE — часть ядра FreeBSD 10, и модуль fuse.ko подгружается из системного каталога модулей, нужно только прописать fusefs_load="YES" в /boot/loader.conf. В текущем сеансе работы подгрузить вручную:

Код: Выделить всё

% kldload fuse
И смонтировать флэшку:

Код: Выделить всё

% mount_ntfs-3g -o rw,uid=1001,gid=1001,locale=ru_RU.UTF-8 /dev/da0s1 /mnt
Проблема решена!

Re: FUSE на FreeBSD 10 не рабочая?

Добавлено: 2014-03-21 18:58:44
guest
У меня сработало только таким образом:

Код: Выделить всё

ntfs-3g -o rw,uid=1001,gid=1001,locale=ru_RU.UTF-8
Команда же

Код: Выделить всё

mount_ntfs-3g
либо

Код: Выделить всё

mount_ntfs
- not found.

Re: FUSE на FreeBSD 10 не рабочая?

Добавлено: 2014-03-21 19:22:19
iZEN

Код: Выделить всё

> pkg info -x ntfs
fusefs-ntfs-2012.1.15_1

> which mount_ntfs-3g
/usr/sbin/mount_ntfs-3g

> ls /usr/sbin/mount_ntfs-3g
lrwxr-xr-x  1 root  wheel    22B 13 дек 20:03 /usr/sbin/mount_ntfs-3g@ -> /usr/local/bin/ntfs-3g

> mount_ntfs-3g --help

ntfs-3g 2012.1.15 external FUSE 29 - Third Generation NTFS Driver
		Configuration type 1, XATTRS are off, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2011 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), remove_hiberfile, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information:  http://tuxera.com

Re: FUSE на FreeBSD 10 не рабочая?

Добавлено: 2014-03-28 10:39:21
Bayerische
Тоже столкнулся с этим, не запускался fusefs-wdfs.
Долго въехать не мог, что случилось. Гугол привёл сюда.