Writing to ntfs partitions?

Daan Vreeken [PA4DAN] Danovitsch at vitsch.net
Sat Apr 29 10:08:39 UTC 2006


Hi All,

I am trying to help a friend recover her Wind0ws harddisk. I have a backup of 
all files on a UFS2 partition and I have a new and freshly 
partitioned/formatted harddisk with a number of NTFS partitions. "man 
mount_ntfs" mentions write support for ntfs partitions with some limitations, 
but I can't seem to write anything to any of the ntfs partitions :(
I must be doing something wrong. Can anyone shed some light on this?

Here is a transcript of what I've tried :
[root at Chemobox /mnt/1]# uname -a
FreeBSD Chemobox.An.LAN 6.1-RC1 FreeBSD 6.1-RC1 #3: Sat Apr 29 11:33:34 CEST 
2006     root at Chemobox.An.LAN:/home/src/sys/i386/compile/Chemobox  i386

[root at Chemobox /mnt]# mount -t ntfs /dev/ad4s5 /mnt/1
[root at Chemobox /mnt]# cd /mnt/1

[root at Chemobox /mnt/1]# ls -l
total 28596
-rwxr-xr-x  1 root  wheel      2560 Apr 22  2009 $AttrDef
-rwxr-xr-x  0 root  wheel         0 Apr  6 22:18 $BadClus
-rwxr-xr-x  1 root  wheel    163920 Apr 22  2009 $Bitmap
-rwxr-xr-x  0 root  wheel      8192 Apr  6 22:18 $Boot
drwxr-xr-x  0 root  wheel         0 Apr  6 22:18 $Extend
-rwxr-xr-x  0 root  wheel  28966912 Apr  6 22:18 $LogFile
-rwxr-xr-x  0 root  wheel      4096 Apr  6 22:18 $MFTMirr
-rwxr-xr-x  0 root  wheel         0 Apr 22  2009 $Secure
-rwxr-xr-x  1 root  wheel    131072 Apr 22  2009 $UpCase
-rwxr-xr-x  0 root  wheel         0 Apr  6 22:18 $Volume
drwxr-xr-x  0 root  wheel         0 Apr  6 22:35 System Volume Information

[root at Chemobox /mnt/1]# mkdir test
mkdir: .: No such file or directory

[root at Chemobox /mnt/1]# mkdir test.dir
mkdir: .: No such file or directory

[root at Chemobox /mnt/1]# echo "foo" >bar.txt
su: bar.txt: No such file or directory

[root at Chemobox /mnt/1]# mount
/dev/ad4s2a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
/dev/ad4s3d on /home (ufs, local, soft-updates)
/dev/ad4s5 on /mnt/1 (ntfs, local)

Thanks,
Daan


More information about the freebsd-questions mailing list