Pregunta:
Estoy ejecutando e2fsk en un disco ext3 muy grande (1TB +) con
e2fsck -v /dev/sda1
de RIPLinux arrancado con PXE.
yo obtengo
e2fsck 1.41.6 (30-May-2009)
/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
y luego una pausa muy larga …
¿Cómo me hago una idea de la actividad?
Idealmente, un recuento de elementos completados frente al total y algún tipo de ETA.
Respuesta:
La bandera -C
mostrará una barra de progreso. Diferencias de rendimiento según cómo se llame fsck.
Y muy bueno, si e2fsck
ya se está ejecutando, puede enviar una señal USR1
para que comience a mostrar una barra de progreso. USR2
para detener. Ejemplo:
killall -USR1 e2fsck
Desde FSCK (8):
-C Display completion/progress bars for those filesys-
tems checkers (currently only for ext2) which sup-
port them. Fsck will manage the filesystem check-
ers so that only one of them will display a
progress bar at a time.
Desde E2FSCK (8):
-C fd This option causes e2fsck to write completion
information to the specified file descriptor so
that the progress of the filesystem check can be
monitored. This option is typically used by pro-
grams which are running e2fsck. If the file
descriptor specified is 0, e2fsck will print a com-
pletion bar as it goes about its business. This
requires that e2fsck is running on a video console
or terminal.