History log of /freebsd-10.1-release/sbin/fdisk/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


255977 01-Oct-2013 pluknet

Sweep man pages replacing ad -> ada.

Approved by: re (blackend)
MFC after: 1 week
X-MFC note: stable/9 only


234345 16-Apr-2012 marck

VMware environment is frequent nowadays. Add VMFS id.

MFC after: 2 weeks


227295 07-Nov-2011 ae

Fix multi-line comment formatting.

Pointed by: jh
MFC after: 1 week


227292 07-Nov-2011 ae

Improve error reporting when MBR can not be written.
Remove obsolete code which uses DIOCSMBR ioctl.
When writing MBR first check that GEOM_MBR is available, if it is not
available, then try write MBR directly to provider. If both are failed,
then recommend to use gpart(8).

MFC after: 2 week


227280 06-Nov-2011 ae

Initialize "acc" value inside the loop to reset failed attempts.

PR: misc/162262
MFC after: 3 days


227272 06-Nov-2011 ae

Add reference to gpart(8).

MFC after: 3 days


227081 04-Nov-2011 ed

Add missing static keywords for global variables to tools in sbin/.

These tools declare global variables without using the static keyword,
even though their use is limited to a single C-file, or without placing
an extern declaration of them in the proper header file.


226908 29-Oct-2011 jmg

remove trailing whitespace...

MFC after: 1 week


226907 29-Oct-2011 jmg

error if /boot/mbr is empty... This can happen on a system like arm
that doesn't have a /boot/mbr, and you touch it to get past the previous
error message...

MFC after: 1 week


225007 19-Aug-2011 ae

The decimal() function was changed in r217808 to take the
maximum value instead of number of bits. But for case when
limitation is not needed it erroneously skips conversion to
number and always returns zero. So, don't skip conversion
for case when limitation is not needed.

PR: bin/159765
Approved by: re (kib)


224150 17-Jul-2011 rstone

The MBR uses a 32-bit unsigned integer to store the size of a slice, but
fdisk(1) internally uses a signed int. Should a user attempt to specify
a slice containing more than 2^31 - 1 sectors, an error will be reported
on systems with sizeof(long) == 4 and the slice size will be silently
truncated on systems with sizeof(long) > 4.

Instead use an unsigned long to store the slice size in fdisk(1). This
allows the user to specify a slice size up to the maximum permitted by
the MBR on-disk format and does not have any problems with silent
truncation should the use specify an slice size larger than 2^32 on systems
with sizeof(long) > 4.

Submitted by: Mark Johnston (markjdb AT gmail DOT com)
MFC after: 2 weeks


217808 25-Jan-2011 sobomax

Supply maximum value as an argument to the decimal() function
instead of supplying number of bits.

Submitted by: bde


217771 24-Jan-2011 sobomax

o Cylinder numbers are 10 bits in the MBR;

o Sector numbers are only 6 bits in the MBR;

o bde'cize name of the local variable.

Submitted by: bde


217714 22-Jan-2011 sobomax

Warn user when value entered is greated than the amount supported
by the MBR for the given parameter and set that parameter to the
maximum value instead of just truncating the most significant part
silently.

Could happen for example if the capacity of the device is more
than 2TB, so that the number of sectors is greater than 2Mib.

MFC after: 1 month


212724 16-Sep-2010 brian

Add support for identifying a journaled root filesystem.
Fix support for identifying the given /dev/vinum/root example.

MFC after: 3 weeks


212247 06-Sep-2010 brian

Handle geli-encrypted root disk devices.

MFC after: 2 weeks


194333 17-Jun-2009 lulf

- Back out the previous change in order to maintain compatibility.


194244 15-Jun-2009 lulf

- The maximum number of heads is 255, not 256.

Pointed out by: marcel


192772 25-May-2009 brian

Bump the document date to reflect the 'p' command enhancements.

Suggested by: trhodes


192745 25-May-2009 brian

Enhance the 'p' command so that it understands size qualifiers (K/M/G) and
so that it understands '*' as 'DTRT'.

PR: 68312
Submitted by: Rene de Vries - rene at tunix dot nl (mostly)
MFC after: 3 weeks


187248 14-Jan-2009 luigi

Reword some entries for NTFS and DOS.
Add entries for DELL and ASUS recovery partitions.

MFC after: 3 days


187246 14-Jan-2009 luigi

Another change from Christoph:
replace the table of partition with a simpler and faster array of strings.
The change in the array is done mechanically, using vi commands.
Most entries in the table are probably 15+ years old and largely outdated,
so the next step is to remove stale entries with more current values.

Submitted by: Christoph Mallon, with small changes from me
MFC after: 3 days


187241 14-Jan-2009 luigi

more changes from Christoph:
pass a pointer instead of an index to print_part()
so it does not depend on a static variable.

Submitted by: Christoph Mallon
MFC after: 3 days


187239 14-Jan-2009 luigi

remove unused argument to print_s0()

Submitted by: Christoph Mallon
MFC after: 3 days


187203 13-Jan-2009 luigi

Some small fixes submitted by Christoph Mallon, specifically:

+ Remove a dead field of a struct. It serves no purpose anymore.
+ Remove a \n at the end of the format string of err(); the err()
function already adds a \n ;
+ remove many unnecessary casts which obfuscate the code.

This file has a huge number of indentation bugs, but I'd rather fix
them when/if we happen to modify the relevant parts of the code.

Submitted by: Christoph Mallon
MFC after: 3 days


183487 30-Sep-2008 lulf

- Improve error message given on g_providername call failure.
- While there, make error messages consistent with the rest.

Approved by: kib (mentor)


183296 23-Sep-2008 ru

Add missing library dependencies.

PR: bin/127573
Submitted by: Eygene Ryabinkin


182844 07-Sep-2008 lulf

- Make use of the new and g_device_path utility function in libgeom to avoid
duplication of code in fdisk and boot0cfg. Also make use of g_providername to
fix an issue with fdisk and boot0cfg not using the correct provider when
writing the MBR.

Reviewed by: phk
Approved by: pjd (mentor)


181036 31-Jul-2008 obrien

Add a -q[uiet] flag for scripts.


169324 06-May-2007 andre

Add Apple HFS+ (0xAF) MBR partition type identificator.

Submitted by: rpaulo (SoC2007 student)


169143 30-Apr-2007 maxim

o Add -p flag: print a slice table in fdisk configuration file format.
Now it is possible to do something like fdisk -p ad0 | fdisk -f - ad1.

PR: bin/110182
Submitted by: Jukka A. Ukkonen
MFC after: 1 month


165121 12-Dec-2006 ru

- Document -u, -i, and the difference between them better.
- Remove some historical notes about "future" decisions.


165017 08-Dec-2006 ru

Document the following change in behavior:

: fdisk.c revision 1.74
: date: 2004/06/14 07:21:19; author: phk; state: Exp; lines: +3 -3
: Make fdisk initialize the first instead of the last slice by default.


159757 18-Jun-2006 simon

- Fail with an understandable error message if we cannot detect the
sector size, instead of later failing with an error about /boot/mbr
not being a multiple of the sector size (since we end up with an
assumed sector size of MAX_SEC_SIZE * 2).
- We query the sector size via an IOCTL anyway, so if that succeeds
use that instead of probing for it via read(2) calls. This fixes
the problem with fdisk failing to operate on at least graid3 and
md(4) devices on kernels with src/sys/geom/geom_dev.c before
rev. 1.90, due to fdisk failing to detect the sector size.
- When detecting the root device allow "/" characters in it, which
happens with e.g. gmirror devices.

Reviewed by: cperciva
MFC after: 1 week


150249 17-Sep-2005 rodrigc

Call gctl_free() to free resource allocated with gctl_get_handle().

PR: bin/84664
Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net>
MFC after: 3 days


148035 15-Jul-2005 phk

Attempt gctl verb "write MBR" when updating.

This should solve the problem of modifying a busy MBR.


145763 01-May-2005 nyan

cosmetic changes.


145747 01-May-2005 nyan

Use NDOSPART macro instead of a magic number.


145690 29-Apr-2005 phk

If we resort to opening a slice instead of the base device, do so with
the correct mode for our arguments.


137511 10-Nov-2004 phk

Add 0xbf as new partition id for Solaris.

Submitted by: Lawrence.Lee@sun.com


136720 20-Oct-2004 ru

Don't prepend "/dev" if an argument given is an absolute pathname.

Reviewed by: jhb


131488 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


130452 14-Jun-2004 phk

Make fdisk initialize the first instead of the last slice by default.


126178 23-Feb-2004 johan

style.Makefile(5):
Use WARNS?= instead of WARNS=.


123637 18-Dec-2003 harti

Add the Solaris x86 boot partition type. This is used in Solaris 10
(and perhaps earlier).

Submitted by: Joerg Schilling <schilling@fokus.fraunhofer.de>


122627 13-Nov-2003 des

Warn about partitions that would overlap with the master boot record, and
if the user agrees, move them out one track.

MFC after: 7 days


120998 11-Oct-2003 blackend

s/disklabel/bsdlabel where needed.


114589 03-May-2003 obrien

Use __FBSDID() to quiet GCC 3.3 warnings.


113454 13-Apr-2003 phk

Use symbolic constants from <sys/diskmbr.h> instead of local constants.

Always set the magic sequence when we write, rather than trusting the
previously read boot code to do so.

Use explicit encoding/decoding of little endian disk image.

Remove a comment which was OBE.

Change the test vector for "fdisk -I" to reflect that there is a magic
sequence in the result now.

Add test case for "fdisk" which reads the image back.

At least for the two test-cases this program now gives the same result
on sparc64 as on i386. The lack of an installed /boot/mbr on sparc64
raises an (un)interesting question.


113451 13-Apr-2003 phk

Pull in the encoding/decoding functions for struct dos_partition.

Add a very simple regression test for "fdisk -I".


112826 29-Mar-2003 phk

Use default geometry in case the device doesn't provide one:
512 for sectorsize.
63 for sectors.
255 for heads.
This will mostly show up on MD(4) devices.


108470 30-Dec-2002 schweikh

Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.


108395 29-Dec-2002 phk

Make fdisk work on active GEOM devices.


106033 27-Oct-2002 phk

Fix the regexp evilness so that fdisk can (again?) find the device
root is on from the root mount path.

Spotted by: imp


106031 27-Oct-2002 phk

Don't attempt to find the geometry with disklabel based ioctl, it just
issues a useless warning now.


104272 01-Oct-2002 phk

Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:

Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h.

These two new copies are still intact copies of disklabel.h and
therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them
in programs which already include <sys.disklabel.h> is currently a
no-op.

This commit adds a number of such #includes.

Once I have verified that I have fixed all the places which need fixing,
I will commit the updated versions of the three #include files.

Sponsored by: DARPA & NAI Labs.


103665 20-Sep-2002 phk

Straighten out get_params().

Sponsored by: DARPA & NAI Labs.


103348 15-Sep-2002 phk

Try to pick up disk geometry with specific DIOC* ioctls, rather than
expecting a bogo-disklabel to contain them, if possible.

This makes fdisk work with GEOM.


102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


100202 16-Jul-2002 bde

Fixed some print format errors. Avoid some warnings about possible
(but not actual) alignment problems. Both of these bugs were detected
on ia64's and were fatal on ia64's due to premature setting of WARNS
to 4.


97569 30-May-2002 ru

mdoc(7) police: tidy up the markup and some wording.


95860 01-May-2002 peter

Add a hack so that fdisk(8) can initialize an ia64 disk. There is
no /boot/mbr to read the boot code from (ia64 does not *have* bootblocks!).
fdisk depended on magic in the /boot/mbr file to initialize some fields.


95602 28-Apr-2002 grog

Add partition type for IBM's JFS.

Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>


95002 18-Apr-2002 trhodes

Fix the fdisk(8) manual page.
s/partition/slice/ in fdisk.8
fix a bug in fdisk(8) where it did not honer -t when using -I

PR: 36563 and 35688
Submitted by: bde
Reviewed by: bde


93394 29-Mar-2002 phk

Get this to WARNS=4 and closer to style(9) at a sacrifice in
linelength.


90866 18-Feb-2002 joe

Add some more partition types.

PR: i386/14793
MFC after: 3 days


88714 30-Dec-2001 iedowse

Oops, the arguments to a bcopy() were reversed, which broke zeroing
of unused partition entries and later detection of unused entries.

Use memcpy to be consistent with the rest of the code, and fix a
minor style nit.

Submitted by: bde


87325 04-Dec-2001 obrien

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


85027 16-Oct-2001 bde

Fixed spelling error in previous commit.


84964 15-Oct-2001 peter

Add 0xEE (EFI GPT) and 0xEF (EFI System Partition)


81449 10-Aug-2001 ru

mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.


81164 05-Aug-2001 iedowse

Fix a number of bugs and annoyances in fdisk, many of which were
pointed out by bde:
- Ask for user confirmation before adjusting to a head/cylinder
boundary (only when running interactively), and separate this
adjustment from the automatic calculation of c/h/s parameters.
- In sanitize_partition, don't change any values in the slice until
we know that the automatic adjustment will succeed.
- When auto-adjusting, ignore unused slices and give an appropriate
error for other zero-size slices depending on the cause.
- Change dos() to do all of the c/h/s calculations for a whole slice;
this fixes a bug where the ending c/h/s of an unused slice was set
incorrectly.
- When changing the active slice, detect the currently active slice
number instead of always defaulting to slice 4.
- Call fflush(stdout) before calling fgets().
- Test for fgets() returning NULL so we don't loop on EOF.

Reviewed by: bde


79850 18-Jul-2001 ru

fdisk(8): document the default for -b, add xref to boot0cfg(8).
boot0cfg(8): add FILES section.

Reviewed by: rnordier


79754 15-Jul-2001 dd

Remove whitespace at EOL.


79681 13-Jul-2001 joerg

After some (long-standing ;-) critics from Bruce, throw away the old
device search code i introduce nearly six years ago in rev 1.8. Bruce
suggested to rather use the device name of the root filesystem instead
which is certainly the most sensible default. Since there are many
possible cases for a root filesystem name (device with and without
slices, consider /dev/vinum/root even though it currently could not
work as such), there's some heuristic using a RE in order to find out
the canonical device name from the mounted name. This probably won't
quite fit for a NFS root (can't test that right now), but then,
there's hard to find a good default for those machines anyway. ;-)

This unbreaks the functionality of rev 1.2 i once broke in 1.8. :)


79530 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79306 05-Jul-2001 joerg

Make open_disk() fail nicely upon encountering an ENOENT so to not
prematurely terminate the search for a usable disk. ENOENT is quite
normal in particulare now with the advent of devfs.

While being here, also remove /dev/wd0 and /dev/od0 from the list of
disks to search since we don't have them anymore.

MFC after: 1 week


75312 08-Apr-2001 dd

wd0 -> ad0

PR: 26343
Submitted by: Sergey A. Osokin <osa@FreeBSD.org.ru>


74815 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74531 20-Mar-2001 ru

Set the default manual section for sbin/ to 8.


73233 28-Feb-2001 ru

Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


70152 18-Dec-2000 ru

Prepare for mdoc(7)NG.


70022 14-Dec-2000 ru

mdoc(7) police: added missing .Os call.


69371 29-Nov-2000 obrien

I didn't maintain the "chs" ordering. Rather the bug was in print_part().

Requested by: bde.


68960 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68871 18-Nov-2000 obrien

Make the order of values prompted for with the "-i" option match print_part()


68716 14-Nov-2000 ru

Use Fx macro wherever possible.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


65054 24-Aug-2000 jhb

- When adjusting the end of a partition to lie on a cylinder boundary, don't
adjust the size, but the actual end.
- Break out some of the sanity checks on partitions into a sanitize_partition
function.
- When adjusting partitions, always adjust the start "up", and the end "down"
so that we stay within the boundaries of the original request.
- Various small nits found by bde.

Reported by: bde, imp, rgrimes


64316 07-Aug-2000 joe

0xA0 = Suspend to disk.


63729 21-Jul-2000 jhb

Fix a really stupid bug where I assumed sizeof(int) == 2. This resulted in
MBR's with a 4th slice failing the signature check and fdisk saying that
they are invalid.

Submitted by: bde


63329 17-Jul-2000 jhb

- Don't try to free mboot.bootinst before it has been allocated. If, for
some reason, mboot.bootinst is not initialized to NULL at the beginning
of the program, then the last commit to this would try to free whatever
bogus address is in it.
- Restore the behavior of free()'ing the mboot.bootinst buffer after we
abuse it to determine the sector size of the disk (as clearly noted in
the comments). Properly fix the double free() bug by setting the pointer
to NULL after we free it.


63218 15-Jul-2000 ache

Fix memory leak/double free found by phkmalloc
Uniform mboot.bootinst allocation code to be independent of functions order


63027 12-Jul-2000 jhb

- Always respect cylinder boundaries when creating slices unless the user
explicitly sets the geometry.
- Allow for MBR boot loaders that are longer than one sector. Only accept
boot loaders if their size is a multiple of the sector size, however.


62178 27-Jun-2000 jhb

Catch the usage() function up to the command line changes. Add -I and
remove -e.


61568 12-Jun-2000 brian

0x39 == plan9

Obtained from: OpenBSD


61461 09-Jun-2000 ghelmer

Add QNX 4 partitions to fdisk's list.

PR: bin/8809
Submitted by: "John C. Place" <jcplace@ibm.net>
Prompted by: <nrahlstr@winternet.com>


61103 31-May-2000 msmith

Don't try to open the /dev/rXXX device.


57976 13-Mar-2000 sheldonh

Fix nits in previous commit: restore option ordering of the option
description list; break an overly long line; use the Fx macro instead
of "FreeBSD".


57896 10-Mar-2000 imp

-e -> -I change.
-s for sumary

Approved by: jkh


57872 09-Mar-2000 obrien

Don't use the old raw name for disk devices.


57139 11-Feb-2000 ru

Add ata(4) support.

Approved by: jkh


51636 25-Sep-1999 billf

Stuff a variable declaration inside a #if block that is only used for that
#if.


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


50370 25-Aug-1999 dwhite

Add -e option to usage().


50215 23-Aug-1999 phk

Add new option to fdisk: -e

This wipes the MBR and creates slice 1 as a FreeBSD slice covering the
disk starting from the second track to the cylinder aligned end of the disk.

This is the most compatibly layout we have as far as I know.


48282 27-Jun-1999 rnordier

Drop the embedded boot code in favour of a -B option which reads
the boot code from /boot/mbr, or elsewhere as defined by the revised
"-b bootcode" option; use getopt(3); clarify usage(); partially
revise man page; etc.


44700 13-Mar-1999 rnordier

Note that a standard MBR supports booting only from hard drive 0


43054 22-Jan-1999 rnordier

Add a -b option as a simple way to rewrite the mbr code
(eg. replacing a boot manager with a standard mbr)


41354 26-Nov-1998 joerg

sd0 -> da0


40947 06-Nov-1998 alex

Add an entry for the new NetBSD partition id.


40946 06-Nov-1998 jkoshy

Add an entry for BSD/OS [23].x partition types.

I don't have access to a BSD/OS machine to check the veracity of the
magic number. However, no harm will be done by the commit and since
someone was motivated enough to file a PR, I'm committing the change.

PR: 7629
Submitted by: Jos Backus <jbackus@plex.nl>


39377 16-Sep-1998 obrien

Linux swap and Solaris x86 use the same BIOS partition id.


37415 06-Jul-1998 charnier

Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unused
#includes. Spelling. Use err(3) and add usage().


37244 28-Jun-1998 bde

Fixed printf format errors.


36650 04-Jun-1998 steve

Fix a spelling error.

PR: 6857
Submitted by: Josh Gilliam <josh@quick.net>


36262 20-May-1998 jraynard

Fix typo in prompt.


34952 29-Mar-1998 obrien

Add NTFS partition type.
Add "." at the end of some sentances.
Also print "flag 80" in English.
Give hint that "sysid" for FreeBSD is 165 decimal.
Ensure active partition specified by user is 1-4.


34582 14-Mar-1998 ache

Add more DOS/Win95 partition types


34209 07-Mar-1998 ache

Oops, merge back 32bit fat description from -stable.
It was added to -stable but not to -current, strange.


34148 07-Mar-1998 ache

Add primary fat-32


26421 03-Jun-1997 brian

Number partitions 1-4, not 0-3.

Any existing config files (using the -f option) will need
to be changed although using the old files will usually result
in an error (partition 0 is invalid).


26389 02-Jun-1997 gibbs

Don't overflow when calculating the size in MB of a partition.

No more 241MB 4+ gig partitions for me!


25378 02-May-1997 imp

OpenBSD uses ID 0xa6 for its partitions on i386, arc and others that need
a BIOS-like partition table. We now detect this correctly and print the
right thing.
Obtained from: Value obtained from OpenBSD sources.


20061 01-Dec-1996 sos

This update adds the support for != 512 byte sector SCSI devices to
the sd & od drivers. There is also slight changes to fdisk & newfs
in order to comply with different sectorsizes.
Currently sectors of size 512, 1024 & 2048 are supported, the only
restriction beeing in fdisk, which hunts for the sectorsize of
the device.
This is based on patches to od.c and the other system files by
John Gumb & Barry Scott, minor changes and the sd.c patches by
me.
There also exist some patches for the msdos filesys code, but I
havn't been able to test those (yet).

John Gumb (john@talisker.demon.co.uk)
Barry Scott (barry@scottb.demon.co.uk)


19459 06-Nov-1996 jkh

Allow fdisk to be driven from a configuration file, making a 3rd-party
utility for front-ending its operation more of a possibility.

2.2-RELEASE candiate. Closes PR#1960
Submitted-By: Darryl Okahata <darrylo@hpnmhjw.sr.hp.com>


18915 13-Oct-1996 bde

The dos() function needs a new second argument, containing the size
of the partition. Only if the size is 0 should the
special handling of 0 as first argument be triggered.

[This bug caused offset 0 to give C/H/S = 0/0/0 instead of 0/0/1.]

The init_sector0 function needs to decrease the first argument
to the second call to dos() by one to be consistent with the
calls to dos() in change_part().

[This bug caused fdisk -i to create bogus partition tables with
the ending C/H/S value 1 too high. This usually gives S = 1
instead of S = maximum, so the geometry guessing in the slice
code and perhaps in SCSI BIOSes was defeated.]

Submitted by: Tor Egge <tegge@itea.ntnu.no>


16561 21-Jun-1996 alex

Code clean up. Prototypes, parentheses around assignments used in
if statements, #if 0 some unused code, use off_t in calls to read/
write_disk, fix a printf format, remove unused variables, and
#include necessary files.


13750 30-Jan-1996 mpp

Fix even more spelling errors in some more man pages.


13208 04-Jan-1996 jmz

Fix the spelling of 'partition'.


11143 03-Oct-1995 julian

remove the calls to DIOCWLABEL, as it isn't supported any more
and the error message confuses the user.
(just commented out foe now)


10514 01-Sep-1995 joerg

Update to the slices era. Make /dev/rfoo0 the defaults, not
/dev/rfoo0d.

Scan a list of devices instead of insisting on all the world
being wd0.

Allow for disk names to be specified (e.g. `sd0') instead of full
path names only.

Sync the man page with the reality.


8871 30-May-1995 rgrimes

Remove trailing whitespace.


7902 17-Apr-1995 gpalmer

Add NEXTSTEP as claiming partition code 0xA7.


5576 14-Jan-1995 jkh

Recognise Linux filesystems.
Submitted by: remy


3858 25-Oct-1994 bde

Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active. Do nothing instead. This
allows clearing all the active flags by specifying an invalid partition.


3723 19-Oct-1994 bde

Don't change the active partition when the user says not to change it.

Convert absolute sector 0 to C/H/S 0/0/0, not 0/0/1.

Open in O_RDWR mode for the undocumented -a option, so that -a can be
used without -u.


2810 15-Sep-1994 bde

Don't exit early if the device is not character special or if the
device driver cannot supply a label (real or faked). This allows
you to practice using fdisk on disposable media (e.g., "dd count=1
<dev/zero >/tmp/junk; fdisk /tmp/junk", "dd count=1 </etc/passwd
>/tmp/fix-up-the-mess; fdisk /tmp/fix-up-the-mess") and allows me
to test DOSpartitioning and labelling on floppies.


1411 24-Apr-1994 jkh

Fix gross spelling and typographical errors pointed out by Keith Bostic.


270 10-Aug-1993 rgrimes

The fdisk man page doesn't show correctly the usage possibilities of
fdisk. It was missing the disk argument.

From: Andreas Schulz <ats@g386bsd.first.gmd.de>


86 02-Jul-1993 root

New manual page system


4 12-Jun-1993 rgrimes

Initial import, 0.1 + pk 0.2.4-B1