Difference between revisions of "F2FS"

From ArchWiki
Jump to: navigation, search
m (added Japanese)
m (Capital letters. Links.)
Line 3: Line 3:
 
[[Wikipedia:F2FS|F2FS]] (Flash-Friendly File System) is a file system intended for NAND-based flash memory. It is supported from kernel 3.8 onwards.
 
[[Wikipedia:F2FS|F2FS]] (Flash-Friendly File System) is a file system intended for NAND-based flash memory. It is supported from kernel 3.8 onwards.
  
== Creating a f2fs partition ==
+
== Creating a F2FS partition ==
In order to create a f2fs partition, you need to [[Pacman|install]] package {{Pkg|f2fs-tools}} from [[Official Repositories]].
+
 
 +
In order to create a F2FS partition, you need to [[pacman|install]] package {{Pkg|f2fs-tools}} from the [[official repositories]].
  
 
Create the partition:  
 
Create the partition:  
 
  # mkfs.f2fs /dev/sdxY
 
  # mkfs.f2fs /dev/sdxY
  
== Mounting a f2fs partition ==
+
== Mounting a F2FS partition ==
You may need to load the f2fs kernel module before mounting. Issue as root:
+
 
 +
You may need to load the F2FS kernel module before mounting. Issue as root:
  
 
  # modprobe f2fs
 
  # modprobe f2fs
Line 18: Line 20:
 
  # mount -t f2fs /dev/sdxY /mnt
 
  # mount -t f2fs /dev/sdxY /mnt
  
== Install Arch Linux on f2fs partition ==
+
== Install Arch Linux on F2FS partition ==
With the latest installation media (2013.04.01) it is possible to install system on f2fs partition:
+
 
 +
With the latest installation media (2013.04.01) it is possible to install system on F2FS partition:
  
#Install {{Pkg|f2fs-tools}} from [[Official Repositories]] while running arch from installation media.
+
# Install {{Pkg|f2fs-tools}} from [[official repositories]] while running arch from installation media.
#Load f2fs kernel module as described above.
+
# Load {{ic|f2fs}} kernel module as [[F2fs#Mounting a F2FS partition|described]].
#Create root partition as f2fs as described above.
+
# Create root partition as F2FS as [[F2fs#Creating a F2FS partition|described]].
#Create boot partition as ext4 (or any other supported filesystem).
+
# Create boot partition as ext4 (or any other supported filesystem).
#Mount, install and chroot system as per [[Beginners'_Guide#Mount_the_partitions|official installation guide]].
+
# Mount, install and chroot system as per [[Beginners'_Guide#Mount_the_partitions|official installation guide]].
#(On installed sytem) add {{ic| f2fs}} to modules section in {{ic|/etc/mkinitcpio.conf}} and remove {{ic| fsck}} from hooks section since f2fs doesn't have fsck implementation yet.
+
# On installed sytem add {{ic|f2fs}} to modules section in {{ic|/etc/mkinitcpio.conf}} and remove {{ic|fsck}} from hooks section since F2FS does not have ''fsck'' implementation yet.
#Don't forget to regenerate the initramfs image after that:
+
# Don't forget to regenerate the initramfs image after that:
# mkinitcpio -p linux
+
::{{ic|# mkinitcpio -p linux}}

Revision as of 15:45, 8 September 2013

F2FS (Flash-Friendly File System) is a file system intended for NAND-based flash memory. It is supported from kernel 3.8 onwards.

Creating a F2FS partition

In order to create a F2FS partition, you need to install package f2fs-tools from the official repositories.

Create the partition:

# mkfs.f2fs /dev/sdxY

Mounting a F2FS partition

You may need to load the F2FS kernel module before mounting. Issue as root:

# modprobe f2fs

Then you can mount the partition:

# mount -t f2fs /dev/sdxY /mnt

Install Arch Linux on F2FS partition

With the latest installation media (2013.04.01) it is possible to install system on F2FS partition:

  1. Install f2fs-tools from official repositories while running arch from installation media.
  2. Load f2fs kernel module as described.
  3. Create root partition as F2FS as described.
  4. Create boot partition as ext4 (or any other supported filesystem).
  5. Mount, install and chroot system as per official installation guide.
  6. On installed sytem add f2fs to modules section in /etc/mkinitcpio.conf and remove fsck from hooks section since F2FS does not have fsck implementation yet.
  7. Don't forget to regenerate the initramfs image after that:
# mkinitcpio -p linux