티스토리 뷰

System Story/CentOS 5,6

2TB 이상 Disk 파티셔닝

helperchoi 2013. 11. 10. 20:28

※ Disk에 대한 초기화 필요시 아래와 같이 수행

 

 

[root@TEST04 ~]# dd if=/dev/zero of=/dev/sdb bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000636 seconds, 805 kB/s
[root@TEST04 ~]#

 

[root@TEST04 /]#
[root@TEST04 /]# fdisk -l | grep "Disk"

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sda: 10.7 GB, 10737418240 bytes
Disk /dev/sdb: 1073 MB, 1073741824 bytes
Disk /dev/sdc: 1073 MB, 1073741824 bytes
[root@TEST04 /]#

[root@TEST04 /]#
[root@TEST04 /]#
[root@TEST04 /]# parted /dev/sdb
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)                                                                 
(parted)                                                                 
(parted) mklabel                                                         
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? Yes                                                              
New disk label type?  [gpt]? gpt                                         
(parted)                                                                 
(parted)                                                                 
(parted) print                                                           

Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 1074MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

(parted)                                                                 
(parted) mkpart primary 0 -1                                             
(parted)                                                                 
(parted) print                                                           

Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 1074MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  1073MB  1073MB               primary      

(parted)                                                                 
(parted)                                                                 
(parted) quit                                                            
Information: Don't forget to update /etc/fstab, if necessary.            

[root@TEST04 /]#

 

반응형

'System Story > CentOS 5,6' 카테고리의 다른 글

lsof 를 이용한 특정 포트를 점유중인 프로세스 확인  (0) 2013.11.10
Linux Kernel Bit 확인  (0) 2013.11.10
Disk Device LABEL 확인 및 변경  (0) 2013.11.10
JAVA vm option  (0) 2013.11.10
JAVA thread Count  (2) 2013.11.10
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday