본문 바로가기
Linux/ServerAdmin

마운트 관리

by Luuii 2017. 9. 23.

mount 명령어 출력 형식 보기 좋게 출력하기

# mount | column -t        ( # CMD | column -t )        -t = tab

 

 

 

 

로컬 영역 파일 시스템 마운트 시

# mount -t ext3 [-o options] /dev/hda1 /testmount

# mount /dev/hda1 /testmount

 

원격 영역 파일 시스템 마운트 시

# mount -t nfs [-o options] [서버 ip주소]:/root/shell /testmount

# mount 172.16.6.252:/root/shell /testmount

 

각 파티션 별 권장하는 마운트 옵션

 

파일 속성 정보 중 시간

 

nosuid옵션에 대해서

/home( 사용자 홈디렉토리) 파일 시스템은 nosuid 옵션으로 마운트를 하면, 사용자들이 SetUID 프로그램을 만들어도 SetUID 동작을 하지 않는다. 따라서 시스템 보안이 강화된다.

# find /home -perm -4000 -exec rm -f {} \;

# mount -o nosuid /home

 

ISO 파일 마운트

# mkisofs -o /test/a.iso /etc/sysconfig/*

# file /test/a.iso

 

# mkdir -p /mnt/iso

# mount -t iso9660 -o loop /test/a.iso /mnt/iso

# df -h /mnt/iso

 

반응형

'Linux > ServerAdmin' 카테고리의 다른 글

SWAP  (0) 2017.09.24
물리적 vs LVM vs RAID  (0) 2017.09.24
RAID  (0) 2017.09.24
LVM(Logical Volume Manage)  (0) 2017.09.23
파일 시스템  (0) 2017.09.23