Если FAT32 имеет ограничение размера файла 4 ГБ, как я смог скопировать файл библиотеки iPhoto 13 ГБ на этот диск?

43226
BigOmega

Это флэш-накопитель FAT32 USB емкостью 32 ГБ, и, похоже, у меня нет проблем с файлом библиотеки iPhoto на 13 ГБ. Я думал, что было ограничение размера файла 4 ГБ в этом формате файловой системы?

39
Вы уверены, что это FAT32, а не exFAT и как вы проверяли? На какой ОС вы работаете? Данные все еще читаемы? Baarn 11 лет назад 3
Я предполагаю, что у вас нет ни одного файла размером более 4 ГБ. Ramhound 11 лет назад 15
@informaficker - он явно работает на OS X, потому что использует iPhoto, который работает только на OS X. Ramhound 11 лет назад 0
@Informaficker Да, это FAT32, я проверил как Windows (с которой я первоначально отформатировал его), так и Mac. Оказывается, что OS X рассматривает iPhoto Library только как один файл в пользовательском интерфейсе, фактически это папка со многими файлами внутри. BigOmega 11 лет назад 3

4 ответа на вопрос

110
Hennes

There is a 4GB per file limit.

Example:
Copying two files, each of which is 3GB in size (6GB total) would work fine.
Copying a single 6GB file would fail.

In your case OS/X is showing iPhoto Library as a single file, but reality it is a folder with many files inside. (All smaller than 4GB).

С тех пор я узнал, что библиотека iPhoto обрабатывается только как один файл в пользовательском интерфейсе файловой системы, хотя в действительности это папка с множеством файлов внутри. Вы можете добавить это к своему ответу, и он будет завершен. BigOmega 11 лет назад 33
Ах, старый добрый недостаток сокрытия сложности. Lenar Hoyt 10 лет назад 1
33
colincameron

Часто в OS X вы обнаруживаете, что файл на самом деле не является файлом - это каталог. Хорошим примером этого является приложение, которое будет выглядеть как один .appфайл, но на самом деле это пакет (каталог), содержащий несколько файлов.

6
Matt Clark

Да, на FAT32 существует ограничение на размер файла, ОДНАКО, это 4 ГБ на файл.

Возможно, у вас есть каталог размером 50 ГБ, однако ни один файл не может быть больше 4 ГБ.

На самом деле, диски FAT имеют ограничения в зависимости от FAT16 / FAT32 и т. Д. И размера секторов. Matsemann 11 лет назад 6
Я полагаю, что каждый раздел в `FAT32` ограничен 2 ТБ. kush 11 лет назад 1
5
Matt

It depends on the cluster size how big the files can be. Take a look here, in the referenced support article it is described as follows:

All file systems that are used by Windows organize your hard disk based on cluster size (also known as allocation unit size). Cluster size represents the smallest amount of disk space that can be used to hold a file. When file sizes do not come out to an even multiple of the cluster size, additional space must be used to hold the file (up to the next multiple of the cluster size). On the typical hard disk partition, the average amount of space that is lost in this manner can be calculated by using the equation (cluster size)/2 * (number of files).

If no cluster size is specified when you format a partition, defaults are selected based on the size of the partition. These defaults are selected to reduce the space that is lost and to reduce the fragmentation that occurs on the partition.

But it is also the maximum file size which depends on the cluster size and also on the sector size selected, because the file size is calculated as

File size = (number of clusters) * (sectors per cluster) * (sector size)

and the sector size is usually 512 bytes, but nowadays where we have hard disks with several terabytes capacity, it can be larger (e.g. 4 KB).

While it seems that this allows larger files, the design specification of FAT32 says that a file cannot exceed 4 GB, hence

Max File size = 4 294 967 296 bytes (4 Gigabytes)

The maximum number of clusters for Fat32 is limited to 268 435 445, and a cluster must not exceed 64 KB, see here. But it is also said that you can't format Fat32 with larger clusters than 32 KB. This means that theoretically, the maximum partition size is

Max part. size = 268 435 445 * 32 768 bytes = 8 796 092 661 760 bytes (which is 8 Terabytes).

Practically, it is lower than that, because usually you don't have 32 KB clusters. For Fat32 the default cluster size varies depending on the size of the partition between 4 KB (236 MB - 8 GB partitions) and 16 KB (16 GB - 32 GB partitions).

You can influence the maximum partition size when you are formatting the partition. The larger the cluster size and/or sector size, the larger the partition can be. But the file size is always limited to 4 GB.

Notes:

  • It is not dependent on the medium, you can format a memory stick or SD card with larger sectors as you can do it with your harddisk. The limitation you have depends on the system which reads the partition, for example if you're using a digital camera it might not support each sector or cluster size as your operating system on the PC does.

  • Despite the fact that Microsoft has stopped support for Fat32 partitions larger than 32 GB, you can still create and use them, if you use a free 3rd party tool to format them. Fat32 is still used by many devices and in many operating systems (not just by Windows) such as HDD recorders, cameras etc.

Автор не заботится о том, что Microsoft делает или не поддерживает, они используют OS X. Я должен понизить этот ответ из-за простого факта, он не помогает автору, потому что они используют OS X. Ramhound 11 лет назад 0
Тем не менее, вы говорите о NTFS, которую OS X не поддерживает без сторонних драйверов. OS X поддерживает FAT32, который не менялся годами. Чего нельзя сказать о NTFS, которая видела обновления для подчеркивания драйвера. Вы также связаны с приложением Windows. Сделайте этот ответ актуальным для автора, и я мог бы рассмотреть возможность избавиться от моего отрицательного голоса. Ramhound 11 лет назад 0
@Ramhound: Но Fat32 - это Windows, а не OS X. Так что теория о Fat32 определяется Microsoft, а не Apple. => Подумай, прежде чем понизить голос. Matt 11 лет назад 0
Хорошо. Я отклонил ваш вопрос, потому что вы связались с программой Windows, чтобы расширить пределы Fat32, что не помогает автору. Я очень много думал о понижении голосов, этот ответ не относится к авторскому вопросу. Ramhound 11 лет назад 0
Я удалил и программу Windows, и часть NTFS. Matt 11 лет назад 0
Ваш комментарий о разделах неверен, ограничение НЕ 32 ГБ, потому что у меня было 100 ГБ + разделы FAT32, когда я использовал Windows XP в 2001 году. Кроме того, встроенная поддержка OS X для FAT32 позволяет создавать более крупные разделы, чем 32 ГБ. Ramhound 11 лет назад 0
Договорились и изменили эту часть. Matt 11 лет назад 0
позвольте нам [продолжить это обсуждение в чате] (http://chat.stackexchange.com/rooms/6614/discussion-between-matt-and-ramhound) Matt 11 лет назад 0

Похожие вопросы