Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt Add an EXAMPLE section showing how to add a swap fi...
details: https://anonhg.NetBSD.org/src/rev/65fc80d267f9
branches: trunk
changeset: 771134:65fc80d267f9
user: wiz <wiz%NetBSD.org@localhost>
date: Fri Nov 11 13:26:45 2011 +0000
description:
Add an EXAMPLE section showing how to add a swap file system using gpt. Bump date.
diffstat:
sbin/gpt/gpt.8 | 36 ++++++++++++++++++++++++++++++++++--
1 files changed, 34 insertions(+), 2 deletions(-)
diffs (57 lines):
diff -r 8aecdea7847b -r 65fc80d267f9 sbin/gpt/gpt.8
--- a/sbin/gpt/gpt.8 Fri Nov 11 05:06:01 2011 +0000
+++ b/sbin/gpt/gpt.8 Fri Nov 11 13:26:45 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: gpt.8,v 1.8 2011/09/19 10:40:35 wiz Exp $
+.\" $NetBSD: gpt.8,v 1.9 2011/11/11 13:26:45 wiz Exp $
.\"
.\" Copyright (c) 2002 Marcel Moolenaar
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD: src/sbin/gpt/gpt.8,v 1.17 2006/06/22 22:22:32 marcel Exp $
.\"
-.Dd September 19, 2011
+.Dd November 11, 2011
.Dt GPT 8
.Os
.Sh NAME
@@ -301,6 +301,38 @@
.Fl u
option.
.El
+.Sh EXAMPLES
+.Bd -literal
+nas# gpt show wd3
+ start size index contents
+ 0 1 PMBR
+ 1 3907029167
+nas# gpt create wd3
+nas# gpt show wd3
+ start size index contents
+ 0 1 PMBR
+ 1 1 Pri GPT header
+ 2 32 Pri GPT table
+ 34 3907029101
+ 3907029135 32 Sec GPT table
+ 3907029167 1 Sec GPT header
+nas# gpt add -s 10486224 -t swap -i 1 wd3
+Partition added, use:
+ dkctl rwd3d addwedge dk<N> 34 10486224 <type>
+to create a wedge for it
+nas# gpt label -i 1 -l swap_1 wd3
+parition 1 on rwd3d labeled swap_1
+nas# gpt show wd3
+ start size index contents
+ 0 1 PMBR
+ 1 1 Pri GPT header
+ 2 32 Pri GPT table
+ 34 10486224 1 GPT part - NetBSD swap
+ 10486258 3896542877
+ 3907029135 32 Sec GPT table
+ 3907029167 1 Sec GPT header
+nas#
+.Ed
.Sh SEE ALSO
.Xr boot 8 ,
.Xr fdisk 8 ,
Home |
Main Index |
Thread Index |
Old Index