4 ms·What if the position is not at 512 but at 512G?by jstimpfle 4y agoWhat if the position is not at 512 but at 512G?fbn79 4y agoNot tested, by I think the performance will be in the same order. Would be nice to do a benchmark test.jstimpfle 4y agoNo, 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 4y agoI think you can just invert and do tail first sudo tail -zc +513 /dev/sda | head -c 512 > /tmp/boot.2jstimpfle 4y agoWell now you're seeking to the offset (tail is).