Using the "1m" abbreviation for block size on dd is not a good idea, as various implementations of dd make use of different abbreviations. Instaed, it seems like both dd implementations take bytes as arguments. So translating 1m to bytes seem to be an easy solution.
replaced obs=1m with obs=1048576 (same for bs=) to be compatible with both BSD and Linux versions of dd.
Using the "1m" abbreviation for block size on dd is not a good idea, as various implementations of dd make use of different abbreviations. Instaed, it seems like both dd implementations take bytes as arguments. So translating 1m to bytes seem to be an easy solution.
replaced obs=1m with obs=1048576 (same for bs=) to be compatible with both BSD and Linux versions of dd.