注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Install/Creating Filesystems"

From Funtoo
Jump to navigation Jump to search
(Marked this version for translation)
Line 1: Line 1:
<translate>
<translate>
<!--T:1-->
{{InstallNavigation|num=5|prev=GPT Partitioning|next=Mounting Filesystems|title=Creating Filesystems}}
{{InstallNavigation|num=5|prev=GPT Partitioning|next=Mounting Filesystems|title=Creating Filesystems}}


<!--T:2-->
{{Note|This section covers both BIOS ''and'' UEFI installs. Don't skip it!}}
{{Note|This section covers both BIOS ''and'' UEFI installs. Don't skip it!}}


<!--T:3-->
Before your newly-created partitions can be used, the block devices that were created in the previous step need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.
Before your newly-created partitions can be used, the block devices that were created in the previous step need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.


<!--T:4-->
Let's keep this simple. Are you using legacy MBR partitions? If so, let's create an ext2 filesystem on {{f|/dev/sda1}}:
Let's keep this simple. Are you using legacy MBR partitions? If so, let's create an ext2 filesystem on {{f|/dev/sda1}}:


<!--T:5-->
{{console|body=###i## mkfs.ext2 /dev/sda1}}
{{console|body=###i## mkfs.ext2 /dev/sda1}}


<!--T:6-->
If you're using GPT partitions for UEFI, you'll want to create a vfat filesystem on {{c|/dev/sda1}}, because this is what UEFI is able to read:
If you're using GPT partitions for UEFI, you'll want to create a vfat filesystem on {{c|/dev/sda1}}, because this is what UEFI is able to read:


<!--T:7-->
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}}
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}}


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


<!--T:9-->
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 {{c|mkswap}} command. Then we'll run the {{c|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:
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 {{c|mkswap}} command. Then we'll run the {{c|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:


<!--T:10-->
{{console|body=
{{console|body=
# ##i##mkswap /dev/sda2
# ##i##mkswap /dev/sda2
Line 24: Line 34:
Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. If you're not sure, choose ext4. Here's how to create a root ext4 filesystem:
Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. If you're not sure, choose ext4. Here's how to create a root ext4 filesystem:


<!--T:11-->
{{console|body=###i## mkfs.ext4 /dev/sda3}}
{{console|body=###i## mkfs.ext4 /dev/sda3}}


<!--T:12-->
...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:
...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:


<!--T:13-->
{{console|body=###i## mkfs.xfs /dev/sda3}}
{{console|body=###i## mkfs.xfs /dev/sda3}}


<!--T:14-->
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.
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.
</translate>
</translate>

Revision as of 21:20, September 11, 2018

Install Guide, Chapter 5 < Prev Next >
   Note

This section covers both BIOS and UEFI installs. Don't skip it!

Before your newly-created partitions can be used, the block devices that were created in the previous step need to be initialized with filesystem metadata. This process is known as creating a filesystem on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.

Let's keep this simple. Are you using legacy MBR partitions? If so, let's create an ext2 filesystem on /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

Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. 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.