게시물 1,376건
   
대용량 파티션 설정 parted
글쓴이 : 최고관리자 날짜 : 2011-08-19 (금) 12:55 조회 : 17869
글주소 :
                                
# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

WARNING: The size of this disk is 6.0 TB (5999956066304 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).
 
fdisk 명령어는 2.2 TB 이상의 파티션을 지원하지 못하므로, 대용량 파티션을 구성하기 위해서는 다음과 같은 방법에 따라 작업을 해줘야 합니다.
 
 
[root@localhost ~]# parted  -help
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
  -i, --interactive             where necessary, prompts for user intervention
  -l, --list                    lists partition tables of all detected devices
  -s, --script                  never prompts for user intervention
  -v, --version                 displays the version
 
COMMANDs:
  check NUMBER                             do a simple check on the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           prints general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on partititon NUMBER
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system
  move NUMBER START END                    move partition NUMBER
  name NUMBER NAME                         name partition NUMBER as NAME
  print [free|NUMBER|all]                  display the partition table, a partition, or all devices
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  resize NUMBER START END                  resize partition NUMBER and its file system
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  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                                  displays the current version of GNU Parted and copyright information

[root@localhost ~]# parted /dev/sdb  
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)
print
 
Model: AMCC 9650SE-8LP DISK (scsi)
Disk /dev/sdb: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start  End  Size  File system  Name  Flags
 
(parted) mkpart
Partition name?  []?  Enter
File system type?  [ext2]?  Enter
Start? 0    시작지점 지정
End? 6000GB   끝나는 디스크블락 지정
 
(parted) print   설정한 파티션 정보 확인
 
Model: AMCC 9650SE-8LP DISK (scsi)
Disk /dev/sdb: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  6000GB  6000GB  ext3
(parted) mkpart
Partition name?  []?   Enter
File system type?  [ext2]?  Enter
Start? 6000GB
End? 100%     마지막까지 지정
(parted)
print
 
Model: AMCC 9650SE-8LP DISK (scsi)
Disk /dev/sdb: 8000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  6000GB  6000GB  
 2      6000GB  8000GB  2000GB
 
(parted) q    나가기
 
# 파티션 정보확인
[root@localhost ]# cat /proc/partitions
major minor  #blocks  name
   8        0   78150744 sda
   8        1     104391 sda1
   8        2    4192965 sda2
   8        3    4192965 sda3
   8        4          1 sda4
   8        5   10241406 sda5
   8        6    5116671 sda6
   8        7    4610623 sda7
   8        8    1052226 sda8
   8        9   48636756 sda9
   8       16 7812456448 sdb
   8       17 5859374983 sdb1
   8       18 1953081431 sdb2

[root@localhost network-scripts]# mkfs.ext3 /dev/sdb1
[root@localhost network-scripts]# mkfs.ext3 /dev/sdb2

 

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.