diff options
author | phk <phk@FreeBSD.org> | 2007-12-16 19:41:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2007-12-16 19:41:31 +0000 |
commit | 8869357e615c78e3fd49cef030938ecad98ad0fb (patch) | |
tree | 50cd9188ad39d14622684bb1674d4d82c2da2a3d /sbin/newfs/newfs.8 | |
parent | f0debf860a7293c754e26563a772bdac6d9aa62f (diff) | |
download | FreeBSD-src-8869357e615c78e3fd49cef030938ecad98ad0fb.zip FreeBSD-src-8869357e615c78e3fd49cef030938ecad98ad0fb.tar.gz |
Rename the undocumented -E option to -X.
Implement -E option which will erase the filesystem sectors before
making the new filesystem. Reserved space in front of the superblock
(bootcode) is not erased.
NB: Erasing can take as long time as writing every sector sequentially.
This is relevant for all flash based disks which use wearlevelling.
Diffstat (limited to 'sbin/newfs/newfs.8')
-rw-r--r-- | sbin/newfs/newfs.8 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8 index 875f915..b55cd34 100644 --- a/sbin/newfs/newfs.8 +++ b/sbin/newfs/newfs.8 @@ -36,7 +36,7 @@ .Nd construct a new UFS1/UFS2 file system .Sh SYNOPSIS .Nm -.Op Fl JNUln +.Op Fl EJNUln .Op Fl L Ar volname .Op Fl O Ar filesystem-type .Op Fl S Ar sector-size @@ -59,10 +59,6 @@ The .Nm utility is used to initialize and clear file systems before first use. -Before running -.Nm -the disk must be labeled using -.Xr bsdlabel 8 . The .Nm utility builds a file system on the specified special file. @@ -78,6 +74,14 @@ has numerous options to allow the defaults to be selectively overridden. .Pp The following options define the general layout policies: .Bl -tag -width indent +.It Fl E +Erase the content of the disk before making the filesystem. +The reserved area in front of the superblock (for bootcode) will not be erased. + +This is a relevant option for flash based storage devices that use +wear levelling algorithms. + +NB: Erasing may take as long time as writing every sector on the disk. .It Fl J Enable journaling on the new file system via gjournal. .It Fl L Ar volname |