Файловые системы

Revision as of 10:15, 27 December 2022 by Krotesk (talk | contribs) (Created page with "Поскольку Btrfs отличается от других, некоторые вещи кажутся незнакомыми и странными. Тогда [https://b...")
Other languages:
English • ‎Türkçe • ‎français • ‎русский • ‎فارسی
Page Under Construction.jpg This article or section is under construction
Reason: Page under construction. (Discuss)
Page Under Construction.jpg

На этой странице представлена информация о некоторых файловых системах, часто используемых в Manjaro. Здесь также показано где и как они используются. Дополнительную информацию об этих и других файловых системах можно найти в ARCH Wiki.

Файловая система управляет пространством на носителе информации (жесткий диск, SSD ...). Она делает эту память доступной для операционной системы, чтобы файлы можно было сохранять и читать снова. Каждая из перечисленных ниже файловых систем имеет свои преимущества и недостатки. В основном они разработаны для специальных целей и поэтому используются в определенной среде.

Linux

файловые системы, которые в основном используются в Linux.

Обратите внимание, что многие драйверы файловых систем уже включены в ядро Linux. Вам может не понадобиться ничего другого для монтирования, чтения или записи этих файловых систем. Но есть пакеты с дополнительными инструментами. Они могут понадобиться для форматирования, проверки, ремонта, модификации или оптимизации таких файловых систем. Поэтому если вы регулярно используете определенную файловую систему - неплохо бы установить соответствующие инструменты.

Ext2 → Ext3 → Ext4

Ext4 - это файловая система по умолчанию в Manjaro в настоящее время. Она является развитием наиболее используемых файловых систем Linux (Ext3, Ext2) и обещает улучшенный дизайн, более высокую производительность, надежность и возможности по сравнению с предшественниками.

Если вы используете Ext2 или Ext3 - Вы можете преобразовать раздел в Ext4. Ext4 использует журналирование, контрольные суммы и барьеры записи и поэтому более устойчив к повреждениям.

В настоящее время Ext4 полностью поддерживается в Win10 и OsX. Поддержка ext4 была встроена с момента включения WSL в Win10 (2016).

смотрите Ext4@kernel.org, Ext4@ARCH-wiki, Ext4@wikipedia
О расширенных оптимизациях см. Improving Ext4 performance@Archwiki.

Установка

В Manjaro, e2fsprogs уже установлен

Btrfs

Современная Copy on Write файловая система для Linux, нацеленная на реализацию расширенных возможностей, а также на отказоустойчивость, ремонт и простое администрирование. Btrfs - это не только файловая система, но и менеджер томов, программный рейд, инструмент резервного копирования, а также flash-friendly.

Поскольку Btrfs отличается от других, некоторые вещи кажутся незнакомыми и странными. Тогда Btrfs@kernel.org - хорошая отправная точка для поиска ответов.

Development of Btrfs started in 2007. Since that time, Btrfs is a part of the Linux kernel and is under active development. The Btrfs code base is stable . However, new features are still under development. Its main features and benefits are:

  • Snapshots which do not make a full copy of files
  • RAID - support for software-based RAID 0, RAID 1, RAID 10
  • Self-healing - checksums for data and metadata, automatic detection of silent data corruptions

смотрите Btrfs@kernel.org, Btrfs@ARCH-wiki, Btrfs@wikipedia

Установка

user $ pamac install btrfs-progs COPY TO CLIPBOARD


ReiserFS → reiser4

ReiserFS was the first journaling filesystem to be included in the standard kernel. It was actively used by some distros some time ago, but is not currently widely used. Reiser4 is the successor to ReiserFS(3). However, Reiser4 seems not to be integrated in the kernel yet.

смотрите Reiser4@ARCH-wiki, ReiserFS@wikipedia, Reiser4@wikipedia, Reiser4@kernel.org

Установка

user $ pamac install reiserfsprogs reiser4progs COPY TO CLIPBOARD


Windows

filesystems mostly used in windows

NTFS

It is the most widely used filesystem on windows these days. It does exist in different versions, but unlike FAT32, all of them offer the following points:

  • Large files> 4GB
  • Long file names with UTF16 up to 255 characters
  • Rights management, ACL
  • Journaling of metadata
  • Compression, encryption, ...

