반응형

위치

/bin/fdisk

개요

fdisk 리눅스용 파티션 테이블(Partition table)을 조작하기 위한 명령어.

fixed disk or format disk“의 줄임말.

 

예시

$ sudo fdisk /dev/xvda



Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): m

Help:

  DOS (MBR)
   a   toggle a bootable flag
   b   edit nested BSD disklabel
   c   toggle the dos compatibility flag

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   u   change display/entry units
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty DOS partition table
   s   create a new empty Sun partition table

 

같이보기

 

출처

zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_fdisk

 

www.tecmint.com/fdisk-commands-to-manage-linux-disk-partitions/

 
 
 
 
반응형