Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jstimpfle
on Oct 25, 2022
|
parent
|
context
|
favorite
| on:
The cult of dd (2017)
What if the position is not at 512 but at 512G?
fbn79
on Oct 25, 2022
[–]
Not tested, by I think the performance will be in the same order. Would be nice to do a benchmark test.
jstimpfle
on Oct 25, 2022
|
parent
[–]
No, it is O(n) vs O(1). Why would you read 512G + 512 bytes if you only need to read 512 bytes at offset 512G?
fbn79
on Oct 25, 2022
|
root
|
parent
[–]
I think you can just invert and do tail first
sudo tail -zc +513 /dev/sda | head -c 512 > /tmp/boot.2
jstimpfle
on Oct 26, 2022
|
root
|
parent
[–]
Well now you're seeking to the offset (tail is).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: