我想隐藏 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
我希望获得与我现在使用的新版本相同的输出。
也许有一个参数可以实现这一点? :)
先感谢您!
答案1
(如有更多疑问,请发邮件至[电子邮件受保护]。 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”会缩短最终刷新时间。