Top Banner
Case Study File System UBUNTU Presented By: Bhagyesh S. Pate Guided By: Mr. S. J. Patil SSBT’s COET ,Jalgaon ormation Technology Departm
29

Ubuntu File System

Apr 16, 2017

Download

Engineering

Bhagyesh Patel
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ubuntu File System

Case Study

File System

UBUNTU

Presented By:Bhagyesh S. Patel

Guided By:Mr. S. J. Patil

SSBT’s COET ,JalgaonInformation Technology Department

Page 2: Ubuntu File System

outlineI. HistoryII. Pros and ConsIII. File System

A. What is File SystemB. Types of File SystemC. Structure of File SystemD. Mounting File SystemE. Creating File SystemF. Some useful commands and tool

Page 3: Ubuntu File System

ObjectivesI. To Look at HistoryII. To Look at Pros and ConsIII. To Explore How Ubuntu implement File

System

Page 4: Ubuntu File System

4

Ubuntu is one of the flavors of Linux Operating System

Developed by Canonical Ltd.,Ubuntu Community

Free and Open Source Software Released in Oct 20th,2004 Latest Release Ubuntu 14.04.1 (Trusty tahr)

on July 24th,2014

History

Page 5: Ubuntu File System

5

Disadvantages compared with Windows Isn't as popular as Windows Ubuntu is relatively hard to install, learn and use

As It’s Open Source, Ubuntu is mainly used in commercial applications, server implementation

More than 75% current network servers are developed based on Ubuntu, Linux or Unix systems Due to the relatively high reliability

Ubuntu Pros and Cons

Page 6: Ubuntu File System

What is File System?

A. It is responsible for storing information on disk and retrieving and updating this information.

B. Example : 1. FAT16, FAT32, NTFS 2. ext2, ext3 …

C. In Linux everything is file

Page 7: Ubuntu File System

Type of File System

A. Network File System 1. NFS 2. SMB

B. Disk File System 1. ext2 2. ext3 3. FAT324. NTFS

Page 8: Ubuntu File System

Network File System

A. Network File System are physically somewhere else, but appear as if they are mounted on one computer.

B. NFSIt was developed by Sun.

C. SMBIt was developed by Microsoft.

Page 9: Ubuntu File System

Disk File System Disk File System are what you will

find on a physical device, such as hard drive in a computer.

Page 10: Ubuntu File System

ext2 File SystemA. It has been the standard File System for

Linux.B. The original Extended File System was

named ext.C. The ext2 File System can accommodate:

1. Files as large as 2GB2. Directories as large as 2TB3. Max. file name length of 255

characters.

Page 11: Ubuntu File System

ext3 File SystemA. It is as same as ext2.B. It is a journaling File System for

Linux.C. In a journaling system, metadata is

written to a journal on the disk before it is actually used to modify the file.

Page 12: Ubuntu File System

File System Structure

Page 13: Ubuntu File System

Hold the most commonly used essential user programs

i. Loginii. Shells (bash, ksh, csh)iii. File manipulation utilities (cp, mv, rm, ln, tar)iv. Editors (ed, vi)v. File system utilities (dd, df, mount, umount,

sync)vi. System utilities (uname, hostname)vii. GNU utilities like gzip and gunzip

/bin

Page 14: Ubuntu File System

Hold essential maintenance or system programs such as the following:

i. Fsckii. mkfsiii. shutdowniv. lilov. init

The main difference between the programs stored in /bin and /sbin is that the programs in /sbin are executable only by root.

/sbin

Page 15: Ubuntu File System

Store the systemwide configuration files required by many programs.

i. Passwdii. fstabiii. hostsiv. lilo.conf

/etc

Page 16: Ubuntu File System

The /home directory is where all the home directories for all the users on a system are stored.

The /root directory is where all the home directories for root user on a system are stored.

/home and /root

Page 17: Ubuntu File System

The special files representing hardware are kept in it.

i. /dev/hda1ii. /dev/ttyS0iii. /dev/mouseiv. /dev/fd0v. /dev/fifo1vi. /dev/loop2

/dev

Page 18: Ubuntu File System

The /tmp and /var directories are used to hold temporary files or files with constantly varying content.

The /tmp directory is usually a dumping ground for files that only need to be used briefly and can afford to be deleted at any time.

The /var directory is a bit more structured than /tmp and usually looks something like the following:

i. /var/logii. /var/spool iii. /var/named

/tmp and /var

Page 19: Ubuntu File System

Most programs and files directly relating to users of the system are stored.

It is in some ways a mini version of the /directory.

i. /usr/binii. /usr/sbiniii. /usr/spool

/usr

Page 20: Ubuntu File System

Mounting File System

A. The Linux File System makes it appear as if all the File System are local and mounted somewhere on the root File System.

B. File System are mounted with the mount command.

mount –t type source mount_pointC. To unmount a File System, the unmount

command is used.umount /dev/<device name> or

mount_point

Page 21: Ubuntu File System

Creating File SystemA. Once a disk has been partitioned for a

specific File System, it is necessary to create a File System on it.

B. The first process in the DOS world is known as formatting.

C. In the UNIX world is known as creating a File System.

Page 22: Ubuntu File System

Create File System Commands

A. mkfs or mke2fsMake a new ext2 File System.

B. mk3fsMake a new ext3 File System.

C. mkdosfsMake DOS File System without

owning any Microsoft software.

Page 23: Ubuntu File System

FS Commands and Tools

A. pwdWhere am I?

B. cdChanges working directory.

C. lsShows the contents of current directory

D. catTakes all input and outputs it to a file or other

source

Page 24: Ubuntu File System

FS Commands and Tools

(cont.)A. mkdir

Creates a new directoryB. rmdir

Removes empty directore C. mv

Moves filesD. cp

Copies filesE. rm

Removes directory

Page 25: Ubuntu File System

FS Commands and Tools

(cont.)A. gzip and gunzipTo compress and uncompress a file

B. tarTo compress and uncompress a file

C. fsck and e2fsckChecks and repairs a Linux File System (same as

scandisk)D. e2label

Displays or change the label of a deviceE. dd

Converts and copies a file

Page 26: Ubuntu File System

FS Commands and Tools

(cont.)A. dfReports File System disk space usage

B. duEstimates file space usage

C. lnMakes links between files

D. file Determines file type

E. tune2fsAdds the journal to an existing ext2 File System

Page 27: Ubuntu File System

Converting an ext2 File System to ext3

A. First:A. Use the tune2fs utility to add the

journal to an existing ext2 File SystemB. tune2fs –j /dev/hda2

B. SecondA. Edit the appropriate line in /etc/fstab

and change the value from ext2 to ext3.

Page 28: Ubuntu File System

Questions…?

Page 29: Ubuntu File System

Thanks You…!