FreeBSD vs GNU Core Utils

Man kennt das ja, man hat eine Datei welche als Loop Block Device agiert und will diese erweitern:

dd oflag=append conv=notrunc if=/dev/zero of=/customers/24/test bs=1MB count=1024

Dummerweise kann die dd Version in FreeBSD kein oflag, weshalb man zu hässlichen Workarounds greifen muss:

 dd if=/dev/zero of=/customers/24/test conv=notrunc seek=$(ls -s /customers/24/test | cut -f1 -d ' ' -) bs=1M
This entry was posted in General, Linux, Short Tips. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.