aboutsummaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2006-12-12 15:26:25 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2006-12-12 15:26:25 +0000
commit75cb6f3da05d3f6ae07e110c2869ed389620183a (patch)
tree3eca6416e22e7e534db645fcc5d295444e45e719 /sbin/fdisk
parent1212ac81238580c5963d1c7bc1eef204c6d47031 (diff)
downloadsrc-75cb6f3da05d3f6ae07e110c2869ed389620183a.tar.gz
src-75cb6f3da05d3f6ae07e110c2869ed389620183a.zip
- Document -u, -i, and the difference between them better.
- Remove some historical notes about "future" decisions.
Notes
Notes: svn path=/head/; revision=165121
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.828
1 files changed, 13 insertions, 15 deletions
diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8
index d99e109b797c..78eafa7473a5 100644
--- a/sbin/fdisk/fdisk.8
+++ b/sbin/fdisk/fdisk.8
@@ -1,6 +1,6 @@
.\" $FreeBSD$
.\"
-.Dd December 9, 2006
+.Dd December 12, 2006
.Dt FDISK 8
.Os
.Sh NAME
@@ -75,7 +75,7 @@ Set slice values using the file
.Ar configfile .
The
.Ar configfile
-always modifies existing slices, unless
+only modifies explicitly specified slices, unless
.Fl i
is also given, in which case all existing slices are deleted (marked
as
@@ -100,13 +100,12 @@ table (as you are in the interactive mode).
Use with caution!
.It Fl i
Initialize sector 0 of the disk.
-This implies
-.Fl u ,
-unless
-.Fl f
-is given.
+Existing slice entries will be cleared
+(marked as unused) before editing.
+(Compare with
+.Fl u . )
.It Fl I
-Initialize the contents of sector 0
+Initialize sector 0 slice table
for one
.Fx
slice covering the entire disk.
@@ -120,7 +119,7 @@ option to see what would be written to the slice table.
Implies
.Fl v .
.It Fl u
-Is used for updating (editing) sector 0 of the disk.
+Update (edit) the disk's sector 0 slice table.
Ignored if
.Fl f
is given.
@@ -257,13 +256,15 @@ and
flags is that
the
.Fl u
-flag just edits (updates) the fields as they appear on the disk,
+flag edits (updates) the existing slice parameters
while the
.Fl i
flag is used to
.Dq initialize
-sector 0;
-it will set up the first BIOS slice to use the whole disk for
+them (old values will be ignored);
+if you edit the first slice,
+.Fl i
+will also set it up to use the whole disk for
.Fx
and make it active.
.Sh NOTES
@@ -281,8 +282,6 @@ If you hand craft your disk layout,
please make sure that the
.Fx
slice starts on a cylinder boundary.
-A number of decisions made later may assume this.
-(This might not be necessary later.)
.Pp
Editing an existing slice will most likely result in the loss of
all data in that slice.
@@ -413,7 +412,6 @@ for 2503871 sectors (note: these numbers will be rounded upwards and
downwards to correspond to head and cylinder boundaries):
.Pp
.Dl "p 1 165 1 2503871"
-.Pp
.It Ic a Ar slice
Make
.Ar slice