From owner-freebsd-fs@FreeBSD.ORG Wed Mar 31 14:18:41 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D4F216A4CE; Wed, 31 Mar 2004 14:18:41 -0800 (PST) Received: from totem.fix.no (totem.fix.no [80.91.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B5B143D2F; Wed, 31 Mar 2004 14:18:38 -0800 (PST) (envelope-from anders@FreeBSD.org) Received: from localhost (totem.fix.no [80.91.36.20]) by totem.fix.no (Postfix) with ESMTP id 30B682ED393; Thu, 1 Apr 2004 01:18:59 +0200 (CEST) Received: from totem.fix.no ([80.91.36.20]) by localhost (totem.fix.no [80.91.36.20]) (amavisd-new, port 10024) with LMTP id 12468-02; Thu, 1 Apr 2004 01:18:57 +0200 (CEST) Received: by totem.fix.no (Postfix, from userid 1000) id EE3CC2ED38C; Thu, 1 Apr 2004 01:18:56 +0200 (CEST) Date: Thu, 1 Apr 2004 01:18:56 +0200 From: Anders Nordby To: "Semen A. Ustimenko" Message-ID: <20040331231856.GA12441@totem.fix.no> References: <20030824090933.GA99463@totem.fix.no> <20030827033302.X631-100000@main.the.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <20030827033302.X631-100000@main.the.net> X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.1i cc: freebsd-fs@FreeBSD.org Subject: Re: NTFS file size limit in FreeBSD X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 22:18:41 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ntfs-usb.txt" 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> --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ntfs-usb-2.txt" root@FreeSBIE:/etc# dmesg | grep ^da1 da1 at umass-sim0 bus 0 target 0 lun 0 da1: Fixed Direct Access SCSI-0 device da1: 1.000MB/s transfers da1: 286103MB (585938944 512 byte sectors: 255H 63S/T 36473C) root@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@FreeSBIE:/etc# mount_ntfs /dev/da1s1 /mnt root@FreeSBIE:/etc# cp /COPYRIGHT /mnt/ cp: /mnt/COPYRIGHT: No such file or directory root@FreeSBIE:/etc# umount /mnt root@FreeSBIE:/etc# mount -o rw -t ntfs /dev/da1s1 /mnt root@FreeSBIE:/etc# cp /COPYRIGHT /mnt/ cp: /mnt/COPYRIGHT: No such file or directory root@FreeSBIE:/etc# ls -l /COPYRIGHT -r--r--r-- 1 root wheel 6189 Feb 23 14:34 /COPYRIGHT root@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@FreeSBIE:/etc# df -k /mnt Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da1s1 292961308 88280 292873028 0% /mnt root@FreeSBIE:/etc# mount | grep mnt /dev/da1s1 on /mnt (ntfs, local) --Q68bSM7Ycu6FN28Q--