Difference between revisions of "F2FS"

From ArchWiki
Jump to: navigation, search
m (Install Arch Linux on F2FS partition: Aesthetic change, boot word highlighted.)
(rewrote in 3rd person)
Line 6: Line 6:
 
== 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 the [[official repositories]].
+
In order to create a F2FS partition, [[pacman|install]] {{Pkg|f2fs-tools}} from the [[official repositories]].
  
 
Create the partition:  
 
Create the partition:  
  # mkfs.f2fs ''/dev/sdxY''
+
  # mkfs.f2fs -l mylabel ''/dev/sdxY''
where ''/dev/sdxY'' is the volume that you wish to format in F2FS.
+
where ''/dev/sdxY'' is the target volume to format in F2FS.
  
 
== Mounting a F2FS partition ==
 
== Mounting a F2FS partition ==
  
You may need to load the F2FS kernel module before mounting. Issue as root:
+
Users will likely need to manually load the F2FS kernel module before mounting. Issue as root:
  
 
  # modprobe f2fs
 
  # modprobe f2fs
  
Then you can mount the partition:
+
The partition can then be mounted:
  
 
  # mount -t f2fs /dev/sdxY /mnt
 
  # mount -t f2fs /dev/sdxY /mnt

Revision as of 19:03, 31 December 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, install f2fs-tools from the official repositories.

Create the partition:

# mkfs.f2fs -l mylabel /dev/sdxY

where /dev/sdxY is the target volume to format in F2FS.

Mounting a F2FS partition

Users will likely need to manually load the F2FS kernel module before mounting. Issue as root:

# modprobe f2fs

The partition can then be mounted:

# 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 system 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