강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

실무명령어# 87-3 : 특정 파티션을 대상으로한 fdisk 시작과 종료

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

실무명령어# 87-3 : 특정 파티션을 대상으로한 fdisk 시작과 종료

 

fdisk실행하기와 빠져나오기를 간단히 알아보겠습니다.  먼저 fdisk를 실행할 때에는 "fdisk 장치명"과 같이 하시면 됩니다.  물론 여기서 장치명은 반드시 디스크를 가리키는 장치명이어야합니다.

 

아래의 예는 /dev/hdb디스크에 대한 fdisk를 실행한 것입니다.

 

[root@file root]# fdisk /dev/hdb

 

Command (m for help):

Command (m for help): m

Command action

   a   toggle a bootable flag

   b   edit bsd disklabel

   c   toggle the dos compatibility flag

   d   delete a partition

   l   list known partition types

   m   print this menu

   n   add a new partition

   o   create a new empty DOS partition table

   p   print the partition table

   q   quit without saving changes

   s   create a new empty Sun disklabel

   t   change a partition's system id

   u   change display/entry units

   v   verify the partition table

   w   write table to disk and exit

   x   extra functionality (experts only)

 

Command (m for help):

Command (m for help): q

 

[root@file root]#

 

보시는 바와 같이 fdisk가 정상적으로 실행이 되고 나면 "Command (m for help): "와 같은 fdisk명령어모드가 나옵니다.   fdisk명령어모드에서 우리는 fdisk의 모든 작업을 하게 됩니다. fdisk명령어중 아래 한가지 예로든 "m"이라는 명령어는 fdisk명령어모드에서 사용가능한 명령어들과 도움말을 나타내줍니다.

 

그리고 빠져나오실 때에는 위의 예와 같이 "q"라고 하시면 됩니다.  그러면 아무런 작업없이 바로 fdisk모드에서 빠져나오게 됩니다.

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  120 명