summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk
Commit message (Collapse)AuthorAgeFilesLines
* Drop the embedded boot code in favour of a -B option which readsrnordier1999-06-273-142/+100
| | | | | | 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.
* Note that a standard MBR supports booting only from hard drive 0rnordier1999-03-131-1/+4
|
* Add a -b option as a simple way to rewrite the mbr codernordier1999-01-222-4/+27
| | | | (eg. replacing a boot manager with a standard mbr)
* sd0 -> da0joerg1998-11-262-4/+4
|
* Add an entry for the new NetBSD partition id.alex1998-11-061-1/+2
|
* Add an entry for BSD/OS [23].x partition types.jkoshy1998-11-061-1/+2
| | | | | | | | | 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>
* Linux swap and Solaris x86 use the same BIOS partition id.obrien1998-09-161-2/+2
|
* Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unusedcharnier1998-07-062-119/+109
| | | | #includes. Spelling. Use err(3) and add usage().
* Fixed printf format errors.bde1998-06-281-8/+8
|
* Fix a spelling error.steve1998-06-041-1/+1
| | | | | PR: 6857 Submitted by: Josh Gilliam <josh@quick.net>
* Fix typo in prompt.jraynard1998-05-201-1/+1
|
* Add NTFS partition type.obrien1998-03-291-8/+16
| | | | | | | 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.
* Add more DOS/Win95 partition typesache1998-03-141-2/+5
|
* Oops, merge back 32bit fat description from -stable.ache1998-03-071-1/+1
| | | | It was added to -stable but not to -current, strange.
* Add primary fat-32ache1998-03-071-0/+1
|
* Number partitions 1-4, not 0-3.brian1997-06-032-30/+30
| | | | | | 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).
* Don't overflow when calculating the size in MB of a partition.gibbs1997-06-021-3/+12
| | | | No more 241MB 4+ gig partitions for me!
* OpenBSD uses ID 0xa6 for its partitions on i386, arc and others that needimp1997-05-021-0/+1
| | | | | | a BIOS-like partition table. We now detect this correctly and print the right thing. Obtained from: Value obtained from OpenBSD sources.
* This update adds the support for != 512 byte sector SCSI devices tosos1996-12-011-5/+24
| | | | | | | | | | | | | | | | 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)
* Allow fdisk to be driven from a configuration file, making a 3rd-partyjkh1996-11-062-51/+771
| | | | | | | 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>
* The dos() function needs a new second argument, containing the sizebde1996-10-131-10/+13
| | | | | | | | | | | | | | | | | | 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>
* Code clean up. Prototypes, parentheses around assignments used inalex1996-06-211-34/+68
| | | | | | 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.
* Fix even more spelling errors in some more man pages.mpp1996-01-301-3/+3
|
* Fix the spelling of 'partition'.jmz1996-01-041-4/+4
|
* remove the calls to DIOCWLABEL, as it isn't supported any morejulian1995-10-031-0/+4
| | | | | and the error message confuses the user. (just commented out foe now)
* Update to the slices era. Make /dev/rfoo0 the defaults, notjoerg1995-09-012-15/+81
| | | | | | | | | | | | /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.
* Remove trailing whitespace.rgrimes1995-05-302-77/+77
|
* Add NEXTSTEP as claiming partition code 0xA7.gpalmer1995-04-171-0/+1
|
* Recognise Linux filesystems.jkh1995-01-141-2/+3
| | | | Submitted by: remy
* Don't write outside of partp[] if the user gives an invalid partitionbde1994-10-251-1/+2
| | | | | number for the partition to be made active. Do nothing instead. This allows clearing all the active flags by specifying an invalid partition.
* Don't change the active partition when the user says not to change it.bde1994-10-191-6/+11
| | | | | | | 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.
* Don't exit early if the device is not character special or if thebde1994-09-151-4/+11
| | | | | | | | 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.
* Fix gross spelling and typographical errors pointed out by Keith Bostic.jkh1994-04-241-1/+1
|
* The fdisk man page doesn't show correctly the usage possibilities ofrgrimes1993-08-101-0/+1
| | | | | | fdisk. It was missing the disk argument. From: Andreas Schulz <ats@g386bsd.first.gmd.de>
* New manual page systemroot1993-07-021-1/+1
|
* Initial import, 0.1 + pk 0.2.4-B1rgrimes1993-06-123-0/+872
OpenPOWER on IntegriCloud