From f001ece90548140698fe0a2f02c1690aecbb9933 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 24 Sep 2022 18:48:50 +0800 Subject: [PATCH] creatingfilesystem: Refine the condition where a FS is needed For example, a swap partition does not contain any FS. And, if you want to clone a partition, you can use dd if=/dev/ of=/dev/ then it's unnecessary to create a FS on new-partition before operation. This is sometimes faster than creating a new FS, mounting both partition, then "cp -av" if the old-partition contains many small files. --- chapter02/creatingfilesystem.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml index bd442d5e2..5eedf456e 100644 --- a/chapter02/creatingfilesystem.xml +++ b/chapter02/creatingfilesystem.xml @@ -12,7 +12,7 @@ A partition is just a range of sectors on a disk drive, delimited by boundaries set in a partition table. Before the operating system can use - a blank partition, the partition must be formatted to contain a file + a partition to store any files, the partition must be formatted to contain a file system, typically consisting of a label, directory blocks, data blocks, and an indexing scheme to locate a particular file on demand. The file system also helps the OS keep track of free space on the partition, reserve the