Bash
xorriso 壓制“謝謝你的耐心。”更新消息
我想取消 xorriso 1.5.2 的“感謝您耐心等待…”更新消息,而是顯示有關百分比的更多資訊。
我目前的命令:
xorriso -as mkisofs -o "$ISOFILE" -V "$ISO_VOLUME_NAME" \ -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \ -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -R -J .
它的輸出:
xorriso 1.5.2 : RockRidge filesystem manipulator, libburnia project. Drive current: -outdev 'stdio:test.iso' Media current: stdio file, overwriteable Media status : is blank Media summary: 0 sessions, 0 data blocks, 0 data, 522g free xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules Added to ISO image: directory '/'='' xorriso : UPDATE : 40 files added in 1 seconds xorriso : UPDATE : 40 files added in 1 seconds xorriso : UPDATE : 13.64% done xorriso : UPDATE : 81.81% done xorriso : UPDATE : Thank you for being patient. Working since 2 seconds. xorriso : UPDATE : Thank you for being patient. Working since 3 seconds. xorriso : UPDATE : Thank you for being patient. Working since 4 seconds. xorriso : UPDATE : Thank you for being patient. Working since 5 seconds. xorriso : UPDATE : Thank you for being patient. Working since 6 seconds. xorriso : UPDATE : Thank you for being patient. Working since 7 seconds. xorriso : UPDATE : Thank you for being patient. Working since 8 seconds. ISO image produced: 339446 sectors Written to medium : 339446 sectors at LBA 0 Writing to 'stdio:test.iso' completed successfully.
使用 xorriso 1.3.6 是這樣的:
xorriso : UPDATE : 41 files added in 1 seconds xorriso : UPDATE : 41 files added in 1 seconds xorriso : UPDATE : 0.05% done xorriso : UPDATE : 4.83% done xorriso : UPDATE : 14.43% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 21.72% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 28.96% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 36.67% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 43.44% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 50.68% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 57.92% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 62.75% done, estimate finish Wed Feb 19 10:46:37 2020 xorriso : UPDATE : 67.57% done, estimate finish Wed Feb 19 10:46:37 2020 xorriso : UPDATE : 74.81% done, estimate finish Wed Feb 19 10:46:37 2020 xorriso : UPDATE : 84.47% done, estimate finish Wed Feb 19 10:46:36 2020 xorriso : UPDATE : 89.29% done xorriso : UPDATE : 96.53% done
我想用我現在使用的新版本獲得相同的輸出。
也許有一個參數?:)
先感謝您!
(如果您有更多問題,請發送郵件至 bug-xorriso@gnu.org。stackexchange 阻止了我的瀏覽器,因為 Google Captcha 需要更新的瀏覽器。)
您要查找的選項是 –stdio_sync 預設設置為“on”。但由於 xorriso-1.3.8 -as mkisofs 仿真將此預設設置更改為“關閉”。“on”會在每 16 MiB 後刷新一次磁碟。您可以選擇較小的同步大小,例如“1m”。如果輸入文件和新出現的 ISO 映像在同一個慢速磁碟上並且 RAM 稀疏,這可能會導致速度變慢。
僅當 -o 文件已經存在並因此呼叫 truncate(2) 時,才會對我產生較長的“謝謝”時間跨度。在這種情況下,最後的 close(2) 僅在 15 秒後返回,顯然是在文件的緩衝區刷新到磁碟之後。因此,在 xorriso 執行之前刪除“$ISOFILE”會縮短最後一次刷新時間。