Posted on 2006/11/24 18:28
Filed Under OS/Linux

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

Disk geometry for /dev/sda: 0.000-2384185.000 megabytes
Disk label type: gpt
Minor       Start       End       Filesystem Name       Flags

Now we make our partition using the number we got from our print out of the volume.

mkpart
Partition type? [primary]? [press enter]
File system type? [ext2]? xfs
Start? 0
End? 2384185

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.


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2006/11/24 18:28 2006/11/24 18:28

트랙백 주소 : http://blog.seabow.pe.kr/trackback/240



About

by 삐꾸강아쥐

Counter

· Total
: 137356
· Today
: 57
· Yesterday
: 0
블로그코리아에 블UP하기