1

I am creating an ext4 partition in my external USB stick from CLI. While I am able to do this successfully with mkfs, I haven't found a way to display a progress bar (or percentage) while formatting.

Is there another command/package (or flag) that provides that kind of information?

Zanna
  • 69,223
  • 56
  • 216
  • 327
gep
  • 23
  • 1
  • 5
  • with python it should be possible! Hah I see bash is capable look here https://stackoverflow.com/questions/238073/how-to-add-a-progress-bar-to-a-shell-script – George Udosen Aug 20 '18 at 11:24
  • thank you for the information.. i have already seen that post but i cannot use python. I am on a very resource limited embedded environment – gep Aug 20 '18 at 11:30
  • There is a cool script there pmonitor did you try that – George Udosen Aug 20 '18 at 11:31
  • i just tried to use it but it didnt work (or at least it didnt with the command i used) – gep Aug 20 '18 at 11:43
  • maybe using directly the PID will work but it is not very useful when the formatting time is short (small partition/usb) – gep Aug 20 '18 at 11:48
  • You need to hold off on that pmonitor tool as it has awk issues and there is a current open pull request for a fix – George Udosen Aug 20 '18 at 11:49
  • Does this answer your question? [Create a progress bar in Bash](https://askubuntu.com/questions/747143/create-a-progress-bar-in-bash) – karel Mar 21 '22 at 09:07

0 Answers0