wiz
d129d948ec
Minor punctuation fixes, improve and sort SYNOPSIS, sort flag descriptions.
...
From Bug Hunting in PR 43130.
2010-04-07 09:40:58 +00:00
dsl
5281921f56
Add info for -A ptn_alignment[/ptn_0_offset]
2009-12-23 20:56:18 +00:00
dsl
4d8b353d15
Put #endif in correct place - fixes PR/42500
...
Update usage() for -A, and rename one of the variables for clarity.
2009-12-23 18:50:40 +00:00
dsl
9193c05dda
Add support for partition being aligned on non-cylinder boundaries.
...
Info can be specified with -A parameter.
Default is based on how the first partition is defined.
For empty disks larger than 128GB (arbitrary figure) use 1MB alignment.
2009-12-22 21:55:12 +00:00
dsl
5cb32d7a27
Editing partitions larger than 1TB works better if 'decimal' returns
...
64 bit integer values!
2009-12-22 21:04:37 +00:00
dsl
795733c59e
Add a large comment about disk geometries.
...
Rename (with #defines) the variables use for aligning partitions to
separate them from the bios geometry.
All in advance of allowing other partition alignments (eg 2048 sectors).
2009-12-20 17:32:09 +00:00
pooka
3d1523b600
Use implicit -F for regular files, much like disklabel(8).
2009-12-17 14:27:49 +00:00
pooka
d6224f4507
Remove support for NetBSD/playstation2.
2009-12-05 16:29:10 +00:00
tsutsui
1baf5ea42e
Add a bunch of useful typical examples. Also use appropriate markup there.
2009-11-29 04:19:55 +00:00
tsutsui
1735ad7d34
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?
2009-11-28 17:25:45 +00:00
tsutsui
d5fb21858d
Clarify description of -f and -u options.
...
(-u means updating partition data, not interactive mode)
2009-11-28 16:45:20 +00:00
tsutsui
fcf4b7e0c1
Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD.
...
It just fakes MBR partition map which contains 1MB FAT16B partition
and ~1GB OpenBSD partition, and we can always create necessary
MBR partitions for OpenFirmware by the fdisk(8) command itself.
2009-11-27 15:37:32 +00:00
dsl
fb64c309b2
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.
Patch in PR is wrong!
2009-11-04 22:25:56 +00:00
dsl
3b8f95158f
Make absence of /usr/mdec/mbr only a warning.
...
Fixes PR/26510
2009-10-31 20:41:00 +00:00
joerg
b2ed4022ca
Do not use .Xo / .Xc without a good reason.
2009-10-14 22:00:55 +00:00
yamt
44484fcfa9
an example.
2009-08-10 02:56:23 +00:00
dsl
68a8748cf1
Change arguments to decimal() to be int64_t.
...
They need to be able to hold disk sector numbers > 2^31 and also -1.
Should fix PR/34807
2009-08-05 21:31:50 +00:00
snj
b80e388902
Small grammar tweak.
2009-07-02 00:49:58 +00:00
christos
1f751faed6
make this compile one non mbr machines (move #define to the general section)
2009-06-02 21:15:53 +00:00
christos
cb3a6fdee7
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
2009-06-01 19:57:33 +00:00
drochner
dff56c2587
also fix a comment wrt use of the csysid/cstart/csize vars
2009-04-20 17:06:55 +00:00
sborrill
45a4197562
When using -s flag, read start and size as unsigned to allow for larger
...
disks. (Thanks to drochner@ for catching it).
2009-04-20 15:03:56 +00:00
lukem
e6cb0042e9
remove mispelt WARNS. (it will be set in ../Makefile.inc "soon")
2009-04-06 12:19:16 +00:00
lukem
428fc016ff
fix sign-compare issues
2009-04-06 12:18:19 +00:00
apb
44f43cf298
Remove local definitions of PRIxxxx macros in favour of the
...
centralised definitions from tools/compat/compat_defs.h, which
are included via nbtool_config.h.
2009-01-18 21:15:14 +00:00
tnn
bc465dcf63
mbr_dsn is unsigned, print it as such.
2008-03-09 14:57:10 +00:00
dsl
7ddd81a137
Add support for mbr code with ascii keycodes
2008-01-25 23:19:10 +00:00
dsl
683572a3a3
Note the existance of mbr_com0 and mbr_com0_9600.
2008-01-20 15:04:09 +00:00
tsutsui
aa7cb7b8f0
- add a sanity check to avoid possible division by zero
...
- adjust sector numbers _after_ "Sanity check the data against all zeroes"
Should close PR bin/37656.
2008-01-20 06:39:31 +00:00
apb
bb3a1dfc42
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.
2007-12-23 10:47:42 +00:00
apb
ca6bb6217d
Track zero is not strictly reserved for the BIOS, that's just a
...
convention, so don't make it an error in check_overlap(). Sector 0 is
reserved for the MBR, so make that an error in check_overlap().
2007-12-23 10:43:57 +00:00
apb
49b1fa58d7
Report the first active partition.
2007-12-23 08:58:34 +00:00
apb
29a92a49d4
If the partition is unused, then attempting to decode the PBR would
...
actually decode the MBR from sector 0 of the disk. Don't do it if
v_flag < 3.
2007-12-23 08:14:28 +00:00
dsl
fe8a8005c1
Make this compile without -Wno-pointer-sign
...
(Needs updated bootblock.h)
2007-11-29 23:19:25 +00:00
dsl
0d1f6529aa
Change -F to not use opendisk().
...
Don't change default to the boot volume until after we've found we aren't
doing -F.
For tool-fdisk enforce -F and use #defines to make code that can no
longer possibly execute compile.
2007-11-29 23:02:00 +00:00
apb
02c42d6bae
Remove unwanted ">" from a printed message.
2007-11-18 19:19:00 +00:00
tsutsui
b682074ae4
Don't print Drive serial number if -S (setting shell variables) is specified.
2007-10-28 10:02:08 +00:00
tls
ae75a5cdbe
This program is a host tool, so when we use newfangled C features like
...
PRIxyz we have to ensure it still builds on hosts with Old compilers.
Noticed while building a cross-toolchain on FreeBSD 4.
2007-09-04 00:34:58 +00:00
dsl
4c11bfb2e9
Preserve the mbr 'driver serial number' when copying in the netbsd
...
mbr code. Should leave windows vista bootable.
Print the dsn from the mbr, not each pbr.
2007-07-05 20:30:29 +00:00
wiz
a115c64dc7
Plural fix.
2007-05-20 22:27:46 +00:00
christos
7731d9378a
PR/36223: Milos Negovanovic: Don't ask if we want to install mbr_bootselect
...
with -f.
2007-04-26 18:51:00 +00:00
apb
41bcdc8c57
Bump date for previous.
2007-03-11 10:51:03 +00:00
apb
4713b815f3
WARNS= 4
2007-03-10 18:22:04 +00:00
apb
7a268741a3
Document the new checks for whether a PBR is bootable.
...
Also add more detail in the introduction, and a few
more references.
2007-03-10 14:19:46 +00:00
apb
4c9d64d78e
Try to check whether each partition is bootable. If not,
...
always print an error message. If bootable and -v flag was
specified, print a success message. If -v flag was specified
more than once, also try to decode more information from
the PBR.
Input from dsl and bad.
2007-03-10 14:18:28 +00:00
dsl
26ad77c3e1
Report the last sector number of a partition, instead of that of the first
...
of the next - with appropriate discarding of the head/sector values
if the partition is cylinder aligned.
Fixes PR 26921
2006-11-25 16:10:32 +00:00
wiz
da100ff1d9
Use more macros. New sentence, new line.
2006-09-24 15:52:12 +00:00
jmcneill
4fd9dcb2a0
PR# 28660: how to remove bootmenu text from some partition
2006-09-24 15:22:01 +00:00
lukem
272515842e
Support MAKEVERBOSE.
...
Use CLEANFILES to cleanup temp files instead of rm.
Cosmetic tweaks.
2006-06-28 15:03:00 +00:00
lukem
a0f0fb81a8
Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
2006-06-28 15:00:51 +00:00