The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Install/Creating Filesystems/zh-tw"
(Updating to match new version of source page) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
{{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!}} | ||
在你新建立的分割區能派上用場之前,這些前一個步驟了產物需要被使用"檔案相關資料"初始化,這個步驟又被稱為"建立檔案系統",在檔案系統被建立之後,他們才能被掛載,然後用來儲存檔案。 | |||
簡單來說,如果你正在使用舊式的MBR分割區,那麼在{{f|/dev/sda1}}上建立一個ext2檔案系統: | |||
{{console|body=###i## mkfs.ext2 /dev/sda1}} | {{console|body=###i## mkfs.ext2 /dev/sda1}} | ||
If you're using GPT partitions for UEFI, you'll want to create a vfat filesystem on {{c| | If you're using GPT partitions for UEFI, or installing for Raspberry Pi, you'll want to create a vfat filesystem on your first partition. This will be {{c|mmcblk0p1}} in the case of Raspberry Pi: | ||
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}} | {{console|body=###i## mkfs.vfat -F 32 /dev/sda1}} | ||
Line 41: | Line 41: | ||
{{Important|'''We do not recommend users set up ZFS or BTRFS as their root filesystem.''' This is much more complex and usually not | {{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 [[ | 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.}} | additional secondary storage.}} | ||
Line 53: | Line 53: | ||
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. | ||
==== Additional Filesystems ==== | |||
{{Note|This can be very useful for Raspberry Pi systems!}} | |||
You may want to create additional filesystems for various parts of your Funtoo filesystem tree. It is not uncommon to place {{c|/home}} or {{c|/var}} on separate filesystems. | |||
For Raspberry Pi, you may not have a lot of spare room on the card depending on the capacity of your microSD card, and it may make a lot of sense to put the entire {{c|/var}} filesystem on an external hard drive or solid state disk. This will not only ensure you don't run out of disk space, but can also improve performance since writes to the microSD card typically aren't that fast. | |||
To do this, you will want to use {{c|fdisk}} or {{c|gdisk}} to create a partition on your external drive, and then use the {{c|mkfs.xfs}} or {{c|mkfs.ext4}} commands to create a filesystem on the new partition. We will mount this new filesystem in the next step prior to extracting the stage3 tarball. | |||
<noinclude>{{InstallNavigation|num=5|prev=GPT Partitioning|next=Mounting Filesystems|align=right}}</noinclude> |
Latest revision as of 21:25, March 27, 2023
安裝教學: 建立檔案系統
Install Guide, Chapter 5 | < Prev | Next > |
This section covers both BIOS and UEFI installs. Don't skip it!
在你新建立的分割區能派上用場之前,這些前一個步驟了產物需要被使用"檔案相關資料"初始化,這個步驟又被稱為"建立檔案系統",在檔案系統被建立之後,他們才能被掛載,然後用來儲存檔案。
簡單來說,如果你正在使用舊式的MBR分割區,那麼在/dev/sda1
上建立一個ext2檔案系統:
root # mkfs.ext2 /dev/sda1
If you're using GPT partitions for UEFI, or installing for Raspberry Pi, you'll want to create a vfat filesystem on your first partition. This will be mmcblk0p1
in the case of Raspberry Pi:
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 emerge
d prior to rebooting. Please consult the following table for more information:
Filesystem | Recommended as root file system? | Additional tools required to emerge |
---|---|---|
ext4 | Yes | None |
XFS | Yes | sys-fs/xfsprogs |
zfs | No - advanced users only | sys-fs/zfs |
btrfs | No - advanced users only | sys-fs/btrfs-progs |
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.
Additional Filesystems
This can be very useful for Raspberry Pi systems!
You may want to create additional filesystems for various parts of your Funtoo filesystem tree. It is not uncommon to place /home
or /var
on separate filesystems.
For Raspberry Pi, you may not have a lot of spare room on the card depending on the capacity of your microSD card, and it may make a lot of sense to put the entire /var
filesystem on an external hard drive or solid state disk. This will not only ensure you don't run out of disk space, but can also improve performance since writes to the microSD card typically aren't that fast.
To do this, you will want to use fdisk
or gdisk
to create a partition on your external drive, and then use the mkfs.xfs
or mkfs.ext4
commands to create a filesystem on the new partition. We will mount this new filesystem in the next step prior to extracting the stage3 tarball.
Install Guide, Chapter 5 | < Prev | Next > |