Home | History | Annotate | Download | only in fdisk
History log of /src/sbin/fdisk/fdisk.8
RevisionDateAuthorComments
 1.93  03-Jan-2025  rillig fdisk: remove unreachable options 'T' and 't', fix lint warnings
 1.92  24-May-2020  wiz Use Nx, fix formatting nit.
 1.91  24-May-2020  jmcneill Add -g flag to preserve GPT headers when updating MBR.
 1.90  15-Dec-2019  wiz Fix xrefs.
 1.89  14-Dec-2019  christos PR/54756: germain: Avoid confusion caused by overuse of the word "file" both
as a noun and an argument name.
 1.88  09-Apr-2019  tnn mention that -B is used to set the timeout for mbr_bootsel
 1.87  27-Jan-2017  abhinav branches: 1.87.12;
Fix spelling of simultaneous.
 1.86  11-Sep-2016  sevan branches: 1.86.2;
- Document the HISTORY of fdisk based on the original post to comp.unix.bsd by
Julian Elischer [1] and the Mach 2.5 Installation notes [2].
I was unable to pin point the exact version of Mach the fdisk utility appeared
as I didn't find documentation older than version 2.5 & no source code or repo
history. fdisk utility appears as a separate utility[3] in v2.5. Due to this,
I've avoided stating the exact version fdisk first appeared in Mach.
- Make correction pointed by textproc/igor
- Bump date

[1] https://groups.google.com/forum/#!searchin/comp.unix.bsd/14-Dec-89$20Robert$20Baron$20(rvb)$20at$20Carnegie-Mellon$20University%7Csort:relevance/comp.unix.bsd/Hhi45vAHxDg

[2] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_install.ps
[3] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_manpages.ps
 1.85  04-Apr-2014  wiz branches: 1.85.8;
-s:
If the optional arguments are not provided, they stay as before or
use the same defaults as the interactive mode, if new.

(feel free to improve)
 1.84  04-Apr-2014  wiz Fix a bug in previous and update detailed -s description.
 1.83  03-Apr-2014  wiz Update SYNOPSIS.
Christos, please check.
 1.82  31-Mar-2014  martin Bring back the playstation2 port - now that a toolchain for it is
available again.
 1.81  06-Oct-2013  apb Suggest using -b 1023/255/63 for modern disks where the BIOS is
configured to use LBA-Assisted translation.
 1.80  06-Oct-2012  wiz Revert my previous commit, I misunderstood the intention.
Noted by njoly.
 1.79  05-Oct-2012  wiz Previous slightly more consistently.
 1.78  05-Oct-2012  njoly Fix indented blocks rendering with mandoc. Switch from .in unsupported
macro to .Bd/.Ed ones. While here kill some unneeded .Pp/.br macros.
 1.77  08-Apr-2012  wiz branches: 1.77.2;
Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
 1.76  06-Apr-2012  christos support sector sizes > 512.
 1.75  04-Jan-2012  wiz Remove trailing whitespace.
 1.74  31-Dec-2011  riz According to most other OSes and documentation sources, an MBR has
one "extended" partition and the partitions inside that are "logical"
partitions. Make fdisk(8) man page follow suit.

Patch from Julian Fagir in PR#45695.
 1.73  01-Dec-2011  wiz Remove trailing whitespace.
 1.72  01-Dec-2011  christos Add a flag to support writing overlapping partitions and explain why.
 1.71  25-Apr-2011  wiz branches: 1.71.4;
Use Nx.
 1.70  07-Apr-2010  wiz Minor punctuation fixes, improve and sort SYNOPSIS, sort flag descriptions.
From Bug Hunting in PR 43130.
 1.69  23-Dec-2009  dsl Add info for -A ptn_alignment[/ptn_0_offset]
 1.68  17-Dec-2009  pooka Use implicit -F for regular files, much like disklabel(8).
 1.67  05-Dec-2009  pooka Remove support for NetBSD/playstation2.
 1.66  29-Nov-2009  tsutsui Add a bunch of useful typical examples. Also use appropriate markup there.
 1.65  28-Nov-2009  tsutsui Update -u usage to follow changes in fdisk.c rev 1.125:
>> Allow MB, GB and CYL (not just M, G and C) and lower case.
>> Don't output a splurious 'd' before "cyl".
>> Fixes PR/37414.

