Linux e2fsck-Befehl
Linux Command大全
Linux e2Der fsck-Befehl wird verwendet, um Dateisysteme unter Linux ext2 Ob die Partition des Dateisystems ordnungsgemäß funktioniert.
Syntax
e2fsck [-pacnydfvFV] [-b superblock] [-B blocksize] [-l|-L bad_blocks_file] [-C fd] device
Parameterbeschreibung:
- device : Partition der Festplatte, die überprüft werden soll, z.B.:/dev/sda1
- -a : Partition überprüfen und bei Bedarf automatisch reparieren, äquivalent -Funktion von p
- -b : Position des Superblocks speichern
- -B : Größe des Blocks units festlegen
- -c : Check if the partition has bad tracks
- -C file : Save the check results to file for review
- -d : Print e2Debug results of fsck
- -f : Force check
- -F : Clear the device's buffer cache before starting the check to avoid errors
- -l bad_blocks_file : Add the bad track block information to bad_blocks_file
- -L bad_blocks_file : Set the bad track block information to bad_blocks_file, if the file does not exist, it will be automatically generated
- -n : Open the file system in [Read-only] mode
- -p : Check the partition, and automatically repair if there are problems
- -v : Detailed display mode
- -V : Display the current e2Version of fsck
- -y : Pre-set all the questions to be answered[Yes] during the check
Online Examples
Check /dev/hda5 Whether it is normal, if there are exceptions, it will be automatically repaired, and if there are questions, all answer[Yes]:
e2fsck -a -y /dev/hda5
Attention :
Mostly use e2Use fsck to check the hard disk partition status, it is usually a special case, so it is best to unmount the partition first, and then execute e2Use fsck to perform the check, if it is necessary to check / If so, please enter singal user mode and then execute.
Linux Command大全