btw, here is the way to append more bytes on the tail,
dd if=/dev/zero of=myfile bs=1 count=no_of_bytes seek=$(stat -c%s myfile)
------------ Banyan He Blog: http://www.rootong.com Email: banyan@rootong.com
On 2012-10-23 2:08 PM, Jobst Schmalenbach wrote:
Hi,
I know I can create a file and mount it like this:
dd if=/dev/zero of=/tmp/somefile bs=1024 count=100000 mke2fs /tmp/somefile mount /tmp/somefile /mnt -o loop
but that has a problem it cannot grow.
Is there a way to do the same (above) but have it not restricted to a size?
Or can I append blocks to the end of the file without distroying it?
Jobst