#linux #mounting #partitioning #filesystems #disk
- To modify the superblock reserve space # tune2fs -m <give space how much you want> <partition name>
- To check the consistency of the filesystem# fsck <partition name>
- To check the consistency of the filesystem in interactive mode# e2fsck <partition name>
- To check the consistency of the filesystem without interactive mode# e2fsck -p <partition name>
- To see the superblock information of a partition in Linux# mke2fs -n <partition name>
- To format the partition in the specified filesystem type# mke2fs -t <file system type> <partition name>
- # umount -a -> to unmount all the file systems except the root(/) file system
- # mount -a -> to mount all the file systems which are configured in /etc/fstab file
- # fsck -A -> to run fsck on all filesystems
- # umount <file system mount point> -> to unmount the file system
- # fdisk -l -> to list all the disks in your filesystem
- # mount -o remount,rw /dev/sda1 -> to mount the partition with read and write permissions
- # fuser -cu <partition/device name> -> to see the users who are accessing that file system.
- # fuser -cK <partition/device name> -> to kill the users processes who accessing the filesystem.
- # journalctl -> It tracks all the log files between two different timings and by default saved in /run/log location.* /run/log - is mounted on tmpfs file system. i.e., if the system is rebooted, the whole information in the location will be deleted.
- # umount -f <mount point> -> to unmount the device/partition forcefully
- # df -hT -> It shows the all information about the filesystem like type, size, how much is used and mount points, etc..
- # mount or # cat /etc/mtab -> to list all the mount points in filesystem.
- # free -m -> It will show the present swap size
- # swapon -s -> to see the swap usage
- # fdisk <disk name> -> To make the new partition in a particular disk.
- # mount -l -> To list all the mounted partitions along with their labels.
- # e2label <device/partition name> -> To assign the labels to the partitions.
- # ncdu - > It means 'NCurses Dick Usage', It will list the biggest file and directories.
- du -h -> It will show the dick usage of all files in the file system.
- mkfs.ext4/ext3/xfs/vfat <device name> -> To make file system in linux.* Here 'ext4/ext3/xfs/vfat' are all filesystem formats.
- #du -s * | sort -nr | head -n10 -> This command shows the biggest directories from that filesystem.
- # sar -> sat utility is to watch the system activity report like CPU, memory,...etc
- # auditctl -> To check the audit report of the system.
- # smartctl -H <disk name> -> To check the health of the specified hard disk.
Sir I am looking for a job and my location bangalore pls help 7879230061