Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 652

Comment by Kamil Maciorowski on How to write to last 4 bytes of disk via CLI? Like using dd, optional

$
0
0
"script3 fails with bs=4" – Because dd seek=, when given just a number, uses bs as the unit; but your calculation uses blockdev --getsz that counts 512-byte sectors, so it only works with bs=512. Does your blockdev support --getsize64? Does your dd support oflag=seek_bytes or seek=…B that imposes byte count? Can you take it from here?

Viewing all articles
Browse latest Browse all 652

Trending Articles