1 / 23

Filesystem , swap, device

ravel@sparcs. Filesystem , swap, device. 1. Filesystem. In computing , a file system (often also written as filesystem ) is a method for storing and organizing computer files and the data they contain to make it easy to find and access them. ( wikipedia ) Permits random access 추상화.

haley
Download Presentation

Filesystem , swap, device

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ravel@sparcs Filesystem, swap, device

  2. 1. Filesystem • In computing, a file system (often also written as filesystem) is a method for storing and organizingcomputer files and the data they contain to make it easy to find and access them. (wikipedia) • Permits random access • 추상화

  3. 종류 • ext2/ext3 • VFAT / NTFS • Iso9660/UDF • /proc /proc/filesystems에서 확인

  4. mount! • #mount –t : 파일시스템 가져다 붙이기

  5. mount! • #mount –t type device mount-point • #mount –t msdos /dev/fd0 /mnt • #mount –t iso9660 –r /dev/cdrom /mnt(read only)

  6. mount! • #mount –a /etc/fstab에 있는 모든 장치들을 마운트 • #umount /dev/fd0 #umount /mnt • #umount –f

  7. mount! • #mount • Mount errors

  8. /etc/fstab • #mount –t <type> <file system> <mount point>이 명령이 부팅할 때 이루어짐

  9. /etc/fstab • Q : /etc/fstab에는 어떻게 접근하나?A: 커널이먼저 /에 /etc/fstab를 담고있는 디바이스를 마운트

  10. 파일시스템 만들기 • #mkfs –t type device • #fdformat

  11. 파일시스템 만들기 • #mkfs -cchecks for bad blocks

  12. 파일시스템 검사하기 • #fsck –t type device • #fsck –t ext3 /dev/hda안됩니다

  13. 파일시스템 검사하기 • Boot/root floppy • Mount root as ro(?)

  14. 파일시스템 검사하기 • #fsck –v정보 출력 • #fsck –a모든 파일시스템 점검

  15. 2. Swap • Swap file: RAM에 빈공간이 없을 때 메모리 구실을 하는 특수한 파일 • Swap out/in : 메모리에서 하드로 / 하드에서 메모리로

  16. 스왑 • $free단위는 1024-byte block

  17. 스왑 만들기 • A) 스왑파일B) 스왑파티션-> fdisk

  18. 스왑 만들기 • $dd if=/dev/zero of=/swap bs=1024 count=32768 • #mkswap device size#mkswap –c device (size) • #chmod 0600 /swap

  19. 스왑 활성화 • #swapon device • Modify /etc/fstab • #swapoff device

  20. 3.Device files • Device file : 디바이스를 하나의 파일처럼 만들기(추상화!)

  21. b/c • major device number, minor device number

  22. Symbolic links

  23. 디바이스 파일 만들기 • #mknod –m permissions name type major minor#mknod /dev/ravelhdd b 42 0 • $/dev/MAKEDEVdefault permissions : umask (0644)

More Related