SlideShare a Scribd company logo
1 of 28
ROOT FILE SYSTEM
Presented by
Bindu U
The root file system is the file system that is contained
on the same partition on which the root directory is
located, and it is the file system on which all the other
file systems are mounted as the system is booted up.
The root file system should generally be small,
because it contains critical files and infrequently
modified file system.
The exact contents of the root file system will vary
according to the computer.
Introduction
 It contains the files and directories critical for system
operation, including the device directory and
programs for booting the system.
The root file system also contains mount points
where file systems can be mounted to connect to the
root file system hierarchy.
Single user mode.
 Contents
/bin -> This directory contains binary executable files available
to all users.
Ex:-bash, busybox, cat, chmod, mount, cp, mv…
/sbin -> This directory contains tools needed for an
administrator, that an ordinary user can not use it. It will be in
root’s default path.
Ex:-ifconfig, route, rmmod, ip, mkfs, mke2fs…
/lib -> Contains architecture-independent libraries.
/boot -> This directory contains BOOT_LOADER and its
configuration file, directory GRUB or LILO.
/dev -> Contains device nodes for special files for local devices.
/etc -> This directory contains directories and files that are used
for system configuration.
/mnt -> It contains mount point for temporary mounts by the
system administrator.
/proc -> It presents information about processes and other
system information in a hierarchical file-like structure.
/home -> Serves as a mount point for a file system containing
user home directories.
/usr -> Contains files that do not change and can be shared by
machines such as executables and ASCII documentation.
/var -> This directory has a multiple purpose of which is the most
basic: -
 Storage of undelivered data from uncompleted process (printer ...)
[/var/spool/.....].
 Storage of unread or undelivered mail [/var/mail/.....].
 Web Contents of site [/var/www/.....].
 Records on the use of system resources (memory, disk drives, processor ...)
[/var/lock/.....].
 Temporary files that must be preserved during reboot [/var/tmp/.....].
FAT is a table that an operating system maintains on a hard disk
that provides a map of the clusters that a file has been stored
in.
The purpose of this table is to keep track of which areas of the
disk are available and which areas are in use.
There are three types of FAT
 FAT 12
 FAT 16
 FAT 32
FAT(FILE ALLOCATION TABLE)
The Boot Sector
The information about the file system, including cluster size,
sector size, etc. is located in the boot sector.
File Allocate Table
The FAT is a simple array of 12-bit, 16-bit or 32-bit data
elements(addressing the cluster).
Directories
 It contains the short name, file size, starting cluster, and
temporal information (time/date stamps).
Each directory entry points to a starting cluster and to a place
in the FAT where the cluster chain for the rest of the file is
located.
Clusters
The data area is divided into sector groups called clusters. All
the clusters in a single FAT volume have the same size.
Slack space
It refers to any unused space at the end of a cluster and cannot
be used by any other file or directory.
mkfs.vfat [ -a ] [ -A ] [ -b] [ -c ] [ -l ] [ -C ] [ -f ] [ -F ] [ -h ]
[ -i ] [ -I ] [ -m ] [ -n ] [ -r ] [ -R ] [ -s ] [ -S ] [ -v ]
Description:-
Options:-
 -a -> will align all the data structures to cluster size.
 -A -> turns off Atari format.
 -b -> Selects the location of the backup boot sector for FAT32.
 -c -> Check the device for bad blocks before creating the file
system.
Creating a FAT File System.
 -C -> used to create the new file system in a file instead of on a real
device.
 -f -> Specify the number of file allocation tables in the file system.
 -F -> Specifies the type of file allocation tables used (12, 16 or 32
bit).
 -h -> Select the number of hidden sectors in the volume.
 -i -> Sets the volume ID of the newly created file system.
 -I -> Specifies partition for fixed disk devices.
 -l -> Read the bad blocks list from filename.
 -m -> Sets the message the user receives on attempts to boot this
file system without having properly installed an operating system.
 -n -> Sets the volume name (label) of the file system.
 -r -> Select the number of entries available in the root directory.
 -R -> Select the number of reserved sectors.
 -s -> Specify the number of disk sectors per cluster.
 -S -> Specify the number of bytes per logical sector. Must be a
power of 2 and greater than or equal to 512.
 -v -> Verbose execution.
Example:-
1. sudo dd if=/dev/zero of=./mydisk bs=64M count=1
2. sudo mkfs.vfat -F 32 ./mydisk
3. sudo mkfs.vfat -F 32 -f 2 -S 512 -s 1 -R 32 ./mydisk
 It is the original file system introduced with the Linux operating
system.
 It uses virtual directories to handle physical devices, and storing data
in fixed-length blocks on the physical devices.
 The ext file-system uses a system called inodes to track information
about the files stored in the virtual directory.
 The extended part of the name comes from the additional data that it
tracks on each file, which consists of:
• The file name
• The file size
• The owner of the file
• The group the file belongs to
• Access permissions for the file
• Pointers to each disk block that contains data from the file
EXTENDED FILE SYSTEM 2/3/4
 Ext2
 Ext2 stands for second extended file system.
 This was developed to overcome the limitation of the original ext
file system.
 Ext2 does not have journaling feature.
 On flash drives, usb drives, ext2 is recommended, as it doesn’t
need to do the over head of journaling.
 Maximum individual file size can be from 16 GB to 2 TB
 Overall ext2 file system size can be from 2 TB to 32 TB
Ext3
 Ext3 stands for third extended file system.
 The main benefit of ext3 is that it allows journaling.
 Maximum individual file size can be from 16 GB to 2 TB
 Overall ext3 file system size can be from 2 TB to 32 TB
 There are three types of journaling available in ext3 file system.
 Journal / Data – Metadata and content are saved in the journal.
 Ordered – Only metadata is saved in the journal. Metadata
are journaled only after writing the content to disk. This is the default.
 Write back – Only metadata is saved in the journal. Metadata might
be journaled either before or after the content is written to the disk.
Ext4
 Ext4 stands for fourth extended file system.
 Maximum individual file size can be from 16 GB to 16 TB
 Overall maximum ext4 file system size is 1 EB (exabyte).
 Ext4 file system have option to Turn Off journaling feature.
 Other features like Sub Directory Scalability, Multiblock
Allocation, Delayed Allocation, etc.
 Creating Ext2 File System
# mke2fs /dev/device_name
 Creating Ext3 File System
# mke2fs –j /dev/device_name
OR
# mkfs.ext3 /dev/device_name
 Creating Ext4 File System
# mke2fs -t ext4 /dev/device_name
OR
# mkfs.ext4 /dev/device_name
Creating an Ext2, Ext3 and Ext4 File Systems
UBI stands for Unsorted Block Images.
A volume management system for raw flash devices
 Manage multiple logical volumes
 Spread the I/O load across whole flash chip
Vs. the Logical Volume Manager (LVM).
 LVM maps logical sectors to physical sectors,
 UBI maps logical erase blocks to physical erase blocks.
An UBI volume is a set of consecutive logical erase blocks (LEBs).
UBI FILE SYSTEM
UBI is aware of bad erase blocks and frees the upper layers
from any bad block handling.
20
PEB
LEB Volume A
UBI layer
1. Write data & failed
2. Recover the data to a good PEB
x 3. Retry write data
4. Remap LEB to new PEB
5. Mark this PEB bad
UBI/UBIFS stack
21
Six areas in UBIFS
 SB
 Super Block (SB) : static information
 MST
 Master Node (MST) : dynamic information
 LOG
 A part of UBIFS journal that the buds are.
 LPT (LEB properties tree)
 A wandering tree used to store LEB properties.
 ORPHAN
 Store the orphan inodes, which should be deleted at next reboot.
 MAIN
 the nodes that make up the file system data and the index.
UBIFS partition layout
SB MST LOG LPT ORPHAN MAIN
The purpose of the UBIFS journal
 To reduce the frequency of updates to the on-flash index
Journal
 All FS changes go to the journal
 Journal greatly increases FS write performance
 When mounting, journal is scanned and replayed
 Journal size is configurable and is stored in superblock
UBIFS’s Journal
A wandering tree used to store LEB properties.
LEB properties tree values
 Free space
 Dirty space
 Whether Erase block is an index erase block or not.
The LEB properties are essential
 To find space to add to the journal or the index.
 To find the dirtiest erase blocks to garbage collect.
LPT (LEB Properties Tree)
 Garbage Collector(GC) is responsible to turn dirty space to free
space
 One empty LEB is always reserved for GC
 GC procedure
1. Pick a victim LEB which has some dirty space.
2. Moves valid nodes from the victim LEB to the LEB reserved for GC.
3. If the victim LEB is erasable, erase the victim LEB.
4. pick new victim LEB, and moves the data to the reserved LEB
5. When the reserved LEB is full, pick another empty LEB, and continues
moving nodes from the victim LEB to the new reserved LEB
6. The process continues until a full empty LEB is produced.
Garbage collection
It is a single executable implementation of many standard
Linux® utilities.
It contains simple utilities such as cat and echo, as well as
larger more complex tools such as grep, find, mount etc.,
It has been written with size-optimization and limited
resources.
It is also extremely modular so we can easily include or
exclude commands (or features) at compile time.
Busy Box is a multi-call binary.
Busy Box
Invoking the Busy Box.
1. Invoke Busy Box by issuing a command as an argument
on the command line.
Ex:- /bin/busybox ls
will cause Busy Box to behave as 'ls'.
2. Invoke Busy Box using links to the Busy Box binary.
Ex:- ln -s /bin/busybox ls
./ls
will cause BusyBox to behave as 'ls‘.
Root file system

More Related Content

What's hot

Root file system for embedded systems
Root file system for embedded systemsRoot file system for embedded systems
Root file system for embedded systemsalok pal
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New HardwareRuggedBoardGroup
 
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Linaro
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 
Introduction to char device driver
Introduction to char device driverIntroduction to char device driver
Introduction to char device driverVandana Salve
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBshimosawa
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingTushar B Kute
 
Architecture Of The Linux Kernel
Architecture Of The Linux KernelArchitecture Of The Linux Kernel
Architecture Of The Linux Kernelguest547d74
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting ProcessGaurav Sharma
 
Linux System Programming - File I/O
Linux System Programming - File I/O Linux System Programming - File I/O
Linux System Programming - File I/O YourHelper1
 
Introduction Linux Device Drivers
Introduction Linux Device DriversIntroduction Linux Device Drivers
Introduction Linux Device DriversNEEVEE Technologies
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequenceHoucheng Lin
 
Linux Kernel Module - For NLKB
Linux Kernel Module - For NLKBLinux Kernel Module - For NLKB
Linux Kernel Module - For NLKBshimosawa
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linuxsureskal
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Processdarshhingu
 
Introduction to systemd
Introduction to systemdIntroduction to systemd
Introduction to systemdYusaku OGAWA
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemSadia Bashir
 

What's hot (20)

Root file system for embedded systems
Root file system for embedded systemsRoot file system for embedded systems
Root file system for embedded systems
 
Embedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernelEmbedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernel
 
U-Boot Porting on New Hardware
U-Boot Porting on New HardwareU-Boot Porting on New Hardware
U-Boot Porting on New Hardware
 
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Introduction to char device driver
Introduction to char device driverIntroduction to char device driver
Introduction to char device driver
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module Programming
 
Architecture Of The Linux Kernel
Architecture Of The Linux KernelArchitecture Of The Linux Kernel
Architecture Of The Linux Kernel
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Linux System Programming - File I/O
Linux System Programming - File I/O Linux System Programming - File I/O
Linux System Programming - File I/O
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Introduction Linux Device Drivers
Introduction Linux Device DriversIntroduction Linux Device Drivers
Introduction Linux Device Drivers
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
 
Linux Kernel Module - For NLKB
Linux Kernel Module - For NLKBLinux Kernel Module - For NLKB
Linux Kernel Module - For NLKB
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
 
Introduction to systemd
Introduction to systemdIntroduction to systemd
Introduction to systemd
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 

Similar to Root file system

11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copyShay Cohen
 
TLPI Chapter 14 File Systems
TLPI Chapter 14 File SystemsTLPI Chapter 14 File Systems
TLPI Chapter 14 File SystemsShu-Yu Fu
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
File systemimplementationfinal
File systemimplementationfinalFile systemimplementationfinal
File systemimplementationfinalmarangburu42
 
linux file sysytem& input and output
linux file sysytem& input and outputlinux file sysytem& input and output
linux file sysytem& input and outputMythiliA5
 
