리눅스

리눅스/mount(마운트)

우진샘 2010. 11. 19. 13:07

mount(마운트)

일단 Disk의 경우 mount할 Disk가 있는지 확인한 후

# fdisk -l

* 부팅시에는 /etc/fstab 파일을 읽어서 마운트 할 디바이스를 찾아 해당 디렉토리에 마운트 시킨다.

아래 옵션을 사용하여 mount 하자.

mount [flags] DEVICE NODE [-o options,more-options]

Options :
    -a            Mount all filesystems in fstab
    -f             don't mount
    -r             Read-only mount
    -t fs-type  Filesystem type
    -w           Read-write mount (default)
    -o            Option

Ex) mount -t ext3 /dev/sda1 /hdda

NFS로 마운트
Ex) mount -o port=2049,nolock,proto=tcp -t nfs 192.168.10.10:/home/wjlee  /mnt/mydir


* 옵션에 들어가는 사항은 많이 있으므로 아래 페이지를 참고하자
http://blog.naver.com/khakhak?Redirect=Log&logNo=140089750311