parted + 사용법 도움말은 resizepart에 대해 설명하지 않았습니다.

parted + 사용법 도움말은 resizepart에 대해 설명하지 않았습니다.

rhel 서버 7.2 버전에서는 parted 명령을 예로 사용해야 합니다.

parted -s /dev/sda resizepart 2

하지만 헤어진 도움말에서는 옵션을 찾을 수 없습니다.resizepart

예:

parted -s /dev/sda resizepart 2
Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...]
Apply COMMANDs with PARAMETERS to DEVICE.  If no COMMAND(s) are given, run in
interactive mode.

OPTIONs:
  -h, --help                      displays this help message
  -l, --list                      lists partition layout on all block devices
  -m, --machine                   displays machine parseable output
  -s, --script                    never prompts for user intervention
  -v, --version                   displays the version
  -a, --align=[none|cyl|min|opt]  alignment for new partitions

COMMANDs:
  align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted

그리고 우리의 perted 버전은 '

parted --version
parted (GNU parted) 3.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.

사용법 도움말에서 가능하거나 실수가 있습니까?

아니면 실제로 resizepart지원되지 않습니까?

참조 -https://access.redhat.com/sites/default/files/attachments/parted_0.pdf

https://bugzilla.redhat.com/show_bug.cgi?id=1423357

답변1

이상해도 친절하지만, 분할된 명령에 대한 도움을 받으려면 장치 매개변수가 필수입니다.

parted [device] help [command]

명령은 resizepart, mkpart, print 등이 될 수 있습니다. (parted -h를 사용하여 모든 명령 목록을 얻을 수 있습니다)

예를 들어parted /dev/sda help resizepart

# parted /dev/sda help resizepart
  resizepart NUMBER END                    resize partition NUMBER

    NUMBER is the partition number used by Linux.  On MS-DOS disk labels, the primary partitions number from 1 to 4, logical partitions from 5 onwards.
        END is disk location, such as 4GB or 10%.  Negative value counts from the end of the disk.  For example, -1s specifies exactly the last sector.

관련 정보