The file system check commands are
File system checks are done by following the below steps :
fsckutility is used to verify and repair Linux filesystems like
ext4, and so on. Depending on when was the last time a file system was verified, the system executes the
fsckcommand at the boot time to monitor if the filesystem is in steady condition.
fsckcommand manually if there are issues with the filesystems. We should ensure that
fsckis not run on a
unmountedfile to avoid loss of data.
xfs_repairutility is used to verify and repair Linux filesystems of
xfs_repairutility is very scalable and is created to fix even very big file systems with multiple inodes. This utility does not execute at boot time.
exit codesfor fsck command are:
The /dev/sdb1 file system is mounted on
xfs, run the command:
There is no /dev/sdb1 filesystem mounted on /data available anymore.
mount /dev/sdb1 /data
The types of System Backups are:
The dd is a command-line utility for Unix and Unix-like operating systems whose aim is to convert and copy files. For this, it can be utilized for actions like backing up the boot sector of a hard drive and getting a fixed amount of random data.
dd if=<source file name> of=<target file name> [Options]. For example,
dd if=/dev/sda of=/dev/sdb
dd if =/dev/sda1 of=/root/sda1.img
sda1.imgto another machine after copying the image, run the command:
dd if=/root/sda1.img of=/dev/sdb3
The different types of files and directories that we create constitute a file system. The types of file systems are
NTFS, and so on. The file system layout and partitions are
To check the file system, we use the commands
The troubleshooting steps are as follows :
fsckon the block device and not on the mount point.
Myself Debomita Bhattacharjee, an IT employee with 6+ years of experience in Software industry. My area of interest is Automation testing and Front End Development.