Co robi E2FSCK użycie. Konsola for ext2 (Linux Second Extended) and ext3 (Third Extended, a.

Czy przydatne?

Polecenie e2fsck

Wykonanie, użycie: System administration command. Checks and repairs a disk, as does fsck, but specifically designed for ext2 (Linux Second Extended) and ext3 (Third Extended, a journaling version of ext2) filesystems. fsck actually uses this command when checking ext2 and ext3 filesystems. Most often used after a sudden shutdown, such as from a power outage, or when damage to the disk is suspected

Opcje wykonania e2fsck w konsoli

-b superblock

Use superblock instead of the default superblock.

-c

Find bad blocks using the badblocks command. Specify this option twice to perform the scan with a nondestructive read-write test.

-d

Debugging mode.

-f

Force checking, even if kernel has already marked the filesystem as valid. e2fsck will normally exit without checking if the system appears to be clean.

-j file

Use the specified external journal file.

-k

Preserve all previously marked bad blocks when using the -c option.

-l file

Consult file for a list of bad blocks, in addition to checking for others.

-n

Ensure that no changes are made to the filesystem. When queried, answer "no."

-p

"Preen." Repair all bad blocks noninteractively.

-s

Byte-swap the filesystem if necessary to standard (little-endian) byte-order.

-t

Display timing statistics.

-v

Verbose.

-y

When queried, answer "yes."

-B size

Expect to find the superblock at size; if it's not there, exit.

-C filedescriptor

Write completion information to the specified filedescriptor. If 0, print a completion bar.

-D

Optimize directories by reindexing, sorting, and compressing them where possible.

-F

Flush buffer caches before checking.

-L file

Consult file for list of bad blocks instead of checking filesystem for them.

-S

Byte-swap the filesystem.

Przykłady e2fsck działanie w Słownik polecenie E

Przykład E2FSCK użycie :
Jak użyć An interactive command-based editor. For more information, see Chapter 9 co znaczy.
Przykład E2FSCK użycie :
Jak użyć input string to standard output. This is the /bin/echo command. echo also exists as a command built into bash . The following character sequences have special meanings: a Alert (bell).  Backspace. c krzyżówka.
Przykład E2FSCK użycie :
Jak użyć administration command. Edit filesystem quotas using a text editor. When edits are complete, edquota writes the new information to the binary quota files. Uses the editor specified in the EDITOR co to jest.
Przykład E2FSCK użycie :
Jak użyć environment variables in a shell string or script. When used with no options, copies stdin to stdout, replacing any environment variable string, such as $VARIABLE or ${VARIABLE }, with słownik.
Przykład E2FSCK użycie :
Jak użyć environment or, if an environment variable is specified, set it to a new value and display the modified environment. If command is specified, execute it under the modified environment czym jest.