Export to GitHub

grub4dos-chenall - issue #129

Enhancement: add dd if=\dev\zero equivalent


Posted on May 1, 2013 by Happy Kangaroo

What steps will reproduce the problem?

Fill whole file with 0 (or preferably specified byte value or two-byte value)

What is the expected output? What do you see instead? if=\dev\zero not supported

What version of the product are you using? On what operating system?

Please provide any additional information below. Currently I have to copy a file full of spaces to the output file. This means I have to ensure that the input file is same length or longer than the output file. It also takes longer to open both files.

dd if=(0)/ of=()/fred.iso or dd if=(0)/0x0d0a of=()/fred.iso dd if=(0)/0x00 of=()/fred.iso dd if=(0)/0x20 of=()/fred.iso

would be very useful? Don't mind what syntax... Thanks Steve

Comment #1

Posted on May 21, 2013 by Happy Kangaroo

Hi Chenall Do you think this would be possible? Just a fill of 00h would be fine and very useful. Thanks Steve

Comment #2

Posted on May 23, 2013 by Happy Hippo

I can't ,maybe tinybit or others can.

Comment #3

Posted on Oct 16, 2013 by Happy Kangaroo

Alternate way using memory

fill (rd) with 0's , 0x82d0 is rd-base mem address, Fn24 is memset - fill memory

map (md)0x300+200 (rd) > nul ;; read 0x82d0 > nul ;; call Fn.24 %@retval% 0x00 102400 > nul
dd if=(rd)+1 of=()/ABC.xml

Comment #4

Posted on Oct 17, 2013 by Happy Hippo

Thanks. using memset fill a block memory will zero. That is a good idea.

Status: Done

Labels:
Type-Defect Priority-Medium