Linux Basics
Linux BasicsLinux Basics
Linux BasicsLokesh C
 
Internal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya JyothiInternal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya JyothiSowmya Jyothi
 
linuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdflinuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdfShaswatSurya
 
Filesystemimplementationpre final-160919095849
Filesystemimplementationpre final-160919095849Filesystemimplementationpre final-160919095849
Filesystemimplementationpre final-160919095849marangburu42
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystemsAcácio Oliveira
 
Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems senthilamul
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6Meenakshi Paul
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layoutAcácio Oliveira
 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems Dhaivat Zala
 

Similar to Root file system (20)

11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copy
 
TLPI Chapter 14 File Systems
TLPI Chapter 14 File SystemsTLPI Chapter 14 File Systems
TLPI Chapter 14 File Systems
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
File systemimplementationfinal
File systemimplementationfinalFile systemimplementationfinal
File systemimplementationfinal
 
linux file sysytem& input and output
linux file sysytem& input and outputlinux file sysytem& input and output
linux file sysytem& input and output
 
Linux Basics
Linux BasicsLinux Basics
Linux Basics
 
Internal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya JyothiInternal representation of file chapter 4 Sowmya Jyothi
Internal representation of file chapter 4 Sowmya Jyothi
 
Linux file system
Linux file systemLinux file system
Linux file system
 
linuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdflinuxfilesystem-180727181106 (1).pdf
linuxfilesystem-180727181106 (1).pdf
 
Filesystemimplementationpre final-160919095849
Filesystemimplementationpre final-160919095849Filesystemimplementationpre final-160919095849
Filesystemimplementationpre final-160919095849
 
Os
OsOs
Os
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems
 
Ext filesystem4
Ext filesystem4Ext filesystem4
Ext filesystem4
 
Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems
 
Windowsforensics
WindowsforensicsWindowsforensics
Windowsforensics
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layout
 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems
 

Recently uploaded

1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree z zzz
 
专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degreeyuu sss
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》o8wvnojp
 
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...Authentic No 1 Amil Baba In Pakistan
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile servicerehmti665
 
威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证kbdhl05e
 
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一Fi sss
 
萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程1k98h0e1
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一ga6c6bdl
 
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...ur8mqw8e
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...ttt fff
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfchapmanellie27
 
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...Amil baba
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一ss ss
 
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...nagunakhan
 

Recently uploaded (20)

1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
1:1原版定制美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
CIVIL ENGINEERING
CIVIL ENGINEERINGCIVIL ENGINEERING
CIVIL ENGINEERING
 
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国加州州立大学东湾分校毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
 
Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
 
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
Call Girls In Paharganj 24/7✡️9711147426✡️ Escorts Service
 
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile service
 
威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证
 
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
 
萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
 
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
 
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
 
young call girls in Khanpur,🔝 9953056974 🔝 escort Service
young call girls in  Khanpur,🔝 9953056974 🔝 escort Serviceyoung call girls in  Khanpur,🔝 9953056974 🔝 escort Service
young call girls in Khanpur,🔝 9953056974 🔝 escort Service
 
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
 

