Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS dd: invalid number: ‘1m’ #174

Open
xunholy opened this issue Apr 16, 2020 · 2 comments
Open

MacOS dd: invalid number: ‘1m’ #174

xunholy opened this issue Apr 16, 2020 · 2 comments

Comments

@xunholy
Copy link
Contributor

xunholy commented Apr 16, 2020

The following causes an issue on a fresh MAC running Mojave v10.14.6

flash/flash

Line 146 in aa8107c

bs_size=1m

I fixed this locally by just making it as follows:

    bs_size=1M

@StefanScherer happy to raise a PR to fix this? Also the latest v2.7.0 did not work on my Mac at all. I'll look into that next, as I downgraded back to v2.6.0.

The following was the issue on v2.7.0 with MacOS

Is /dev/disk2 correct? y
Unmounting /dev/disk2 ...
Unmount of disk2 failed: at least one volume could not be unmounted
Unmount was dissented by PID 24954
Unmount of disk2 failed: at least one volume could not be unmounted
Unmount was dissented by PID 2495
@StefanScherer
Copy link
Member

Thanks @xunholy for the report.
Can you give me a little more detail about your machine?
What does

which dd
ls -l $(which dd)

show you?

For me it's

$ which dd
/bin/dd
$ ls -l $(which dd)
-rwxr-xr-x  1 root  wheel  45120 Mar 17 16:42 /bin/dd

I am on macOS Catalina 10.15.4, but also had a machine with 10.14.x for a long time without a problem.

We had such reports from time to time, eg. #131 but it turned out that dd was not the original one.

@w3irdrobot
Copy link

Have this same issue. Mine points to the version brought in by coreutils from Homebrew.

/usr/local/opt/coreutils/libexec/gnubin/dd -> ../../bin/gdd

I "fixed" it by putting /bin at the beginning of my PATH again.

export PATH="/bin:$PATH"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants