140 likes | 281 Views
Module 7: File Systems. It will cover management local disks and network file system. File Systems. To a “ user ” , FS is a directory tree. (the user file system)
E N D
Module 7: File Systems • It will cover management local disks and network file system. Module 7 File Systems
File Systems • To a “user”, FS is a directory tree. (the user file system) • To the OS, FS is a structure that provides efficient and convenient access to the data on the disk. The OS uses a file system to allow the data to be stored, located, and retrieved from disk easily. Module 7 File Systems
Understanding File System • Block is the basic unit of disk storage. • i-Node – a control structure that points either to other I-nodes or to data blocks. • Superblock – contains important information about the file system such as its label, size, and total number of i-nodes. • Many copies of superblock resides in multiple place on disk. Module 7 File Systems
Managing File System • Mounting and unmounting local disk • The FS management process begins with the root directory. Module 7 File Systems
Directories / boot, bin, etc, dev, home,… sbin, rc, conf, cdrom, bill, fred . Module 7 File Systems
Disk mounting The mount command associates a file system (as the OS sees it) to the file system hierarchy (directory tree, as the user sees it) at a mount point (a single directory). Module 7 File Systems
mounting • Mount [options] device directory [ ]# mount /dev/hdc /mnt/cdrom • Umonut [options] directory [ ]# umount /mnt/cdrom • You cannot unmount a FS when it is in use. Module 7 File Systems
Unmount FS with GUI tool System -> Disk Management (check for different OSs) Module 7 File Systems
Configuration file and tool • File /etc/fstab • Tool fsck (File System Check) Module 7 File Systems
About fstab • What is in /etc/fstab? device mount fstype parameters fs_freq fs_passno /dev/hda2 /home ext3 default 1 2 Module 7 File Systems
fsck Tool fsck (File System Check) Used to diagnose and repair File System Module 7 File Systems
Using Network File System (NFS) • Centralized disks mount servername:/dir1 /dir2 mount myserver:/mainfile/test1 /onserver Module 7 File Systems
Summary • Understanding File System: i-Node, superblock, ext3 • Managing FS: mount and unmount • Using NFS: Module 7 File Systems
Questions • What is a superblock? • What file contains information on how to mount the partitions on a system? Module 7 File Systems