SlideShare a Scribd company logo
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Linux Essenciais and System Administration
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Key Knowledge Areas
Manually mount and unmount filesystems.
Configure filesystem mounting on bootup.
Configure user mountable removeable filesystems.
Devices, Linux Filesystems, Filesystem Hierarchy Standard
Control mounting and unmounting of filesystems
Terms and Utilities
/etc/fstab
/media
mount
umount
LVM
2
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Control mounting and unmounting
Mount Points
3
If logical data is below root folder and there’s no change in the logical id of the partition
how do we see other logical data created by the other partitions that exist?
(Like C: change to D: and back to C: in windows )
All partitions are connected through the root directory via a mount point.
Mount point defines the place of a particular data set in the file system.
That is…
When a partition is mounted, files on its filesystem become part of the system.
In Linux partitions are mounted on directories, and files in the partition becomes files in the directory
Ex: # mke2fs /dev/hda2 # create the filesystem on a partition
# mkdir /home # make a place to put it
# mount /dev/hda2 /home # put it there
Use cmd mount to create mount points
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Mount Points
4
Ex: ##
/etc/fstab
# Created by anaconda on Fri May 28 12:37:05 2010
##
Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=082fb0d5-a5db-41d1-ae04-6e9af3ba15f7 / ext4 defaults 1 1
UUID=488edd62-6614-4127-812d-cbf58eca85e9 /grubfile ext3 defaults 1 2
UUID=2d4f10a6-be57-4e1d-92ef-424355bd4b39 swap swap defaults 0 0
UUID=ba38c08d-a9e7-46b2-8890-0acda004c510 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
Example of Fedora 13 fstab with mount points
Control mounting and unmounting
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Mount Points
5
Ex: # /etc/fstab: static file system information.
##
Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
##
<file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=8954fa66-e11f-42dc-91f0-b4aa480fa103 / ext3 errors=remount-ro 0 1
# /grubfile was on /dev/sda2 during installation
UUID=3a965842-b6dd-4d52-8830-2d0fdb4284a2 /grubfile ext3 defaults 0 2
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
developerWorks® ibm.com/developerWorks
Control
Example of Ubuntu 9.10 fstab with mount points
Control mounting and unmounting
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Mount Points
6
Unmounting filesystems
Usually unmounted automatically on rebooted or shutdown.
When a filesystem is unmounted, any cached filesystem data in memory is flushed.
You may unmount manually.
This should be done for removing media (diskettes, DVD’s, USB drives).
Ex: # umount /dos
# mount /dev/sda9 /dos
# umount /dev/sda9
Use umount command, with argument for the device name or mount point
Control mounting and unmounting
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Mount Points
7
After a filesystem is unmounted, any files in the directory used for the mount
point are visible again.
Ex: $ mount | grep sr0
/dev/sr0 on /media/KNOPPIX type iso9660 (ro,nosuid,nodev,uhelper=udisks,
uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
$ id acacio
uid=1000(acacio) gid=1000(acacio) groups=1000(acacio)
If there´s a process with open files on the fs to unmount it gives a error message.
Use lsof or fuser cmd to determine open files or processes with open files.
Option -w on lsof to avoid warning messages related to Gnome Virtual File system (gvfs).
Unmount removable media before removing.
Media Floppy (auto) DVD (udf) and CD’s (iso9660) can use cmd eject after cmd umount.
If device is not unmounted first, eject will both unmount and eject the disc.
Control mounting and unmounting
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
LVM
8
Logical Volume Manager
•Abstracts the physical hardware into logical drive spaces which can be dynamically
grown/shrunk and span disparate physical devices.
•Simplifies drive management as it abstracts away details of the underlying storage devices.
•Adds small amount of overhead to VFS layer, slightly reducing performance.
Logical Volume Manager
To create a space suitable for mkfs, three steps must occur:
•pvcreate Create a physical volume
•vgcreate Create a volume group on PV
•lvcreate Create a logical volume on VG
Also look for: pvdisplay, vgdisplay, lvdisplay.
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Fim de sessão
9
CoreLinuxforRedHatandFedoralearningunderGNUFreeDocumentationLicense-Copyleft(c)AcácioOliveira2012
Everyoneispermittedtocopyanddistributeverbatimcopiesofthislicensedocument,changingisallowed
Fim de sessão
9

More Related Content

PPT
4.3 control mounting and unmounting of filesystems v2
PPT
101 4.3 control mounting and unmounting of filesystems
PDF
Год в Github bugbounty, опыт участия
PDF
How to mount and unmount filesystem
PDF
unix-rosetta
PPT
4.2 maintain the integrity of filesystems
PDF
Python & FUSE
PPT
101 apend. kernel
4.3 control mounting and unmounting of filesystems v2
101 4.3 control mounting and unmounting of filesystems
Год в Github bugbounty, опыт участия
How to mount and unmount filesystem
unix-rosetta
4.2 maintain the integrity of filesystems
Python & FUSE
101 apend. kernel

What's hot (20)

PPT
101 4.2 maintain the integrity of filesystems
PDF
Writing flexible filesystems in FUSE-Python
DOCX
PDF
[ArabBSD] Unix Basics
DOCX
Chroot Protection and Breaking
PPT
Apend. kernel
PDF
FreeBSD ports
PPTX
Fuse- Filesystem in User space
PDF
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
PDF
Creación de máquinas virtuales basada en kernel usando qemu y virsh
KEY
IgniteATL - Hackintoshing
PDF
MINCS - containers in the shell script (Eng. ver.)
PDF
FUSE (Filesystem in Userspace) on OpenSolaris
PDF
Lecture 5 Kernel Development
PDF
Web Server Free Bsd
PDF
Default bootloader DFU + UART
PDF
Install power linux through cdrom and network redhat and suse
PDF
Lecture 6 Kernel Debugging + Ports Development
PDF
ch6-pv2-device-drivers
PDF
Linux fundamental - Chap 12 Hardware Management
101 4.2 maintain the integrity of filesystems
Writing flexible filesystems in FUSE-Python
[ArabBSD] Unix Basics
Chroot Protection and Breaking
Apend. kernel
FreeBSD ports
Fuse- Filesystem in User space
How to make multi-boot USB drive for LiveCD iso images on EFI/UEFI and BIOS
Creación de máquinas virtuales basada en kernel usando qemu y virsh
IgniteATL - Hackintoshing
MINCS - containers in the shell script (Eng. ver.)
FUSE (Filesystem in Userspace) on OpenSolaris
Lecture 5 Kernel Development
Web Server Free Bsd
Default bootloader DFU + UART
Install power linux through cdrom and network redhat and suse
Lecture 6 Kernel Debugging + Ports Development
ch6-pv2-device-drivers
Linux fundamental - Chap 12 Hardware Management
Ad

Similar to 101 4.3 control mounting and unmounting of filesystems v2 (20)

PPT
101 4.3 control mounting and unmounting of filesystems
PPT
Ch12 system administration
PPTX
11 linux filesystem copy
PDF
CIT173_Ch15_Mnstr_23.pdf
PPTX
Disk and File System Management in Linux
PPTX
File Systems : Mount and Unmount - R.D.Sivakumar
PDF
Course 102: Lecture 26: FileSystems in Linux (Part 1)
PPT
Unix Administration 4
PDF
PPT
101 4.1 create partitions and filesystems
PPT
4.1 create partitions and filesystems
PDF
Cd rom mounting cdro-ms on solaris
PPT
101 4.2 maintain the integrity of filesystems
PPT
Linux filesystemhierarchy
PDF
Inspection and maintenance tools (Linux / OpenStack)
DOC
How to mount ntfs in linux
PDF
openbsd-as-nas.pdf
PPT
101 2.1 design hard disk layout v2
PPT
2.1 design hard disk layout v2
101 4.3 control mounting and unmounting of filesystems
Ch12 system administration
11 linux filesystem copy
CIT173_Ch15_Mnstr_23.pdf
Disk and File System Management in Linux
File Systems : Mount and Unmount - R.D.Sivakumar
Course 102: Lecture 26: FileSystems in Linux (Part 1)
Unix Administration 4
101 4.1 create partitions and filesystems
4.1 create partitions and filesystems
Cd rom mounting cdro-ms on solaris
101 4.2 maintain the integrity of filesystems
Linux filesystemhierarchy
Inspection and maintenance tools (Linux / OpenStack)
How to mount ntfs in linux
openbsd-as-nas.pdf
101 2.1 design hard disk layout v2
2.1 design hard disk layout v2
Ad

More from Acácio Oliveira (20)

PPTX
Security+ Lesson 01 Topic 24 - Vulnerability Scanning vs Pen Testing.pptx
PPTX
Security+ Lesson 01 Topic 25 - Application Security Controls and Techniques.pptx
PPTX
Security+ Lesson 01 Topic 21 - Types of Application Attacks.pptx
PPTX
Security+ Lesson 01 Topic 19 - Summary of Social Engineering Attacks.pptx
PPTX
Security+ Lesson 01 Topic 23 - Overview of Security Assessment Tools.pptx
PPTX
Security+ Lesson 01 Topic 20 - Summary of Wireless Attacks.pptx
PPTX
Security+ Lesson 01 Topic 22 - Security Enhancement Techniques.pptx
PPTX
Security+ Lesson 01 Topic 15 - Risk Management Best Practices.pptx
PPTX
Security+ Lesson 01 Topic 13 - Physical Security and Environmental Controls.pptx
PPTX
Security+ Lesson 01 Topic 14 - Disaster Recovery Concepts.pptx
PPTX
Security+ Lesson 01 Topic 06 - Wireless Security Considerations.pptx
PPTX
Security+ Lesson 01 Topic 04 - Secure Network Design Elements and Components....
PPTX
Security+ Lesson 01 Topic 02 - Secure Network Administration Concepts.pptx
PPTX
Security+ Lesson 01 Topic 01 - Intro to Network Devices.pptx
PPTX
Security+ Lesson 01 Topic 08 - Integrating Data and Systems with Third Partie...
PPTX
Security+ Lesson 01 Topic 07 - Risk Related Concepts.pptx
PPTX
Security+ Lesson 01 Topic 05 - Common Network Protocols.pptx
PPTX
Security+ Lesson 01 Topic 11 - Incident Response Concepts.pptx
PPTX
Security+ Lesson 01 Topic 12 - Security Related Awareness and Training.pptx
PPTX
Security+ Lesson 01 Topic 17 - Types of Malware.pptx
Security+ Lesson 01 Topic 24 - Vulnerability Scanning vs Pen Testing.pptx
Security+ Lesson 01 Topic 25 - Application Security Controls and Techniques.pptx
Security+ Lesson 01 Topic 21 - Types of Application Attacks.pptx
Security+ Lesson 01 Topic 19 - Summary of Social Engineering Attacks.pptx
Security+ Lesson 01 Topic 23 - Overview of Security Assessment Tools.pptx
Security+ Lesson 01 Topic 20 - Summary of Wireless Attacks.pptx
Security+ Lesson 01 Topic 22 - Security Enhancement Techniques.pptx
Security+ Lesson 01 Topic 15 - Risk Management Best Practices.pptx
Security+ Lesson 01 Topic 13 - Physical Security and Environmental Controls.pptx
Security+ Lesson 01 Topic 14 - Disaster Recovery Concepts.pptx
Security+ Lesson 01 Topic 06 - Wireless Security Considerations.pptx
Security+ Lesson 01 Topic 04 - Secure Network Design Elements and Components....
Security+ Lesson 01 Topic 02 - Secure Network Administration Concepts.pptx
Security+ Lesson 01 Topic 01 - Intro to Network Devices.pptx
Security+ Lesson 01 Topic 08 - Integrating Data and Systems with Third Partie...
Security+ Lesson 01 Topic 07 - Risk Related Concepts.pptx
Security+ Lesson 01 Topic 05 - Common Network Protocols.pptx
Security+ Lesson 01 Topic 11 - Incident Response Concepts.pptx
Security+ Lesson 01 Topic 12 - Security Related Awareness and Training.pptx
Security+ Lesson 01 Topic 17 - Types of Malware.pptx

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPT
Teaching material agriculture food technology
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Understanding_Digital_Forensics_Presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Dropbox Q2 2025 Financial Results & Investor Presentation
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Big Data Technologies - Introduction.pptx
Teaching material agriculture food technology
sap open course for s4hana steps from ECC to s4
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation

101 4.3 control mounting and unmounting of filesystems v2