From d4db43141f3b68a9a34fb9153954c690b526ea0e Mon Sep 17 00:00:00 2001 From: CatKasha Date: Sun, 28 Apr 2024 23:05:48 +0300 Subject: [PATCH] Update storage-format-(linux).md --- docs/storage-format-(linux).md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/docs/storage-format-(linux).md b/docs/storage-format-(linux).md index 6a1141aae..fc7215c8b 100644 --- a/docs/storage-format-(linux).md +++ b/docs/storage-format-(linux).md @@ -13,9 +13,10 @@ This page is for Linux users only. If you are not on Linux, check out the [Stora ### What You Need -* The latest version of [exfat-utils](https://github.com/relan/exfat) for your distribution (check your package manager) -* The latest version of [fuse-exfat](https://github.com/relan/exfat) for your distribution (check your package manager) -* The latest version of [F3](https://github.com/AltraMayor/f3/releases/latest) +* For Kernel 5.7 and above: install [exfatprogs](https://github.com/exfatprogs/exfatprogs) for your distribution (check your package manager) +* For Kernel 5.6 and below: install [fuse-exfat](https://github.com/relan/exfat) and [exfat-utils](https://github.com/relan/exfat) for your distribution (check your package manager) + + `fuse-exfat` package may named as `exfat-fuse` in some distribution +* The latest version of [f3](https://github.com/AltraMayor/f3/) for your distribution (check your package manager) + This is not required if you do not want to check your storage device for errors ### Instructions @@ -24,27 +25,23 @@ This page is for Linux users only. If you are not on Linux, check out the [Stora 1. Insert your storage device into your computer 1. Unmount your storage device with `umount` -1. Run `sudo dd if=/dev/zero of=/dev/sdX` to wipe the storage device - + `sdX` should be the device corresponding to your storage device -1. Remove your storage device from your computer -1. Re-insert your storage device into your computer 1. Run `mkfs.exfat /dev/sdX` to format your storage device as exFAT + + `sdX` should be the device corresponding to your storage device (don't point to existed partition, for example `sdX1`) + If your storage device has a capacity of 256 GB or greater, you must format with a cluster size of 64 KB + + For Kernel 5.7 and above: `mkfs.exfat /dev/sdX -c 64K` + + For Kernel 5.6 and below: `mkfs.exfat /dev/sdX -s 128K` #### Section II - Verifying Storage Device If you do not want to check your storage device for errors, skip this section. -1. Unzip the f3 `.zip` file -1. `cd` into the f3 directory -1. Run `make` to compile F3 1. Insert your storage device into your computer 1. Mount your storage device -1. Run `./f3write ` +1. Run `f3write ` 1. Wait until the process is complete. See below for an example output. ~~~ bash -$ ./f3write /media/michel/6135-3363/ +$ f3write /media/michel/6135-3363/ Free space: 29.71 GB Creating file 1.h2w ... OK! ... @@ -53,11 +50,11 @@ Free space: 0.00 Byte Average Writing speed: 4.90 MB/s ~~~ -8. Run `./f3read ` +5. Run `f3read ` 1. Wait until the process is complete. See below for an example output. ~~~ bash -$ ./f3read /media/michel/6135-3363/ +$ f3read /media/michel/6135-3363/ SECTORS ok/corrupted/changed/overwritten Validating file 1.h2w ... 2097152/ 0/ 0/ 0 ...