XXX "NNcy" is also allowed?
 1.64  28-Nov-2009  tsutsui Clarify description of -f and -u options.
(-u means updating partition data, not interactive mode)
 1.63  14-Oct-2009  joerg Do not use .Xo / .Xc without a good reason.
 1.62  10-Aug-2009  yamt an example.
 1.61  02-Jul-2009  snj Small grammar tweak.
 1.60  01-Jun-2009  christos Delete GPT partitions if we overwrite with MBR to avoid confusion with disks
that have both MBR and a secondary left over GPT partition signature. From
Mike M. Volokhov
 1.59  20-Jan-2008  dsl Note the existance of mbr_com0 and mbr_com0_9600.
 1.58  23-Dec-2007  apb Remove note about the first track being reserved for the BIOS (it's
not), and replace it with a note about the first partition traditionally
beginning in the second track of the first cylinder.
 1.57  23-Dec-2007  apb Report the first active partition.
 1.56  20-May-2007  wiz branches: 1.56.4; 1.56.6;
Plural fix.
 1.55  11-Mar-2007  apb Bump date for previous.
 1.54  10-Mar-2007  apb Document the new checks for whether a PBR is bootable.
Also add more detail in the introduction, and a few
more references.
 1.53  24-Sep-2006  wiz branches: 1.53.2;
Use more macros. New sentence, new line.
 1.52  24-Sep-2006  jmcneill PR# 28660: how to remove bootmenu text from some partition
 1.51  07-Apr-2005  dsl Allow partition sizes to be input in GB
 1.50  13-Jul-2004  uwe s/Nm/Nx/, as it's NetBSD that has ports, not fdisk.
 1.49  13-Jul-2004  wiz Bump date for previous; new sentence, new line;
sort list of ports where fdisk is available.
 1.48  13-Jul-2004  darcy Add note top man page explaining that fdisk is not used on all platforms
and list the ones that is is.

Partial fix to PR#25943
 1.47  22-Mar-2004  lukem Use .Pp instead of .br as appropriate.
(This needs more work)
 1.46  20-Mar-2004  wiz Nm needs no argument; also, correct wrong Nm usage.
 1.45  19-Mar-2004  snj Bump date for last. Use Sq for single quotes. Drop trailing space.
New sentence, new line. Sort xrefs. Fix a spelling error.
 1.44  19-Mar-2004  dyoung Add flag -F, options -t disktab and -T disktype to fdisk. Flag -F
indicates that the target of the fdisk operation is a file, not a
disk. With -t and -T, the user tells fdisk the geometry for the
file If the default geometry that fdisk will "fake up" for a file
are not satisfactory, the user may tell the geometry to fdisk using
-t disktab -T disktype.
 1.43  06-Oct-2003  lukem be consistent about "MS-DOS"
 1.42  03-Jun-2003  joda add missing . before Fl
 1.41  06-May-2003  wiz MBR, not mbr.
 1.40  01-May-2003  dsl Change a couple of .Em to .Ar
 1.39  01-May-2003  wiz Replace some raw roff with mdoc.
 1.38  01-May-2003  wiz Improve formatting for [/bootmenu], requested by dsl; add some commas.
 1.37  01-May-2003  dsl a mbr -> an mbr
 1.36  01-May-2003  wiz Drop trailing space.
 1.35  30-Apr-2003  dsl Rototilled fdisk that supports:
- editing of the extended partition list
- user friendly default start/size for new partitions
- partition start/size input in sectors, cylinders or MB
- bootsel menu names configured with paritition bounds
- partition update loop asks used which partition to change
(instead of asking about each partition in turn).
- detection (and erroring) of overlapped partitions.
- automatic installation of correct mbr_xxx code (after prompting user)
 1.34  25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.33  09-Feb-2003  wiz Drop trailing space (in last).
 1.32  09-Feb-2003  perry Slightly clarify/improve the documentation for the -B (boot selector)
option
 1.31  01-Oct-2002  wiz New sentence, new line. By Robert Elz with minimal fixes.
 1.30  26-Mar-2002  christos PR/16073: Jachym _Freza_ Holecek: Add the ability to list known partition types.
While I am here, KNF a bit.
 1.29  05-Mar-2002  wiz Drop duplicate .Pp.
 1.28  08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.27  13-Jan-2002  fair Cross-link fdisk(8), mbr(8), and mbrlabel(8) in the SEE ALSO sections,
