summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk
Commit message (Collapse)AuthorAgeFilesLines
* 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