Commit Graph

102 Commits

Author SHA1 Message Date
dbj
5aa1b71afb add "Apple UFS" and "Apple Boot" partition ids used by Darwin 2002-03-04 04:22:22 +00:00
scw
aea350ead2 fdisk(8) is needed on mvmeppc since PPCBUG uses PeeCee-style MBR
partition info when booting from disk.
2002-02-27 22:31:18 +00:00
ross
dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
fair
fe1cad9aa9 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.
2002-01-13 08:02:14 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz
217af7b8a1 Use .Nx for NetBSD, drop some unnecessary empty lines, use standard headers. 2001-11-16 11:36:09 +00:00
wiz
4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
lukem
c3e4fa53d9 if sysctl kern.root_device is availalbe, use that the default device
(rather than /dev/rwd0d).  display the disk device used when printing
the partition table.
2001-11-07 14:50:32 +00:00
lukem
058fbb840d opendisk(3) checks the device type for us 2001-11-01 07:04:18 +00:00
uch
0cbd019fc3 playstation2 support 2001-10-15 16:22:50 +00:00
tv
d63e12815a objcopy -> ${OBJCOPY} 2001-09-22 02:01:13 +00:00
wiz
73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
lukem
f5cf87f961 add fix by Minoura Makoto to correctly support recursive extended partitions.
the offset of an extended sub-partition is the offset of the top-level
extended partition, not the partition before it (this is annoying, and
makes `clean' recursive mbr descent difficult).  fixes PRs 11829 and 12677.
2001-04-16 10:47:15 +00:00
christos
8ce2d80d7a back out previous; it is better for now to handle the dependencies in
bsd.prog.mk
2001-01-14 09:41:41 +00:00
christos
c26e2519ac add .NOTMAIN for good measure. 2001-01-14 09:24:30 +00:00
christos
726afedd26 don't use OBJS in the dependency line because it is not defined yet. 2001-01-14 09:22:01 +00:00
christos
9b6a2fbeb4 don't use OBJ in the dependency line cause it is not defined yet. 2001-01-14 09:21:24 +00:00
lukem
45c96da8ec use MBR_IS_EXTENDED() instead of local test (which was missing a test case) 2000-12-24 13:32:41 +00:00
lukem
0f2402d559 * Recursively print out extended partition entries. An extended partition is
effectively an MBR with it's own partition table which contains another
  4 `slots', each of which can be another extended partition...
  This involved reworking some of the internal functions.
* Use off_t appropriately (so we can manipulate sectors past 4GB).
* Tweak to compile with WARNS=2
2000-12-19 16:01:28 +00:00
lukem
b813a81a7c convert to ANSI KNF 2000-12-19 15:44:27 +00:00
lukem
a67eb3719f 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.
2000-12-18 23:42:40 +00:00
abs
fc52578672 xref (disklabel.8, fdisk.8, mbrlabel.8) as appropriate 2000-11-14 11:06:19 +00:00
lukem
42039d09f9 use .Xr 2000-11-07 05:40:17 +00:00
thorpej
6d78b8c024 When fetching the disk's hardware geometry, first attempt the
DIOCGDEFLABEL ioctl, then fall back onto the DIOCGDINFO ioctl
if that fails.  This ensures that we will get the actual hardware
geometry info rather than any bogus info that might have been
previously written to the disk's label area.
2000-07-06 17:22:43 +00:00
wiz
334298998c Fix QNX partition IDs, confirmed by looking at FreeBSD's fdisk.
Note: 77 == 0x4d
2000-06-14 19:35:50 +00:00
augustss
73053385f4 Note that sysid 0 marks a partition as unused. 2000-06-07 22:40:59 +00:00
fvdl
1033142eea Truncate the CHS values correctly in case a partition boundary exceeds
their range.
2000-05-27 19:02:54 +00:00
nonaka
a279fa1682 also install on prep. 2000-05-02 18:20:41 +00:00
soren
c1e87c4d5e Also install on cobalt. 2000-03-19 23:01:07 +00:00
perry
39546c529f add bootselect MLINK -- from jhawk 2000-03-06 01:23:11 +00:00
hubertf
04a9ed5842 Revert last change, it was caused by the build not picking the
right files if DESTDIR is set.
2000-02-11 16:14:32 +00:00
hubertf
e597c0a106 s/STRIP/STRIPPROG/ 2000-02-11 15:36:25 +00:00
tsutsui
c539ff5d84 STRIPPROG -> STRIP 2000-02-01 06:00:35 +00:00
soda
07a6bcdde4 Build fdisk also on arc 2000-01-31 15:54:48 +00:00
hubertf
92bd305e4a Add note that "fdisk -i" is the same as "fdisk /mbr" on MSDOS. 1999-10-11 01:04:57 +00:00
enami
d758f82f45 Oops, needs an operator. 1999-09-25 04:27:55 +00:00
enami
cd2531c01e Build fdisk also on hpcmips. 1999-09-25 04:26:28 +00:00
enami
62d623bfc4 Don't decend into the subdirectory mbr_bootsel except i386,
since it currently doesn't contain MI thing and not compile
on ofppc box (thanks Wolfgang) and probably on bebox box.
1999-09-25 04:18:20 +00:00
simonb
2bb88f2837 Fix tyop and clean up usage of commas a little. 1999-09-21 12:09:25 +00:00
soren
b49886ea7a Update usage().
Prevent buffer overflows when configuring boot selector.
Cycle through partitions when entering boot names.
Use '<UNUSED>' consistently.

Reviewed by: fvdl
1999-09-06 23:58:59 +00:00
sakamoto
8ecadeaecd Build fdisk on bebox and ofppc(replaced powerpc). 1999-07-02 17:48:26 +00:00
thorpej
7d344bb51b Make sure the boot selector actually gets updated if you only change
the timeout and/or the default menu choice.
1999-06-04 18:59:15 +00:00
fvdl
6a2c64449b Sanity check the drive number in %dl and use it instead of blindly
assuming disk 0.
1999-05-02 13:48:30 +00:00
fvdl
7d18a1432b Tighten check for bad drive numbers to avoid passing garbage to the
2nd stage loader.
1999-05-02 12:20:01 +00:00
fvdl
c0042f7871 Because of space constraints, error messages got shortened. Reflect this
in the manual page.
1999-05-02 12:18:40 +00:00
fvdl
cbf8e59c01 Make check if we need int13 extensions for the bootselector more correct. 1999-05-02 12:17:48 +00:00
fvdl
5a48cda98a Remove confusing entry about cylinder boundaries. 1999-05-02 12:17:13 +00:00
ross
255793452f Since fdisk/mbr contains a man page, we need to descend into it regardless
of which ${MACHINE} we are.
1999-05-02 04:42:47 +00:00
christos
8eeaf82ae4 - Use the proper multiply instructions so that we don't get truncated.
- Fix comparison, which did not work before.
1999-04-30 15:29:44 +00:00
fvdl
a6f7895b92 Only use int13 extensions if the sectors can not be read through the
older CHS interface. This works around stupid BIOSs who report that
int13 extensions are present and functional, but fail when you actually
use them. Like Adaptec SCSI BIOSs.

For the bootselector, there was no space to get the CHS info from
the BIOS. Instead, use a flag that can be set by fdisk. fdisk will
set it if one of the partitions on the disk is out of CHS reach
for this disk/BIOS, so that the bootselector will use int13 extensions.
This isn't so bad, because it needs to be configured via fdisk anyway.

Change the mbr manualpage to reflect some shorter error messages.
1999-04-28 23:27:01 +00:00