FreeNAS 8.2 RELEASE p1 import NTFS with data problem

Status
Not open for further replies.

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
Hello everyone!

I was using FreeNAS 7 with imported NTFS volume which contain russian named folders and files and everything was going good.
When I install FreeNAS 8.2 RELEASE and import my NTFS all my russian named folders and files are disappeared! I stop FreeNAS 8 and check out my disk on windows and all files and folders are on disk! So I check out my CIFS config(I was reading that I should use CP866 codepage in CIFS) and it's correct!
I also try the fork NAS4Free and all my russian files and folders are looks good!
So, it seems like something was exclude from the installation pack or maybe I am wrong?!
I try to create ZFS volume and copy their russian named folders, their is no problem with disappearing!
So, as I understand it's something wrong with NTFS import!

Can someone help me within this? How to solve this?
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
Seems like a bug... try mount using CLI and set the codepage...

I'm not so gut in freeBSD, but as I understand I should use shell command mount?
some kinde like that: mount_ntfs cp866 /dev/hdd_ntfs /mnt/name

please correct me
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Try:

ntfs-3g -o locale=cp866 /dev/hdd_ntfs /mnt/name

OR

mount_ntfs -C cp866 /dev/hdd_ntfs /mnt/name
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
Try:

ntfs-3g -o locale=cp866 /dev/hdd_ntfs /mnt/name

OR

mount_ntfs -C cp866 /dev/hdd_ntfs /mnt/name

I have tried both ways:
when I try ntfs-3g it looks like that:
login as: root
root@192.168.0.8's password:
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD 8.2-RELEASE-p9 (FREENAS.i386) #0: Thu Jul 19 16:02:19 PDT 2012

FreeNAS (c) 2009-2012, The FreeNAS Development Team
All rights reserved.
FreeNAS is released under the modified BSD license.

For more information, documentation, help or support, go here:
http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# mount
/dev/ufs/FreeNASs1a on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /mnt (ufs, local)
/dev/md2 on /var (ufs, local)
/dev/ufs/FreeNASs4 on /data (ufs, local, noatime, soft-updates)
[root@freenas] /# mkdir /mnt/HP_HDD
[root@freenas] /# cd /mnt
[root@freenas] /mnt# ls -i
2 ./ 2 ../ 3 .snap/ 80 HP_HDD/ 4 md_size
[root@freenas] /mnt# ntfs-3g -o cp866 /dev/da0s1 /mnt/HP_HDD
[root@freenas] /mnt# mount
/dev/ufs/FreeNASs1a on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /mnt (ufs, local)
/dev/md2 on /var (ufs, local)
/dev/ufs/FreeNASs4 on /data (ufs, local, noatime, soft-updates)
/dev/fuse0 on /mnt/HP_HDD (fusefs, local, synchronous)

at the same time freeNAS log shows:
Jul 28 22:40:54 freenas ntfs-3g[7691]: Version 2011.4.12 external FUSE 27
Jul 28 22:40:54 freenas ntfs-3g[7691]: Mounted /dev/da0s1 (Read-Write, label "HP_HDD", NTFS 3.1)
Jul 28 22:40:54 freenas ntfs-3g[7691]: Cmdline options: cp866
Jul 28 22:40:54 freenas ntfs-3g[7691]: Mount options: cp866,allow_other,nonempty,atime,fsname=/dev/da0s1
Jul 28 22:40:54 freenas ntfs-3g[7691]: Ownership and permissions disabled, configuration type 1

then I try to create windows share and their I dont see the path, so I write down it by hand click OK and receive message:
The path must reside within a volume mount point

Have I done something wrong?

so, I try the second way and I become error message:
[root@freenas] /mnt# umount /mnt/HP_HDD ## in hear freeNAS log shows: Jul 28 22:50:47 freenas ntfs-3g[7691]: Unmounting /dev/da0s1 (HP_HDD)
[root@freenas] /mnt# mount
/dev/ufs/FreeNASs1a on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /mnt (ufs, local)
/dev/md2 on /var (ufs, local)
/dev/ufs/FreeNASs4 on /data (ufs, local, noatime, soft-updates)
[root@freenas] /mnt# mount_ntfs -C cp866 /dev/da0s1 /mnt/HP_HDD
You must specify exactly one device and exactly one mount point.

I find out third way:
http://hotfreebsd.ru/druzhba-navek-prikruchivaem-ntfs-k-freebsd/

I have tried to change /etc/login.conf as described, but helpless!

Any ideas?
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
I have compare login.conf from nas4free and freenas 8.2 and their is no difference!
that's means that something was exclude from freenas 8.2, maybe font or something else

Guys, maybe someone have an idea?
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
Hi William!

