The officially official Devuan Forum!

You are not logged in.

#1 2025-06-09 19:31:14

unixuser
Member
Registered: 2024-09-13
Posts: 26  

how to specify an hexadecimal offset to dd ?

Hi there,

does someone know how to specify an offset to dd ? I am trying to extract some bits from a firmware (some .data)

Thanks and hf!

Last edited by unixuser (2025-06-09 19:48:07)

Offline

#2 2025-06-09 20:00:20

rolfie
Member
Registered: 2017-11-25
Posts: 1,263  

Re: how to specify an hexadecimal offset to dd ?

man dd

Online

#3 2025-06-09 23:32:36

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,423  

Re: how to specify an hexadecimal offset to dd ?

Use the shell phrase $((0x100)) to specify offset value 256; and similarly $((0x35feed63)) for offset value 905899363.

The parameters would be skip=?? for the infile and seek=?? for the outfile. The value is in block size counts.

Online

#4 2025-07-04 13:01:53

unixuser
Member
Registered: 2024-09-13
Posts: 26  

Re: how to specify an hexadecimal offset to dd ?

@rolfie, I think you should have at least read it once before saying this, then, you'd know that it doesn't mention hexadecimal notation.
To have all options : check out the source code.

@ralph.ronnquiest, thanks, very appreciated, I still working on it. dd is powerful but a bit esoteric to use.

Last edited by unixuser (2025-07-04 22:16:48)

Offline

Board footer