parted 사용법 입니다.
참고 사이트 : http://www.pantz.org/software/linux/filesystemsraidpartitions.html
위 사이트 참고 하시기 바라며 순서는
1. parted dev_name ( 파티션할 디바이스 지정 )
2. mklabel gpt ( gpt 라벨 생성 )
3. print 확인
4. mkpart ( 파티션 생성 )
- primary
- 사이즈 시작
- 사이즈 끝
4. print 확인
5. quit
6. 파일 시스템 포멧 mkfs.ext3 dev_name
7. 마운트 mount dev_name /etc/fstab 등록
ex)
The following is a example of parted commands to make raid volume that is accessed as /dev/sda. It uses XFS a the file system.: parted /dev/sda Now you should be at a Parted prompt. Next we make the GPT label. mklabel gpt Then we see how big our volume is by printing info about it. p Now we make our partition using the number we got from our print out of the volume. mkpart Then we quit. q Next make your file system (Ex. mkfs.xfs -f -b size=4k -l size=64m /dev/sda). Don't forget to update /etc/fstab, if necessary.Disk geometry for /dev/sda: 0.000-2384185.000 megabytes
Disk label type: gpt
Minor Start End Filesystem Name Flags
Partition type? [primary]? [press enter]
File system type? [ext2]? xfs
Start? 0
End? 2384185



