Commit Graph

38 Commits

Author SHA1 Message Date
matt 8c19c1d834 Make sure utf-16 strings are written as little endian words. 2012-07-25 01:07:49 +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
joerg a4b65553ae Use __dead 2011-08-27 17:38:16 +00:00
martin 9a8267aad8 Fix sign compare bugs 2011-08-17 12:27:50 +00:00
jakllsch fdc9473539 Ajdust bootcode file name from mbr_gpt to gptmbr.bin. 2011-08-17 00:45:55 +00:00
jakllsch f43df25dd7 Switch 'gpt biosboot' to support T13 EDD-4 annex A GPT hybrid MBR instead
of a home-grown MBR/VBR hand off protocol.

'biosboot' now will set the legacy BIOS boot flag instead of patching a
GUID into the MBR.
2011-08-17 00:04:41 +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
riz e048211e44 Clarify the 'dkctl addwedge' usage message after creating a GPT
partition.
2011-01-06 17:51:28 +00:00
jakllsch 1f8f195455 Use less bogus CHS addresses in PMBR.
With the ending head set at 0xff one machine I have will never leave
the initial startup screen if such a disk is present.  Additionally,
Wikipedia suggests without citiation that 254 is the maximium allowable
value for the head, and this seems to be the case.
2011-01-06 17:42:10 +00:00
jakllsch 5da707b805 UFS is called FFS in the NetBSD case. Display as such and accept as input. 2011-01-06 16:30:40 +00:00
jakllsch a5fb435357 Support booting from GPT-partioned disks on PC-BIOS-compatible systems.
Much of the work in this commit was done by Mike Volokhov during GSoC 2009.
2011-01-06 01:08:48 +00:00
christos f8c6b14cc1 fix printf format. 2010-04-02 19:33:09 +00:00
christos 79bdd20aa6 PR/43105: Peter Kerwien: Destroying a GPT partition with dd will cause gpt
destroy / create to fail. When reading the GPT label from the end of the disk
ignore errors if the GPT label at the beginning of the disk was not found.
2010-04-02 13:36:59 +00:00
mlelstv 6ae5a6ad41 Initialize device_name before opendisk to avoid
"unable to open device '(null)'" error messages
when the opendisk fails.
2010-02-20 08:47:10 +00:00
lukem ef685eeea9 Enable WARNS=4 by default except for:
dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
2009-04-11 07:58:11 +00:00
dyoung 5786b3376f Fix spelling: s/parition/partition/. 2009-03-12 22:59:03 +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
uebayasi cede8f9855 Let 'gpt add' suggest a collect device name so that opendisk(3) called by
dkctl(8) succeeds.
2009-02-07 18:12:22 +00:00
uebayasi 0edd7181ba Make manual and usage consistent. No functional changes. 2009-02-07 17:21:44 +00:00
thorpej 7077ca222a Don't use sizeof(struct gpt_hdr). It will pad the structure on x86-64,
which causes some systems to reject the GPT.

kern/38997
2008-11-12 22:50:22 +00:00
christos dd771215eb PR/38094: Robert Millan: support "BIOS Boot" partition type in gpt(8) 2008-02-24 18:38:10 +00:00
riz 42a4e6ef13 As discussed on tech-userlevel, add NetBSD GPT partition types for
swap, ffs, lfs, raidframe, ccd and cgd.  gpt(8) now defaults to
NetBSD ffs if no type is given, but previous FreeBSD types are
still recognized in the DKWEDGE_AUTODISCOVER code.
2007-12-28 19:53:09 +00:00
dogcow 3a04c46a48 Your friendly neighborhood 64-bit architecture here to remind you that
strlen returns size_t, and printf's precision specifier uses int.
2007-12-19 05:48:33 +00:00
riz 0fac2edb7f Fix the usage strings for each command, and print them all for the
"global" usage.  It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
dyoung e62dac44ae Produce more useful error messages. 2007-06-11 04:22:00 +00:00
riz 16a0235c60 Use strtoll() when converting a 64-bit quantity. This makes "gpt add"
work with an offset of more than 2147483647 sectors.  While I'm here,
use strtoul() when converting an unsigned quantity.
2007-02-16 17:13:02 +00:00
christos 1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
he 565d8259e3 Add initialization of a variable where gcc for some archs thinks
that it may be used un-initialized.  From cursory inspection it is
not obvious that gcc is wrong.
2006-10-17 21:14:03 +00:00
wiz 1a2477c1ae Serial comma. Add RCS Id. Remove superfluous quotes. 2006-10-17 09:32:34 +00:00
he a738248ed5 Some of our ports want <sys/param.h> in order to have DEV_BSIZE defined,
needed for LABELSECTOR expansion.
2006-10-17 09:20:09 +00:00
christos 9052088997 add casts 2006-10-15 22:43:30 +00:00
christos 9b52236568 Make this work under NetBSD. 2006-10-15 22:36:29 +00:00
christos 5819a8c09d Import the gpt tool from FreeBSD 2006-10-15 22:34:15 +00:00