a1ive/grub

Question: dd status=progress?

Closed this issue · 8 comments

Hi there,

I was wondering if there is an equivalent to status=progress for this dd?
Or if it is possible to add it?

Thanks

a1ive commented
export enable_progress_indicator=1
dd --if=(hd0,1) --of=(hd0,2) bs=512

Heya,

dd isn't working for me and I'm really confused as to why.

The commands that I've tried are:
dd --if=(hd0) --seek=2048 --of=(hd0) --skip=88082432 -b 4096 -c 20479
dd --if=(hd0,msdos3) --of=(hd0,msdos1) -b 4096
dd --if=(hd0,3) --of=(hd0,1) -b 4096

All three commands don't return anything and I have entered export enable_progress_indicator=1 before trying any of the commands. The drive I'm trying to dd is NTFS and I've insmod ntfs and insmod part_msdos

Thanks

Edit: I just want to mention that I am trying to overwrite a 40GB partition. The commands return almost instantaneously, which is why I believe nothing is happening. Trying dd with a much smaller sample size (6 bytes) also returns nothing but hexdump shows that it is working.

MBR/legacy, uefi32 or uefi64 boot to grub2?

MBR/Legacy

Ok, 6 bytes works but 40gb does not. What about sizes in between?
E.g .1000 blocks of size 4096?

dd --if=(hd0) --seek=2048 --of=(hd0) --skip=88082432 -b 4096 -c 1000 worked.
image

I did something similar with the 40GB overwrite and it did not work. Should I just do it in slices?

Well, I would start increasing -c until it started to fail.
You may find that when you get to a certain size it will fail.
e.g. -c 65536
then it would point to a number\integer size issue.

a1ive commented

I think it's an overflow bug.

int count = -1;

But I strongly discourage writing large amounts of data with dd under BIOS.