Finally I find out the way!!!
First of all we need to mount ntfs disk by hand(using ssh or shell, I using shell):
mkdir /mnt/you_disk_name
ntfs-3g /dev/daXsX /mnt/you_disk_name -o locate=ru_RU.UTF-8
After that we have to import this disk using web gui!!! with the same name you_disk_name!!!
Then we just making share and enjoy!

BUT it has one problem: rebooting. After reboot everything is going back! and we have to do everything from the beginning by hand!
And my question is: can we change default mount command for ntfs disks whithin "ntfs-3g /dev/daXsX /mnt/you_disk_name -o locate=ru_RU.UTF-8"? If yes then how? because when I've tried last time change some .conf files I can't do that! even root don't have enough permission to change it!

Thanks in advance!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You shouldn't be trying to use NTFS on FreeNAS except to migrate data. NTFS support is "iffy".
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
noobsauce80

I can't use zfs(ufs, etc) within this hdd because it's external usb drive that I use in different places, that's why I need it in the ntfs!
What is it "iffy", what did you meant? You mean just ntfs in freeBSD? or something else?
Maybe you know how can I make mounting for this drive automatic(I mean using ntfs-3g, as I'd described, instead of built in mount)?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
What I mean is NTFS support in FreeBSD isn't great. It's reliable enough to use to migrate data but not recommended for daily use. The forum has lots of examples of people that have had problems with NTFS in FreeBSD.
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
I see, but I don't have a choice.

So, if you don't know I'll tryout to find the way, and as I described in the top of the tread, the main problem for me with ntfs is not to mount it but cyrillic characters(russian named files and folders)! I can say that this problem appears only in FreeNAS 8! In FreeNAS 7 and NAS4Free their are no such problem!

If I find the way I'll post it heir.
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
So, finally I find out the way!

Start from the beginning:

1. mount your device using GUI.
2. using shell(ssh it depends on you) type:
su
mount -uw /
ee /etc/login.conf

In here change KOI8-R within UTF-8 in the Russian User Account section, save you changes.
3. type:
cp /etc/login.conf /conf/base/etc/login.conf
ee /etc/fstab

in here you'll find the line
/dev/ntfs/you_device /mnt/you_device_mount_point ntfs rw,late 2 0
or something looks like that, change it within
/dev/ntfs/you_device /mnt/you_device_mount_point ntfs rw,late,locate=ru_RU.UTF-8,mountprog=/usr/local/bin/ntfs-3g 0 0
save you changes.
4. type:
cp /etc/fstab /conf/base/etc/fstab
mount -ur /
exit
exit

5. reboot you system. after rebooting log will show you:

freenas ntfs-3g[1509]: Version 2011.4.12 external FUSE 27
freenas ntfs-3g[1509]: Mounted /dev/ntfs/you_device (Read-Write, label "you_device_mount_point", NTFS 3.1)
freenas ntfs-3g[1509]: Cmdline options: rw,locale=ru_RU.UTF-8
freenas ntfs-3g[1509]: Mount options: rw,allow_other,nonempty,atime,fsname=/dev/ntfs/you_device
freenas ntfs-3g[1509]: Ownership and permissions disabled, configuration type 1
freenas ntfs-3g[1512]: Version 2011.4.12 external FUSE 27
freenas ntfs-3g[1512]: Mounted /dev/ntfs/you_device (Read-Write, label "you_device_mount_point", NTFS 3.1)
freenas ntfs-3g[1512]: Cmdline options: rw
freenas ntfs-3g[1512]: Mount options: rw,allow_other,nonempty,atime,fsname=/dev/ntfs/you_device
freenas ntfs-3g[1512]: Ownership and permissions disabled, configuration type 1

This is all you need to do! Enjoy!

P.S. Don't forget about sharing your device. cp866 and utf8

P.P.S.: I think it will be more helpful to post this message in HOWTO section! just mark it for find systems something like: ntfs, problem, charset, russian, cyrillic.

P.P.P.S.: I think it will be helpful not only for cyrillic, but also for languages like Chinese, Italian, Portuguese and so on.
 

uri

Dabbler
Joined
Jul 27, 2012
Messages
20
upd:
it's little bit easier!
just shell and:
~#]su
~#mount -uw /
~#ee /etc/fstab
change the line
/dev/ntfs/you_device /mnt/you_device_mount_point ntfs rw,late 2 0
within
/dev/ntfs/you_device /mnt/you_device_mount_point ntfs rw,late,mountprog=/usr/local/bin/ntfs-3g 0 0
save.
cp /etc/fstab /conf/base/etc/fstab
~#mount -ur /
~#exit
~#]exit

that is all!

but it doesn't work in 8.3.0
 
Status
Not open for further replies.
Top