Root file system

  • 2. The root file system is the file system that is contained on the same partition on which the root directory is located, and it is the file system on which all the other file systems are mounted as the system is booted up. The root file system should generally be small, because it contains critical files and infrequently modified file system. The exact contents of the root file system will vary according to the computer. Introduction
  • 3.  It contains the files and directories critical for system operation, including the device directory and programs for booting the system. The root file system also contains mount points where file systems can be mounted to connect to the root file system hierarchy. Single user mode.  Contents
  • 4.
  • 5. /bin -> This directory contains binary executable files available to all users. Ex:-bash, busybox, cat, chmod, mount, cp, mv… /sbin -> This directory contains tools needed for an administrator, that an ordinary user can not use it. It will be in root’s default path. Ex:-ifconfig, route, rmmod, ip, mkfs, mke2fs… /lib -> Contains architecture-independent libraries. /boot -> This directory contains BOOT_LOADER and its configuration file, directory GRUB or LILO. /dev -> Contains device nodes for special files for local devices. /etc -> This directory contains directories and files that are used for system configuration. /mnt -> It contains mount point for temporary mounts by the system administrator.
  • 6. /proc -> It presents information about processes and other system information in a hierarchical file-like structure. /home -> Serves as a mount point for a file system containing user home directories. /usr -> Contains files that do not change and can be shared by machines such as executables and ASCII documentation. /var -> This directory has a multiple purpose of which is the most basic: -  Storage of undelivered data from uncompleted process (printer ...) [/var/spool/.....].  Storage of unread or undelivered mail [/var/mail/.....].  Web Contents of site [/var/www/.....].  Records on the use of system resources (memory, disk drives, processor ...) [/var/lock/.....].  Temporary files that must be preserved during reboot [/var/tmp/.....].
  • 7. FAT is a table that an operating system maintains on a hard disk that provides a map of the clusters that a file has been stored in. The purpose of this table is to keep track of which areas of the disk are available and which areas are in use. There are three types of FAT  FAT 12  FAT 16  FAT 32 FAT(FILE ALLOCATION TABLE)
  • 8. The Boot Sector The information about the file system, including cluster size, sector size, etc. is located in the boot sector. File Allocate Table The FAT is a simple array of 12-bit, 16-bit or 32-bit data elements(addressing the cluster).
  • 9. Directories  It contains the short name, file size, starting cluster, and temporal information (time/date stamps). Each directory entry points to a starting cluster and to a place in the FAT where the cluster chain for the rest of the file is located. Clusters The data area is divided into sector groups called clusters. All the clusters in a single FAT volume have the same size. Slack space It refers to any unused space at the end of a cluster and cannot be used by any other file or directory.
  • 10. mkfs.vfat [ -a ] [ -A ] [ -b] [ -c ] [ -l ] [ -C ] [ -f ] [ -F ] [ -h ] [ -i ] [ -I ] [ -m ] [ -n ] [ -r ] [ -R ] [ -s ] [ -S ] [ -v ] Description:- Options:-  -a -> will align all the data structures to cluster size.  -A -> turns off Atari format.  -b -> Selects the location of the backup boot sector for FAT32.  -c -> Check the device for bad blocks before creating the file system. Creating a FAT File System.
  • 11.  -C -> used to create the new file system in a file instead of on a real device.  -f -> Specify the number of file allocation tables in the file system.  -F -> Specifies the type of file allocation tables used (12, 16 or 32 bit).  -h -> Select the number of hidden sectors in the volume.  -i -> Sets the volume ID of the newly created file system.  -I -> Specifies partition for fixed disk devices.  -l -> Read the bad blocks list from filename.
  • 12.  -m -> Sets the message the user receives on attempts to boot this file system without having properly installed an operating system.  -n -> Sets the volume name (label) of the file system.  -r -> Select the number of entries available in the root directory.  -R -> Select the number of reserved sectors.  -s -> Specify the number of disk sectors per cluster.  -S -> Specify the number of bytes per logical sector. Must be a power of 2 and greater than or equal to 512.  -v -> Verbose execution.
  • 13. Example:- 1. sudo dd if=/dev/zero of=./mydisk bs=64M count=1 2. sudo mkfs.vfat -F 32 ./mydisk 3. sudo mkfs.vfat -F 32 -f 2 -S 512 -s 1 -R 32 ./mydisk
  • 14.  It is the original file system introduced with the Linux operating system.  It uses virtual directories to handle physical devices, and storing data in fixed-length blocks on the physical devices.  The ext file-system uses a system called inodes to track information about the files stored in the virtual directory.  The extended part of the name comes from the additional data that it tracks on each file, which consists of: • The file name • The file size • The owner of the file • The group the file belongs to • Access permissions for the file • Pointers to each disk block that contains data from the file EXTENDED FILE SYSTEM 2/3/4
  • 15.  Ext2  Ext2 stands for second extended file system.  This was developed to overcome the limitation of the original ext file system.  Ext2 does not have journaling feature.  On flash drives, usb drives, ext2 is recommended, as it doesn’t need to do the over head of journaling.  Maximum individual file size can be from 16 GB to 2 TB  Overall ext2 file system size can be from 2 TB to 32 TB
  • 16. Ext3  Ext3 stands for third extended file system.  The main benefit of ext3 is that it allows journaling.  Maximum individual file size can be from 16 GB to 2 TB  Overall ext3 file system size can be from 2 TB to 32 TB  There are three types of journaling available in ext3 file system.  Journal / Data – Metadata and content are saved in the journal.  Ordered – Only metadata is saved in the journal. Metadata are journaled only after writing the content to disk. This is the default.  Write back – Only metadata is saved in the journal. Metadata might be journaled either before or after the content is written to the disk.
  • 17. Ext4  Ext4 stands for fourth extended file system.  Maximum individual file size can be from 16 GB to 16 TB  Overall maximum ext4 file system size is 1 EB (exabyte).  Ext4 file system have option to Turn Off journaling feature.  Other features like Sub Directory Scalability, Multiblock Allocation, Delayed Allocation, etc.
  • 18.  Creating Ext2 File System # mke2fs /dev/device_name  Creating Ext3 File System # mke2fs –j /dev/device_name OR # mkfs.ext3 /dev/device_name  Creating Ext4 File System # mke2fs -t ext4 /dev/device_name OR # mkfs.ext4 /dev/device_name Creating an Ext2, Ext3 and Ext4 File Systems
  • 19. UBI stands for Unsorted Block Images. A volume management system for raw flash devices  Manage multiple logical volumes  Spread the I/O load across whole flash chip Vs. the Logical Volume Manager (LVM).  LVM maps logical sectors to physical sectors,  UBI maps logical erase blocks to physical erase blocks. An UBI volume is a set of consecutive logical erase blocks (LEBs). UBI FILE SYSTEM
  • 20. UBI is aware of bad erase blocks and frees the upper layers from any bad block handling. 20 PEB LEB Volume A UBI layer 1. Write data & failed 2. Recover the data to a good PEB x 3. Retry write data 4. Remap LEB to new PEB 5. Mark this PEB bad
  • 22. Six areas in UBIFS  SB  Super Block (SB) : static information  MST  Master Node (MST) : dynamic information  LOG  A part of UBIFS journal that the buds are.  LPT (LEB properties tree)  A wandering tree used to store LEB properties.  ORPHAN  Store the orphan inodes, which should be deleted at next reboot.  MAIN  the nodes that make up the file system data and the index. UBIFS partition layout SB MST LOG LPT ORPHAN MAIN
  • 23. The purpose of the UBIFS journal  To reduce the frequency of updates to the on-flash index Journal  All FS changes go to the journal  Journal greatly increases FS write performance  When mounting, journal is scanned and replayed  Journal size is configurable and is stored in superblock UBIFS’s Journal
  • 24. A wandering tree used to store LEB properties. LEB properties tree values  Free space  Dirty space  Whether Erase block is an index erase block or not. The LEB properties are essential  To find space to add to the journal or the index.  To find the dirtiest erase blocks to garbage collect. LPT (LEB Properties Tree)
  • 25.  Garbage Collector(GC) is responsible to turn dirty space to free space  One empty LEB is always reserved for GC  GC procedure 1. Pick a victim LEB which has some dirty space. 2. Moves valid nodes from the victim LEB to the LEB reserved for GC. 3. If the victim LEB is erasable, erase the victim LEB. 4. pick new victim LEB, and moves the data to the reserved LEB 5. When the reserved LEB is full, pick another empty LEB, and continues moving nodes from the victim LEB to the new reserved LEB 6. The process continues until a full empty LEB is produced. Garbage collection
  • 26. It is a single executable implementation of many standard Linux® utilities. It contains simple utilities such as cat and echo, as well as larger more complex tools such as grep, find, mount etc., It has been written with size-optimization and limited resources. It is also extremely modular so we can easily include or exclude commands (or features) at compile time. Busy Box is a multi-call binary. Busy Box
  • 27. Invoking the Busy Box. 1. Invoke Busy Box by issuing a command as an argument on the command line. Ex:- /bin/busybox ls will cause Busy Box to behave as 'ls'. 2. Invoke Busy Box using links to the Busy Box binary. Ex:- ln -s /bin/busybox ls ./ls will cause BusyBox to behave as 'ls‘.

Editor's Notes

  1. /usr -> Standalone machines mount the root of a separate local file system over the /usr directory. Diskless machines and machines with limited disk resources mount a directory from a remote server over the /usr file system.