Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 如何让e2fsck显示进度信息?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我在一个非常大的(1TB)ext3磁盘上运行e2fsk e2fsck -v /dev/sda1 来自RIPLinux使用PXE启动. 我明白了 e2fsck 1.41.6 (30-May-2009) /dev/sda1 contains a file system with errors, check forced. Pass 1: checking inodes, blocks, and siz
我在一个非常大的(1TB)ext3磁盘上运行e2fsk
e2fsck -v /dev/sda1

来自RIPLinux使用PXE启动.

我明白了

e2fsck 1.41.6 (30-May-2009)
/dev/sda1 contains a file system with errors,check forced.
Pass 1: checking inodes,blocks,and sizes

然后很长时间的停顿……

我如何了解活动?

理想情况下,已完成项目的数量与总数和某种ETA相比.

@H_403_16@

解决方法

-C标志将显示进度条.性能差异取决于fsck的调用方式.

非常酷,如果e2fsck已经运行,你可以发送一个USR1信号,开始显示进度条. USR2停止.例:

killall -USR1 e2fsck

来自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.

来自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.
@H_403_16@ @H_403_16@

大佬总结

以上是大佬教程为你收集整理的linux – 如何让e2fsck显示进度信息?全部内容,希望文章能够帮你解决linux – 如何让e2fsck显示进度信息?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。