Debian Codegraph @

man/growpart.1

raw
1 .TH growpart 1 "25 Feb 2011" cloud\-utils "cloud\-utils"
2 .SH NAME
3 growpart \- extend a partition in a partition table to fill available space
4
5 .SH SYNOPSIS
6 .BI "growpart [OPTIONS] DISK PARTITION\-NUMBER"
7
8 growpart partition
9 rewrite partition table so that partition takes up all the space it can
10 options:
11 -h | --help print Usage an exit
12 --fudge F if part could be resized, but change would be
13 less than 'F', do not resize (default: 20480)
14 -N | --dry-run only report what would be done, show new 'sfdisk -d'
15 -v | --verbose increase verbosity / debug
16
17 .SH OPTIONS
18 .TP
19 .B -h | --help
20 Show usage and exit
21 .TP
22 .B -N | --dry-run
23 Only report what would be done
24 .TP
25 .B --fudge COUNT
26 Only modify partition table if the given partition would grow more than COUNT sectors (512 bytes). The default value is 20480 indicating that no change will be made unless more than 10M of space would be gained.
27 .TP
28 .B -v | --verbose
29 Give more information to stderr.
30
31 .SH ARGUMENTS
32 .TP
33 .B DISK
34 The device or disk image to operate on
35 .TP
36 .B PARTITION\-NUMBER
37 The number of the partition to resize (counting from 1)
38
39 .SH DESCRIPTION
40 Rewrite a partition table in a disk or disk image so that the given partition takes up as much space as it can. After running, the partition will end at the end of the disk, or at the beginning of the next partition.
41
42 .SH EXAMPLES
43 .TP
44 Extend partition 1 in /dev/sda to fill empty space until end of disk or next partition
45 growpart /dev/sda 1
46 .TP
47 Extend partition 2 in disk image my.image.
48 growpart my.image 2
49
50 .SH EXIT STATUS
51 The exit status is 0 if the partition was successfully grown or if --dry-run was specified and it could be grown. The exit status is 1 if the partition could not be grown due to lack of available space. The exit status is 2 if an error occurred.
52
53
54 .SH AUTHOR
55 This manpage was written by Scott Moser <[email protected]> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
56
57 On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.