ext3 타입의 파일시스템 마운트하기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,503 조회
- 0 추천
- 목록
본문
ext3 타입의 파일시스템 마운트하기
이번 예는 ext3파일시스템으로 /dev/sdb1을 /backup에 마운트 시킨 예입니다.
마운트를 시킨 이후에 mount라는 명령어로 마운트된 내용을 확인하였습니다.
mount의 결과 맨 마지막 행에 보시면 “/dev/sdb1 on /backup type ext3 (rw)”라는 것을 보실 수 있습니다.
이것이 /backup에 ext3로 마운트된 /dev/sdb1의 정보입니다.
[root@su249 ~]# mount -t ext3 /dev/sdb1 /backup [root@su249 ~]# [root@su249 ~]# mount /dev/sda3 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sdb1 on /backup type ext3 (rw)
[root@su249 ~]# |
현재 리눅스에서 대표적으로 사용하는 파일시스템이 ext3이므로 mkfs나 mkfs.ext3등으로 파일시스템을 생성 및 포맷작업을 옵션 없이 생성하였을 경우에는 기본적으로 ext3타입으로 포맷 됩니다.
이에 대한 예는 이 책의 mkfs 또는 mke2fs명령어편에 잘 나와 있습니다.
따라서 ext3로 생성된 파일시스템을 마운트하려면 -t ext3라는 옵션이 없어도 ext3로 마운트가 됩니다.
아래는 -t ext3옵션 없이 마운트를 한 예로서 ext3타입으로 마운트가 된 예입니다.
[root@su249 ~]# mount /dev/sdb1 /backup [root@su249 ~]# [root@su249 ~]# mount /dev/sda3 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sdb2 on /ftp_data type ext2 (rw) /dev/sdb1 on /backup type ext3 (rw)
[root@su249 ~]# |
mount로 확인한 결과 중 맨 마지막의 결과인 “/dev/sdb1 on /backup type ext3 (rw)”의 결과가 위에서 mount한 결과입니다.
여기서 알 수 있는 것은 ext3로 포맷된 파일시스템은 -t ext3라는 옵션 없이 mount를 시켜도 기본값으로ext3로 마운트가 된다는 사실입니다.
관련자료
-
이전
-
다음