Latest web development tutorials

Linux fsck.ext2 command

Linux command Daquan Linux command Daquan

Linux fsck.ext2 command is used to check the file system and try to fix the error.

When ext2 file system error occurred, try to repair instructions available fsck.ext2.

grammar

fsck.ext2 [-acdfFnprsStvVy][-b <分区第一个磁区地址>][-B <区块大小>][-C <反叙述器>][-I <inode缓冲区块数>][-l/L <损坏区块文件>][-P <处理inode大小>][外围设备代号]

Parameters:

  • -a Automatically fix file system, do not ask any questions.
  • -b <partition on a magnetic domain address> Start address specified partition of the first magnetic domain, which is the Super Block.
  • -B <Block size> set the partition size of each block.
  • -c Checks within the specified file system, if there are bad blocks exist.
  • -C <Anti-narrative device> Specifies the anti-narrative device, fsck.ext2 instruction will execute all processes are referred to reverse its narrative, to facilitate troubleshooting or condition monitoring program execution.
  • -d detailed display process execution instruction, to facilitate troubleshooting or analyzing the case of program execution.
  • -f Force checking the file system is complete, even if the file system is no problem checking in a little under generous.
  • Before -F Check the file system, the data is saved to clean equipment block area.
  • -I <Inode buffer blocks> Settings To check the file system, the number of blocks which inode buffer.
  • -l <bad block file> to block files listed, as corrupted blocks and marked to avoid the application uses the block.
  • -L <Bad block file> specify this parameter and the effect is similar to "-l" parameter, but before the reference file marked bad block bad block will be marked as the first original block were damaged all clear that all over again setting, rather than just adding a new bad block marked.
  • -n To check the file system to read-only mode and close interaction, rejects all questions asked.
  • -p effect of this parameter and specify "-a" the same parameters.
  • -P <Handle inode size> Settings fsck.ext2 instruction can handle the size of the inode number.
  • -r This argument ignores not be processed, only responsible for resolving compatibility issues.
  • When -s check the file system, the exchange of each pair of bytes of content.
  • -S Effect of this parameter and specify "-s" parameter is similar, but whether or not the file system is already standard bit order, all the exchange of each pair of bytes of content.
  • -t Display timing information fsck.ext2 instructions.
  • -v displays detailed instruction execution.
  • -V Display version information.
  • -y close interaction model, and agree to all the questions asked.

Linux command Daquan Linux command Daquan