Solved FreeBSD 11 and NTFS disks mounting trouble

I install FreeBSD 11 and sysutils/fusefs-ntfs, but when I try mount any NTFS partition I receive this message:
Code:
[root@zbsd /dev]# ntfs-3g /dev/ada0s1  /mnt
Error reading bootsector: Invalid argument
Failed to mount '/dev/ada0s1': Invalid argument
The device '/dev/ada0s1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

[root@zbsd /dev]# file -s /dev/ada0s1
/dev/ada0s1: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS  ", sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 2048, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors/track 63, sectors 2929350655, $MFT start cluster 786432, $MFTMirror start cluster 2, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 0447013cb7013c29a; contains Microsoft Windows XP/VISTA bootloader BOOTMGR

[root@zbsd /dev]# uname -a
FreeBSD zbsd 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r296078: Fri Feb 26 18:55:46 IRKT 2016  root@zbsd:/usr/obj/usr/src/sys/zbsd  amd64
[root@zbsd /dev]# kldstat
Id Refs Address  Size  Name
1  39 0xffffffff80200000 f50aa0  kernel
2  1 0xffffffff81152000 2d1670  zfs.ko
3  2 0xffffffff81424000 a398  opensolaris.ko
4  1 0xffffffff8142f000 b67ab0  nvidia.ko
5  2 0xffffffff81f97000 450c0  linux.ko
6  2 0xffffffff81fdd000 7ee8  linux_common.ko
7  1 0xffffffff81fe5000 14dd0  fuse.ko
8  1 0xffffffff82211000 23c7  ums.ko
9  1 0xffffffff82214000 1890  uhid.ko
10  1 0xffffffff82216000 1564  fdescfs.ko
11  1 0xffffffff82218000 23a  msdosfs_iconv.ko
12  1 0xffffffff82219000 322f  libiconv.ko

What wrong?
 
Code:
[root@zbsd /usr/local/lib/browser_plugins]# ntfs-3g -o debug /dev/ada0s1 /mnt
Error reading bootsector: Invalid argument
Failed to mount '/dev/ada0s1': Invalid argument
The device '/dev/ada0s1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
 
Code:
[root@zbsd ~]# ntfs-3g -o debug /dev/ada0s1 /mnt
Error reading bootsector: Invalid argument
Failed to mount '/dev/ada0s1': Invalid argument
The device '/dev/ada0s1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
[root@zbsd ~]#  gpart show ada0
=>  63  2930277105  ada0  MBR  (1.4T)
  63  1985  - free -  (993K)
  2048  2929350656  1  ntfs  [active]  (1.4T)
  2929352704  921600  2  !39  (450M)
  2930274304  2864  - free -  (1.4M)

[root@zbsd ~]# file -s /dev/ada0s1
/dev/ada0s1: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS  ", sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 2048, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors/track 63, sectors 2929350655, $MFT start cluster 786432, $MFTMirror start cluster 2, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 0447013cb7013c29a; contains Microsoft Windows XP/VISTA bootloader BOOTMGR
 
Yes:
Code:
[root@zbsd ~]# fstyp /dev/ada0s1
ntfs
 
Last edited by a moderator:
Today iI connect external USB hard drive with 2 NTFS partition and ntfs-3g mount it without problem:
Code:
[root@zbsd /dev]# gpart show da0
=>  63  976773105  da0  MBR  (466G)
  63  1985  - free -  (993K)
  2048  477184000  1  ntfs  (228G)
  477186048  10240000  - free -  (4.9G)
  487426048  489342976  2  ntfs  (233G)
  976769024  4144  - free -  (2.0M)


[root@zbsd /dev]# ntfs-3g /dev/da0s1 /mnt

[root@zbsd /dev]#
[root@zbsd /]#
[root@zbsd /]# ls -la /mnt
total 76
drwxrwxrwx  1 root  wheel  4096 18 февр. 18:07 .
drwxr-xr-x  19 root  wheel  27  1 марта 07:37 ..
drwxrwxrwx  1 root  wheel  12288  5 февр. 14:07 $RECYCLE.BIN
drwxrwxrwx  1 root  wheel  4096  5 авг.  2015 AIDA64
-rwxrwxrwx  1 root  wheel  6 15 сент.  2011 autorun.inf
drwxrwxrwx  1 root  wheel  4096 18 февр. 14:30 Install
drwxrwxrwx  1 root  wheel  4096  4 февр. 18:44 RECYCLER
drwxrwxrwx  1 root  wheel  4096  4 февр. 18:10 System Volume Information
drwxrwxrwx  1 root  wheel  4096  6 апр.  2015 Tools
drwxrwxrwx  1 root  wheel  0 12 янв.  16:05 zab
[root@zbsd /]# mount
zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
bootpool on /bootpool (zfs, local, nfsv4acls)
zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)
zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/mail on /var/mail (zfs, local, nfsv4acls)
zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot on /zroot (zfs, local, noatime, nfsv4acls)
fdescfs on /dev/fd (fdescfs)
procfs on /proc (procfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
/dev/fuse on /usr/home/zoleg/.gvfs (fusefs, local, nosuid, synchronous, mounted by zoleg)
/dev/fuse on /mnt (fusefs, local, synchronous)

Why ntfs-3g don’t work with SATA HDD?
 
Last edited by a moderator:
I found what the problem was - ntfs-3g does not mount disks/partitions from root, only as standard user via sudo
 
Back
Top