as suggested in PR 14288. Also add a little white space to mbr(8) to
make it a little more readable.
 1.26  16-Nov-2001  wiz Whitespace nits
 1.25  05-Jun-2001  wiz Drop arguments of .Os.
 1.24  18-Dec-2000  lukem list the options in a specific options list (as per the `traditional'
man page). i find this much easier to read than option descriptions
scattered amongst paragraphs of text.
 1.23  14-Nov-2000  abs xref (disklabel.8, fdisk.8, mbrlabel.8) as appropriate
 1.22  07-Jun-2000  augustss Note that sysid 0 marks a partition as unused.
 1.21  11-Oct-1999  hubertf branches: 1.21.4;
Add note that "fdisk -i" is the same as "fdisk /mbr" on MSDOS.
 1.20  21-Sep-1999  simonb branches: 1.20.2;
Fix tyop and clean up usage of commas a little.
 1.19  02-May-1999  fvdl Remove confusing entry about cylinder boundaries.
 1.18  17-Apr-1999  fvdl Make the bootselector configurable by fdisk. Add a -B flag to this
effect (i386 only of course). Also change one branch in the
bootselector code to an explicit 16 bit one, and check both
the boot menu and partition tables to see if the partition
requested by the user should be booted. This check just in case,
should the bootselector menu and partition table get out of sync
somehow. (mmm, bytesqueezing)
 1.17  07-Mar-1999  mycroft branches: 1.17.2;
Clean up SYNOPSIS formatting.
 1.16  15-Oct-1998  ws Separate master bootcode from fdisk.
 1.15  28-Sep-1998  ws Automagically initialize boot code and partition table if not yet valid.
Don't touch the partition table on -i, if previously valid.
 1.14  19-Feb-1998  drochner update for new partition ID
 1.13  06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.12  26-Nov-1997  ross Typos, English.
 1.11  14-Sep-1997  lukem branches: 1.11.2;
correct use of various mdoc macros to cleanup resultant man page
 1.10  05-Sep-1997  phil -- add -b flag for setting fdisk's idea of BIOS geometry from command line
-- cleanup so WARNS=1 works
-- man page updated to reality.
 1.9  11-Aug-1997  phil Upgrade for non-interactive use. Interactive use is nearly unchanged.
-i no longer implies -u, -i now does not use the entire first track
because some BIOSes refuse to boot from a partition in the first track.
-s renamed to -S, new -s for non-interactive setting of a partition's
id, offset and size. Updated documentation to match.
 1.8  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.7  23-Sep-1994  mycroft Clean up a bit more.
 1.6  23-Sep-1994  mycroft Clean this up a bit.
 1.5  28-Jan-1994  jtc More spelling errors.
 1.4  14-Jan-1994  jtc Fix spelling errors
 1.3  06-Dec-1993  cgd 386bsd -> NetBSD
 1.2  02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1  09-Apr-1993  cgd added a 386bsd fdisk program, by julian elischer. (patch 111)
 1.11.2.1  27-Nov-1997  mellon Pull rev 1.12 up from trunk (ross)
 1.17.2.3  21-Nov-1999  he Pull up revision 1.20 (requested by simonb):
Fix typo and clean up usage of commas a little.
 1.17.2.2  02-May-1999  perry pullup 1.18->1.19 (fvdl)
 1.17.2.1  18-Apr-1999  fvdl Pull up bootselector mods, as approved by releng.
 1.20.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.21.4.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.53.2.1  22-Mar-2007  jdc Pull up revisions 1.54-1.55 (requested by apb in ticket #513).

Document the new checks for whether a PBR is bootable.
Also add more detail in the introduction, and a few
more references.

Bump date for previous.
 1.56.6.2  18-Feb-2008  mjf Sync with HEAD.
 1.56.6.1  27-Dec-2007  mjf Sync with HEAD.
 1.56.4.2  23-Mar-2008  matt sync with HEAD
 1.56.4.1  09-Jan-2008  matt sync with HEAD
 1.71.4.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.71.4.2  30-Oct-2012  yamt sync with head
 1.71.4.1  17-Apr-2012  yamt sync with head
 1.77.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.77.2.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.85.8.1  20-Mar-2017  pgoyette Sync with HEAD
 1.86.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.87.12.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.87.12.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed