logo

한국어

2TB 이상의 HDD 디스크 파티셔닝

관리자 2018.01.31 11:59 조회 수 : 52

TARGET DISK: /dev/sdg

1. 디스크 정보 보기
# fdisk -l /dev/sdg

Disk /dev/sdg: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes


2. 디스크 초기화
# dd if=/dev/zero of=/dev/sdg count=1 bs=5120


3. parted로 파티셔닝

# parted /dev/sdg
GNU Parted 3.2
Using /dev/sdg
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) unit TB
(parted) mkpart primary 0.00TB 3.70TB
(parted) print
Model: ipTIME External (scsi)
Disk /dev/sdg: 4.00TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 1      0.00TB  4.00TB  4.00TB               primary

(parted) quit


4. 파티션 확인

# fdisk -l /dev/sdg
Disk /dev/sdg: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: CF814DB5-FA70-4E63-A691-0B9A62B1F4EB

Device     Start        End    Sectors  Size Type
/dev/sdg1  65535 7814000189 7813934655  3.7T Linux filesystem


5. 디스크 포맷

# mkfs.ext4 /dev/sdg1