2012년 1월 3일 화요일

redhat linux ( 레드햇 리눅스 ) - disk mount ( 디스크 마운트 )

- Disk Mount

( root )

$ su - 
$ fdisk -l

...
Disk /dev/xvdj: 1xx.x GB, 19xxxxxxxxxxx320 bytes
255 heads, 63 sectors/track, 2xxx7 cylinders
Units = cylinders of 1xx5 * 5xxx = 8xxxxxx0 bytes

Disk /dev/xvdj doesn't contain a valid partition table

1) ext3 로 포맷 ( 포맷안할경우 skip )

$ mkfs.ext3 /dev/xvdj 

2) /data 로 마운트 할 경우

$ mkdir /data
$ mount /dev/xvdj /data

3) 부팅시 자동 마운트

$ echo "/dev/xvdj /data ext3 noatime 0 1" >> /etc/fstab

* 끝에있는 1 은 디스크 체크 여부. 0으로하면 에러 체크 안함

끝!




댓글 없음:

댓글 쓰기