Commit Graph

51 Commits

Author SHA1 Message Date
abhinav
d468dc41e1 Fix spelling of partition. 2017-01-27 10:21:16 +00:00
jdolecek
8ed63d94b4 remove dup line 2016-11-01 16:15:51 +00:00
sevan
994edde5c7 Document the version gpt first appeared.
Replace contractions.
Bump date.
2016-09-11 21:38:16 +00:00
christos
b7b34325a9 Rename 'a' to set the active PMBR flag to 'A' 2016-06-09 19:04:43 +00:00
kre
89194609b9 Fix rendering of biosboot command synopsis. 2016-06-09 16:48:14 +00:00
christos
3017a7a39f PR/51230: Add the ability to set the active flag in the PMBR. 2016-06-09 15:12:54 +00:00
wiz
6471a2935e Simplify usage for gpt show. 2015-12-25 12:16:03 +00:00
martin
53078a2022 Add a -a flag to the show command, so we can display the full GPT with
all information in one go.
2015-12-25 10:59:56 +00:00
wiz
34c418c523 Bump date for previous.
Remove trailing whitespace.
2015-12-06 09:36:57 +00:00
christos
4d523900d0 Add listing commands for type, set and unset.
Add help and formatting for set and unset.
Change show to print all the attribute info in one line.
2015-12-06 00:39:26 +00:00
christos
2eda9128ae Allow backup and restore to operate on files. 2015-12-02 12:36:53 +00:00
christos
1c8d6ff1b4 Reflect reality better; we don't handle multiple devices anymore, and
the partitions option is only for the commands that support it.
2015-12-01 22:49:25 +00:00
christos
0b43d398b9 Firs step of refactoring, remove all globals, factor out some common code,
handle alternate usage but not advertise it.
2015-12-01 09:05:33 +00:00
christos
e4ed2565fe - automatically sync the wedge information unless -n is specified.
- document the general options in the traditional way.
- split the main program into a separate file.
2015-11-30 19:59:34 +00:00
jnemeth
902aecab13 Add a "header" subcommand that displays information about the size of
the disk along with information from the GPT header if it exists.
2015-11-03 02:19:24 +00:00
wiz
d12dcb884c Bump date for previous. 2014-12-06 21:53:55 +00:00
mlelstv
c3505b64dc Add some more common partition types. 2014-12-06 12:24:22 +00:00
wiz
ec23d78824 Remove trailing whitespace. 2014-10-04 07:15:54 +00:00
christos
279da39389 Allow specifying sector and media size on the command line. 2014-10-04 01:00:42 +00:00
jnemeth
ac204e48a2 PR/47990 - Dr. Wolfgang Stukenbrock -- add "-L <label>" as selector option 2014-09-29 05:56:43 +00:00
jnemeth
88085c2f28 PR/44218 - David Young -- add "type" subcommand to change a partition type 2014-09-28 08:14:51 +00:00
jnemeth
2ed5cc2617 - make gpt_gpt() available for use directly by subcommands
- create new resizedisk disk subcommand for relocating backup GPT
2014-09-23 07:47:54 +00:00
jnemeth
4013e132a3 document the new restore subcommand 2014-09-20 22:36:09 +00:00
wiz
b07680d7fe Bump date for previous. 2013-12-19 07:49:50 +00:00
jnemeth
4fb24d0cac Add the backup subcommand. It dumps the contents of the partition
tables as a plist, which is readable by the restore subcommand.

XXX restore subcommand forthcoming
2013-12-19 06:46:51 +00:00
wiz
918b300e20 Fix typo. 2013-12-09 09:22:44 +00:00
jnemeth
1cb2b94165 Add two new subcommands, "set" and "unset". These were inspired by
FreeBSD's gpart(8), but the code is all mine.  The purpose of these
is to set and unset partition attributes.
2013-12-09 08:03:17 +00:00
jnemeth
66ad0e75ae For the "show -i <entry>" subcommand, print Start and Size both in
terms of number of sectors and bytes.
2013-12-09 01:35:02 +00:00
jnemeth
2098c8504e For the add and resize subcommands, change the -s option. If there is
no suffix, or the suffix is 's' or 'S', size is in sectors (as before)
otherwise size is in bytes.
2013-12-08 09:32:51 +00:00
jnemeth
024b3f7622 Don't attempt to create/resize an unaligned partition if the attempt
to create/resize an aligned one failed.  This simplifies the code
and prevents surprises.  If the user wants an unaligned partition
in the case where an aligned one fails, they can simply retry the
command without the "-a" option.  This change was requested by
wiz@, and after some thought I agree with it.
2013-12-06 02:31:31 +00:00
jnemeth
925666ef9b Add two new options:
-g which shows the GUID for a partition
-i which shows all the gory details for a particular option

XXX the output format of -i is subject to change
2013-11-30 19:43:53 +00:00
jnemeth
d883a91427 bump date 2013-11-22 03:51:06 +00:00
jnemeth
4f22d16faa In the manpage:
- s/-b number/-b blocknr/
- s/-s count/-s sectors/
- s/-p count/-p partitions/

In the program:
- s/-b lba/-b blocknr/
- s/-s lba/-s sectors/

This makes the documentation in the manpage and the program consistent
and makes it more clear what the parameters are.  Also, "-s lba" was
just plain wrong since LBA stands for Logical Block Address[ing], and
the -s option didn't represent any kind of address, but rather a size.
2013-11-22 03:50:05 +00:00
wiz
00996309f7 shrunk. 2013-11-20 08:11:36 +00:00
jnemeth
0a08058311 Add a resize command. This command was inspired by FreeBSD's gpart(8),
but the code was written by myself.
2013-11-20 08:08:47 +00:00
jnemeth
a3d649686c update synopsis for add subcommand 2013-11-19 05:07:40 +00:00
jnemeth
650728b4e3 Add two new options to the "add" subcommand:
-a alignment -- attempt to align the start and size of the partition
-l label -- supply a label for the partition

These options were inspired by FreeBSD's gpart(8) command, but the
code was written by me.
2013-11-19 05:03:41 +00:00
jnemeth
34523e4b09 - markup
- typo; the label command labels partitions, not remove them
- migrate -s isn't applicable to NetBSD
- add information about the space required for migration
- add a "gpt show -l" example
2013-10-24 06:59:03 +00:00
jnemeth
8ba45a6a68 revert typo fix; teach me to blindly take changes from upstream 2013-10-20 21:13:23 +00:00
jnemeth
a79ba98d4b type fix: accommodate. -> accomodate. 2013-10-19 01:19:03 +00:00
jakllsch
ccce006c72 Bump date to date of previous change. 2012-05-02 15:42:58 +00:00
drochner
da4ea9e87f fix a path 2012-03-09 12:30:28 +00:00
wiz
7b2c1e970a Add an EXAMPLE section showing how to add a swap file system using gpt. Bump date. 2011-11-11 13:26:45 +00:00
wiz
82c488769a Minimally document gpt recover. Bump date. 2011-09-19 10:40:35 +00:00
jym
8049d1e8e5 Document biosboot. Xref boot(8) and installboot(8). 2011-03-27 01:01:07 +00:00
schnoebe
431ec7cce7 List all the aliases supported for GPT partition types. 2011-02-09 05:11:15 +00:00
joerg
e4e7c43459 Don't workaround ancient macro argument limit with .Xo/.Xc. 2009-03-11 18:02:00 +00:00
joerg
997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
wiz
1a2477c1ae Serial comma. Add RCS Id. Remove superfluous quotes. 2006-10-17 09:32:34 +00:00