Install/Creating Filesystems/ru

From Funtoo
< Install
Revision as of 17:09, September 22, 2018 by Hwline (talk | contribs) (Created page with "Однако, давайте по-простому. Вы используете классические MBR-разделы? Тогда создадим файловую си...")
Jump to navigation Jump to search
Other languages:
English • ‎español • ‎polski • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎ • ‎中文(台灣)‎

Руководство по установке: Создание файловых систем

Install Guide, Chapter 5 < Prev Next >
   Note

Этот раздел касается как варианта установки с BIOS, так и UEFI-варианта. Не пропускайте этот этап!

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

Однако, давайте по-простому. Вы используете классические MBR-разделы? Тогда создадим файловую систему типа ext2 на /dev/sda1:

root # mkfs.ext2 /dev/sda1

If you're using GPT partitions for UEFI, you'll want to create a vfat filesystem on /dev/sda1, because this is what UEFI is able to read:

root # mkfs.vfat -F 32 /dev/sda1

Now, let's create a swap partition. This partition will be used as disk-based virtual memory for your Funtoo Linux system.

You will not create a filesystem on your swap partition, since it is not used to store files. But it is necessary to initialize it using the mkswap command. Then we'll run the swapon command to make your newly-initialized swap space immediately active within the live CD environment, in case it is needed during the rest of the install process:

root # mkswap /dev/sda2
root # swapon /dev/sda2

Root Filesystem

Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. Keep in mind that some filesystems will require additional filesystem tools to be emerged prior to rebooting. Please consult the following table for more information:

FilesystemRecommended as root file system?Additional tools required to emerge
ext4YesNone
XFSYessys-fs/xfsprogs
zfsNo - advanced users onlysys-fs/zfs
btrfsNo - advanced users onlysys-fs/btrfs-progs
   Important

We do not recommend users set up ZFS or BTRFS as their root filesystem. This is much more complex and usually not necessary. Instead, choose XFS or ext4. We do support ZFS or BTRFS as non-root filesystems and this is much, much easier to configure. See ZFS and BTRFS after you are done setting up your Funtoo Linux system to configure ZFS or BTRFS for additional secondary storage.

If you're not sure, choose ext4. Here's how to create a root ext4 filesystem:

root # mkfs.ext4 /dev/sda3

...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:

root # mkfs.xfs /dev/sda3

Your filesystems (and swap) have all now been initialized, so that that can be mounted (attached to your existing directory heirarchy) and used to store files. We are ready to begin installing Funtoo Linux on these brand-new filesystems.