Currently there are some restrictions when using NTFS with Linux. If windows is suddenly switched off or goes into hibernating, the NTFS filesystem is left in a "dirty-state". When Windows starts again, NTFS is the first to be cleaned. This operation is currently not supported by the Linux driver. Then Linux shows the NTFS filesystem as read-only to be on the safe side.

see NTFS@ARCH-wiki, NTFS@wikipedia


Warning
If you regularly switch between Windows and Linux, you should switch off "hibernation", "Hybrid Boot", "Fast Boot" in Windows. Then Linux has always full (read / write) access to NTFS drives.

Установка

user $ pamac install ntfs-3g COPY TO CLIPBOARD


DOS

filesystems under DOS and early windows on a lot of floppydisks and USB-sticks

FAT16 → FAT32 (+VFAT)

This is a traditional filesystem under DOS and early Windows versions. Even today it can be found on many floppy disks, USB sticks and hard drives. It is supported by all types of operating systems and is therefore often used to exchange files, to pass them on, or to keep them accessible to both operating systems in the case of dualboot.

Even with FAT32, this comes not without its disadvantages.

  • no support for user rights or xattr
  • severely restricted file names (8.3 or LFN for VFAT, no distinction between lowercase and uppercase)
  • no files over 2GB (FAT16) 4GB (FAT32)
  • no journaling
  • not robust


Warning
FAT Filesystems do not use journaling. Data on such filesystems is vulnerable to irreparable corruption due to improper ejection or power outage.

see FAT@ARCH-wiki, FAT@wikipedia

Установка

user $ pamac install dosfstools COPY TO CLIPBOARD


exFAT

Microsoft developed the exFAT (Extended File Allocation Table) in 2006 and optimized it for flash memories such as USB sticks and SD cards. It can store large files and large numbers of files, and it can manage very large partitions. It is supported by Linux, Windows, macOS and many other devices and is one of the most compatible filesystems. ExFAT is included in Linux 5.4 and higher.

  • Flash friendly
  • No support for user rights or xattr
  • Files over 4 GB
  • Checksums for metadata
  • No journal
  • Not robust


Warning
exFAT FS does not use journaling. Data on such a filesystem is vulnerable to irreparable corruption due to improper ejection or power outage.

смотрите ExFAT@wikipedia

Установка

user $ pamac install exfatprogs COPY TO CLIPBOARD


macOS

Filesystems mostly used in macOS

HFS → HFS+

смотрите HFSPlus@wikipedia

Установка из AUR

user $ pamac install hfsprogs COPY TO CLIPBOARD


Другие

XFS

смотри XFS@ARCH-wiki

ZFS

see ZFS@ARCH-wiki

Сравнения

Possible usage of Filesystems
Filesystem Manjaro Win10 OSX Win9x, DOS
ext2 ▷ ExtFS
ext3/4 ▷ ExtFS ?
btrfs ● btrfs-progs ▷ ExtFS, WinBtrfs - -
reiser3 ● reiser4progs ▷ RFSTool ? -
reiser4 ○ reiserfs ? ? -
NTFS ○ ntfs-3g
▶ 5.15?? ntfs3
?
FAT32 ● dosfstools
exFAT ▶ 5.4 exfatprogs ? ?
HFS ○ hfsprogs (AUR) ?
XFS ? ▷ ExtFS ?
ZFS ? ? ?
● = fully supported, additional tools to install
▶ = included since kernel x.x.x 
○ = partially supported
▷ = possible via external tools
? = feel free to extend ;-)
Some important properties
Properties ext2 ext3 ext4 btrfs reiserfs(3) XFS
journaling - ● ordered ● ordered ● full ▶ 2.6
barriers -
checksum - - ◎ metadata ● full
kompression - - - ●,
zstd ▶ 4.14/5.1
encryption - - ▶ 4.13 -
snapshots - - - -
TRIM possible - - ▶ 2.6.33 ▶ 4.3
xattr, ACL ? ACL ACL ACL
small repair ● fsck ● fsck ● fsck ● auto reiserfsck
journal repair ● fsck ● fsck ● fsck ● auto 3.2
repair after power loss - ? ● tune2fs, fsck ● auto, scrub
since 1993 2001 2008 2009 2001

Смотрете также

Wikipedia:exFAT
Wikipedia:Comparison of filesystems
Archwiki:filesystems