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/<old-partition> of=/dev/<new-partition>

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.
This commit is contained in:
Xi Ruoyao 2022-09-24 18:48:50 +08:00
parent 2ed0e93787
commit f001ece905
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -12,7 +12,7 @@
<para>A partition is just a range of sectors on a disk drive, delimited by <para>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 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 system, typically consisting of a label, directory blocks, data blocks, and
an indexing scheme to locate a particular file on demand. The file system 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 also helps the OS keep track of free space on the partition, reserve the