NTFS file size limit in FreeBSD
Anders Nordby
anders at FreeBSD.org
Wed Mar 31 14:18:41 PST 2004
Hello,
On Wed, Aug 27, 2003 at 03:39:55AM +0700, Semen A. Ustimenko wrote:
>> I don't have a disk with the particular filesystem lying around yet (it
>> was an USB disk I had borrowed), but I'll try to establish a test
>> environment and re-create my problem so I can answer your questions.
>> I'll get back to you. Thanks!
>>
> I have got a 20Gb NTFS partition full of 1.3Gb files. They all can be
> perfectly read... What was the size of the partition you encountered the
> problem on?
>
> I suspect the problem can only shows itself on volumes of greater size,
> like 32Gb, 64G or 128Gb or even more...
>
> Otherwise, the problem could have happened because of enormous file
> fragmentation...
>
> Well, I can't reproduce the problem :( I need your particular feedback...
Re. PR kern/48316. I recently got myself a 300 GB USB disk (which is
mine, wohoo!). And I figured I'd look into this again.
Now, I formatted the whole disk with one big NTFS partition in Windows
2000 (all recent service packs included). The result of "chkdsk c:" is
attached.
But if I now try to write anything on this filesystem, I only get error
messages. I have attached a transcript where I show some data about the
disk/partition, and what happens if I try to mount and copy a file to
the partition. Why can I not copy anything to this NTFS partition? Is
NTFS writing a no-go?
PS: I only tried the new disk + NTFS partition in FreeBSD 5.2.1 (using
FreeSBIE actually) this time, let me know if you want me to try another
version of FreeBSD or anything that can be of help.
Cheers,
--
Anders.
-------------- next part --------------
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\Documents and Settings\Administrator>chkdsk d:
The type of the file system is NTFS.
Volume label is FATTY.
WARNING! F parameter not specified.
Running CHKDSK in read-only mode.
CHKDSK is verifying files (stage 1 of 3)...
File verification completed.
CHKDSK is verifying indexes (stage 2 of 3)...
Index verification completed.
CHKDSK is verifying security descriptors (stage 3 of 3)...
Security descriptor verification completed.
Correcting errors in the master file table's (MFT) BITMAP attribute.
CHKDSK discovered free space marked as allocated in the volume bitmap.
Windows found problems with the file system.
Run CHKDSK with the /F (fix) option to correct these.
292961308 KB total disk space.
10704 KB in 7 files.
16 KB in 13 indexes.
0 KB in bad sectors.
74936 KB in use by the system.
65536 KB occupied by the log file.
292875652 KB available on disk.
4096 bytes in each allocation unit.
73240327 total allocation units on disk.
73218913 allocation units available on disk.
C:\Documents and Settings\Administrator>
-------------- next part --------------
root at FreeSBIE:/etc# dmesg | grep ^da1
da1 at umass-sim0 bus 0 target 0 lun 0
da1: <Maxtor OneTouch 0200> Fixed Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: 286103MB (585938944 512 byte sectors: 255H 63S/T 36473C)
root at FreeSBIE:/etc# fdisk -1 da1
******* Working on device /dev/da1 *******
parameters extracted from in-core disklabel are:
cylinders=36473 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=36473 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 585922617 (286095 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 631/ head 254/ sector 63
root at FreeSBIE:/etc# mount_ntfs /dev/da1s1 /mnt
root at FreeSBIE:/etc# cp /COPYRIGHT /mnt/
cp: /mnt/COPYRIGHT: No such file or directory
root at FreeSBIE:/etc# umount /mnt
root at FreeSBIE:/etc# mount -o rw -t ntfs /dev/da1s1 /mnt
root at FreeSBIE:/etc# cp /COPYRIGHT /mnt/
cp: /mnt/COPYRIGHT: No such file or directory
root at FreeSBIE:/etc# ls -l /COPYRIGHT
-r--r--r-- 1 root wheel 6189 Feb 23 14:34 /COPYRIGHT
root at FreeSBIE:/etc# ls -l /mnt/
total 87936
-rwxr-xr-x 1 root wheel 2560 Apr 22 2009 $AttrDef
-rwxr-xr-x 0 root wheel 0 Mar 25 19:02 $BadClus
-rwxr-xr-x 1 root wheel 9155048 Apr 22 2009 $Bitmap
-rwxr-xr-x 0 root wheel 8192 Mar 25 19:02 $Boot
drwxr-xr-x 0 root wheel 0 Mar 25 19:02 $Extend
-rwxr-xr-x 0 root wheel 67108864 Mar 25 19:02 $LogFile
-rwxr-xr-x 0 root wheel 4096 Mar 25 19:02 $MFTMirr
-rwxr-xr-x 0 root wheel 0 Apr 22 2009 $Secure
-rwxr-xr-x 0 root wheel 131072 Mar 25 19:02 $UpCase
-rwxr-xr-x 0 root wheel 0 Mar 25 19:02 $Volume
drwxr-xr-x 0 root wheel 0 Mar 25 19:06 WUTemp
-rwxr-xr-x 0 root wheel 13631488 Mar 25 19:11 vmdisken
root at FreeSBIE:/etc# df -k /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da1s1 292961308 88280 292873028 0% /mnt
root at FreeSBIE:/etc# mount | grep mnt
/dev/da1s1 on /mnt (ntfs, local)
More information about the freebsd-fs
mailing list