Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter10 1 정아현 #42

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions chapter10/01.파일 시스템과 저장 장치/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 파일 시스템과 저장 장치

- 파일 시스템 : 저장 장치에서 바이너리 나열로 기록된 파일이나 디렉터리를 찾고 접근할 수 있도록 저장 및 관리
- 디바이스 : 리눅스에서 연결된 하드웨어를 부르는 명칭
- 디바이스 드라이버 : 디바이스와 통신해서 데이터를 주고받거나 제어
- 디바이스 노드 : 디바이스 드라이버로 추상화한 디바이스를 소프트웨어가 입출력하기 편하도록 나타내는 파일
- /dev 하위에 존재
4 changes: 4 additions & 0 deletions chapter10/02.파티션/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 파티션

- 파티션 : 저장 장치를 사용 목적이나 운영 체제에 따라 영역별로 나누는 것 (ex. GUID, MBR)
- 디바이스 노드에 저장 장치 전체에 대응하는 것과 파티션에 대응하는 것 존재 (/dev/sda, /dev/sda1)
46 changes: 46 additions & 0 deletions chapter10/03.파일 시스템 마운트하기/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 파일 시스템 마운트하기

- 마운트 : 서로 다른 디바이스의 디렉터리를 트리 구조 어딘가에 연결하는 작업
- `mount` : 마운트 작업을 하는 명령어
- `unmount` : 마운트를 해제하는 명령어

> mount [옵션] [-t 파일시스템 종류] 디바이스마운트디렉터리
>
> mount [옵션]
>
> unmount 마운트디렉터리

주요 옵션(mount) | 설명
---|---
-a | /etc/fstab 파일에서 지정한 파일 시스템을 모두 마운트
-t _type_ _dev_ _dir_ | _dev_ 디바이스를 _type_ 파일 시스템으로 _dir_ 디렉터리에 마운트
-a -t _type_ | 파일 시스템 종류가 _type_ 인 것만 마운트
-r | 읽기 전용으로 마운트 (기본값은 읽고 쓰기 가능)
-w | 읽고 쓰기 가능으로 마운트


주요 옵션 (unmount) | 설명
---|---
-t _type_ | 파일 시스템 종류가 _type_인 마운트를 해제

파일 시스템 종류 | 설명
---|---
ext2 | 고전 리눅스 파일 시스템
ext3 | 리눅스 파일 시스템
ext4 | 리눅스 파일 시스템 (많은 배포판에서 기본값)
ufs | 유닉스 파일 시스템
xfs | extents 파일 시스템
zfs | Zettabyte 파일 시스템
iso9660 | DVD, CD-ROM 등
msdos | FAT 파일 시스템
vfat | FAT32 파일 시스템
ntfs | NTFS 파일 시스템
btrfs | btrfs 파일 시스템

```bash
# 현재 마운트 상황을 표시
$ mount

# DVD(/dev/cdrom)를 /mnt 디렉토리에 마운트
$ mount -t iso9660 /dev/cdrom /mnt
```