Presentation is loading. Please wait.

Presentation is loading. Please wait.

Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.

Similar presentations


Presentation on theme: "Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University."— Presentation transcript:

1 Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University

2 Section Overview Devices and Files Drives and Partitions Filesystem Management Network Filesystems

3 References CQU 85321 System Administration Course Textbook   Chapter 11 Chapter 11 Lectures   2002 #10 2002 #10

4 Kinds of Devices Physical Devices Actual hardware Examples  Hard Drives, CDROMs, Floppy  Network cards and modems Logical Devices Pseudo devices Examples  Virtual Terminals  Network Ports

5 Interrupt Handling User Supervisor SystemCall Interrupt Vector 0 Interrupt Vector n-1 Interrupt Vector n Interrupt Handler n Interrupt vector table Memory Trap n

6 Device Drivers and Files Device drivers Software to control hardware Compiled into the kernel Dynamically loaded module Device files Located in /dev Provide application access to device Driver must also be present to use

7 Making Device Files mknod filename type major minor filename: Name of the device file Type “c” – Character Device “b” – Block Device Major Number: Type of device driver Minor Number: Instance (which one) /dev/MAKEDEV : Creation program

8 Disk Geometry Tracks Sectors Read/write Heads Cylinders Partitions Platters

9 UNIX Filesystems Defines how data is stored on drives Multiple types of filesystems supported Boot Block (1 st block) Stores the bootstrap loader program Superblock (2 nd block) Copies scattered throughout the partition Stores information about the partition  Partition Size  Type of File system  Block Size  Size & Location of inode tables  Free Block list

10 Filesystems and Partitions / (root) binvarusretchomescottbobalicebinsbinlocallibmanlibsrcsharebin

11 Ext2/Ext3 File Systems LabelPartitionPartitionPartition ZoneZoneZoneZoneZone SuperBlockInodeBitmapDataBitmapInodeBlocksDataBlocks Source: Forensic Discovery By Dan Farmer and Wietse Venema

12 Why Partition? Not enough space on one disk Separation of data Read-only areas Spool areas and free space OS upgrades Backups Performance

13 Virtual File System User Process Device Driver NTFSISO9660Ext3 System call Interface VFS Buffer Cache Kernel

14 Managing Filesystems Creating a new filesystem Similar to DOS format mkfs – creates a filesystem (many aliases) mount – mount a partition Mount point must exist (directory) /etc/fstab umount – Unmount a partition fsck Check/fix filesystem errors Journaling filesystems Quotas?

15 RAID Storage Redundant Array of Independent (Inexpensive) Drives Level 0 – Data Blocks spread across 2 or more drives (striping). No fault tolerance Level 1 – Each disk copied (mirrored) to another disk Level 0+1 – Each drive with striped data is mirrored Level 5 – Data and fault tolerance (parity) striped across disks

16 Logical Volume Management Physical Volume 20GB 36GB 34GB/boot2GBext3 Logical Volume Group 90GB Logical Volume /home50GB /25GB Free Space 15GB

17 Network Filesystems Filesystems shared via NFS Client-side: similar to local mount Server – exports shared filesystems mountd and nfsd /etc/exports and exportfs Access permissions should be selective showmount -e Samba – Microsoft filesystem sharing

18 Printer Connections Local Parallel USB Remote/Shared Network

19 Printing Languages PCL (Hewlett Packard) Postscript (Adobe) PDF (Adobe) XHTML

20 CUPS Client/Server Application cupsd – CUPS Server cupsd.conf printers.conf classes.conf Web Administration – Port 631

21 Printer Configuration Printer Name Connection info Local (LPT, Serial, etc.) Network (lpd, JetDirect/Socket, HTTP) Shared (SMB) Device Driver or PPDs

22 Print Commands Printing lpr –P mpage –P Queue Status : lpq –P Status: lpstat –t Configuratation: lpadmin cupsenable/cupsdisable accept/reject

23 Windows Printer Management “Devices and Printers” Add Printer Wizard Name Connection (Local or Address/Port) Device Make and Model Printer Sharing


Download ppt "Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University."

Similar presentations


Ads by Google