반응형

이름 (NAME)

growpart - extend a partition in a partition table to fill available space

가능한 공간을 채우기 위해 파티션 테이블 안에 있는 파티션을 확장해라

partition을 grow해라라는 명령어

개요 (SYNOPSIS)

       growpart [OPTIONS] DISK PARTITION-NUMBER

       growpart partition
          파티션 테이블을 다시 써서 파티션을 모든 공간을 차지하도록 한다.
          rewrite partition table so that partition takes up all the space it can
          options:
           -h | --help      print Usage an exit
                --fudge F   if part could be resized, but change would be
                            less than 'F', do not resize (default: 20480)
           -N | --dry-run   only report what would be done, show new 'sfdisk -d'
           -v | --verbose   increase verbosity / debug

옵션 (OPTIONS)

       -h | --help
              Show usage and exit

       -N | --dry-run
              Only report what would be done

       --fudge COUNT
              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.

       -v | --verbose
              Give more information to stderr.

인자 (ARGUMENTS)

       DISK   The device or disk image to operate on

       PARTITION-NUMBER
              The number of the partition to resize (counting from 1)

설명 (DESCRIPTION)

       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.

예제 (EXAMPLES)

       다음 파티션 혹은 디스크의 끝까지 빈공간을 채우기 위해 /dev/sda 안에 있는 partition 1을 확장하기
                $ growpart /dev/sda 1

       my.image라는 디스크 이미지 안에 partition 2를 확장하기.
                $ growpart my.image 2

 

출처

manpages.ubuntu.com/manpages/cosmic/man1/growpart.1.htm

반응형