Centos 7 Partition Management With Fdisk Utility: File System
Centos 7 Partition Management With Fdisk Utility: File System
Centos 7 Partition Management With Fdisk Utility: File System
File System
In computer system, a File System defines how data or information is stored and retrieved from a storage disk.
In Windows Operating System, the popular file systems are FAT32 and NTFS. On the other hand in Linux
Operating System, the popular file systems are ext2, ext3, ext4, xfs (current), vfat, swap, ZFS and GlusterFS.
The MBR holds the information about how the logical partitions that contains file systems are organized on the
disk.
In Linux Operating System the MBR can have maximum 15 partitions and among them 4 partitions are primary
and the rest are logical partitions.
On the other hand in the Windows Operating System, the MBR can have maximum 24 partitions where 4 are primary and
the rest are logical.
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Mounting partition
[root@localhost ~]# mkfs.ext4 /dev/sdb1
[root@localhost ~]# mkdir /test/1
[root@localhost ~]# mount /dev/sdb1 /test/1/
[root@localhost ~]# lsblk
At this stage, our mounted partitions are temporary. If our Operating System gets restarted, these mounted
directory will be lost. So, we need to do permanent mount. To do permanent mount, we have to put entry in fstab
file. You can see current fstab entry with the following command.
RPM (Red Hat Package Manager
is an default open source and most popular package management utility for Red Hat based systems like
(RHEL, CentOS and Fedora). The tool allows system administrators and users to install, update, uninstall, query, verify and
manage system software packages in Unix/Linux operating systems. The RPM formerly known as .rpm file, that includes
compiled software programs and libraries needed by the packages. This utility only works with packages that built
on .rpm format
# ip a
# nmcli -p dev
# ip a s eth0
Ifconfig
Ip addr
Introduction
In Linux, a repository is a central database of software. Linux distributions have a central repository for system and
commonly-used software.
Yum is a local repository for RPM package files. These packages compress available software for Linux distributions. With the
repository, you can download, install and hold packages on a local disk or remotely.
Prerequisites
Access to a user account with root or sudo privileges
Access to a terminal window/command-line (Menu > Applications > Utilities > Terminal)
The YUM (Yellowdog Updater Modified) package manager, installed by default
[root@localhost ~]# getenforce ------ to check firewall is activate
Enforcing
[root@localhost ~]# setenforce 0 -------- to disable firewall for temporary
[root@localhost ~]# getenforce
Permissive
[root@localhost ~]#
[root@localhost ~]# rpm -q creterepo vsftpd deltarpm python-deltarpm ------ to check default installed packages
package creterepo is not installed
vsftpd-3.0.2-28.el7.x86_64
deltarpm-3.6-3.el7.x86_64
python-deltarpm-3.6-3.el7.x86_64
[root@localhost ~]#