dumpe2fs command in Linux with examples Last Updated : 15 May, 2019 Comments Improve Suggest changes Like Article Like Report dumpe2fs command is used to print the super block and blocks group information for the filesystem present on device. Can be used with ext2/ext3/ext4 filesystem for information. The printed information may be old or inconsistent when it is used with a mounted filesystem. Don't forget to unmount your partition before using this command. umount device Syntax: dumpe2fs [ -bfhixV ] [ -o superblock=superblock ] [ -o blocksize=block-size ] device Options: b : Used to get the blocks which are reserved as bad in the filesystem. o superblock=superblock : It uses the superblock during the examination of filesystem. This option is not usually needed except by a filesystem wizard who is examining the remains of a very badly corrupted filesystem. o blocksize=blocksize : It uses the blocksize during the examination of filesystem. This option is not usually needed except by a filesystem wizard who is examining the remains of a very badly corrupted filesystem. f : Used to force dumpe2fs to display a filesystem even though it may have some filesystem feature flags which dumpe2fs may not understand. h : It will only display the superblock information and not any of the block group descriptor detail information. i : Used to show the filesystem data from an image file created by e2image, using device as the pathname to the image file. x : Display the detailed group information block numbers in hexadecimal format. V : Display the version number of dumpe2fs and exit. Superblock: It is a record of the characteristics of a filesystem. It includes information about size, block size, empty and the filled blocks. Linux also maintains a copy of its superblock< in memory. If you are unable to mount your device, this can be due to a Corrupted superblock. Examples: Displaying superblock information: sudo dumpe2fs -h /dev/sda3 Displaying Information of block groups: sudo dumpe2fs /dev/sda3 This displays information about block groups. Notice Primary superblock Observing more about superblocks: sudo dumpe2fs /dev/sda4 | grep -i superblock Displays all available superblocks with discriptors. Displaying the version of dumpe2fs: sudo dumpe2fs -V Comment More infoAdvertise with us V VivekAgrawal3 Follow Improve Article Tags : Linux-Unix Similar Reads dir command in Linux with examples The dir command in Linux is used to list the contents of a directory, providing an overview of the files and folders within it. How is the dir command different from ls?dir command differs from the ls command in the format of listing contents that is in default listing options. By default, dir comma 5 min read Dirname Command in Linux with Examples dirname is a command in Linux that is used to remove the trailing forward slashes "/" from the NAME and print the remaining portion. If the argument NAME does not contain the forward slash "/" then it simply prints dot ".". In other words, we can say that the 'dirname' command is a useful tool for e 3 min read dirs command in Linux with examples dirs command shell builtin is used to display the list of currently remembered directories. By default, it includes the directory you are currently in. A directory can get into the list via pushd command followed by the dir name and can be removed via popd command. Syntax: dirs [-clpv] [+N] [-N] It 1 min read enable and disable command in Linux Enables and disables are the built-in shell commands. enable command is used to start the printers or classes whereas the disable command is used to stop the printers or classes. Syntax For enable Command: enable [-a] [-dnps] [-f filename][name ...] Syntax For disable Command: disable [-c] [-W] [ -r 1 min read dmesg command in Linux for driver messages dmesg command also called âdriver messageâ or âdisplay messageâ is used to examine the kernel ring buffer and print the message buffer of the kernel. The output of this command contains the messages produced by the device drivers.Usage of dmesg:When the computer boots up, there are lot of messages(l 5 min read dmidecode command in Linux with Examples The 'dmidecode' command, short for Desktop Management Interface table decoder, is a powerful utility in Linux that retrieves detailed information about your system's hardware components. This tool reads the DMI table and presents the data in a human-readable format, making it invaluable for system a 4 min read domainname Command in Linux With Examples domainname command in Linux is used to return the Network Information System (NIS) domain name of the host. You can use hostname -d command as well to get the host domainname. If the domain name is not set up in your host then the response will be "none". In networking terminology, the domain name i 3 min read dos2unix and unix2dos commands Sometimes, you will need to move files between windows and unix systems. Window files use the same format as Dos, where the end of line is signified by two characters, Carriage Return or CR or \r followed by Line Feed or LF or \n. Unix files, on the other hand, use only Line Feed (\n). unix2dos is a 4 min read dosfsck command in Linux with Examples dosfsck stands for DOS File System Consistency Check and is part of the dosfstools package in Unix-like operating systems. This command diagnoses and repairs MS-DOS filesystems (FAT12, FAT16, FAT32). Before running dosfsck, it is crucial to unmount the filesystem to avoid data corruption.Syntax:dosf 4 min read dstat Command in Linux With Examples dstat is a tool that is used to retrieve information or statistics form components of the system such as network connections, IO devices, or CPU, etc. It is generally used by system administrators to retrieve a handful of information about the above-mentioned components of the system. It itself perf 3 min read Like