[Solved] Real-time Linux for RPi2 Error: dd: /dev/rdisk4: Invalid argument

$ sudo ./install ~/Downloads/emlid-raspberrypi2-raspbian-rt-20150401.img
Password:

. . __ . .
______ \ | | | ____ / | | | | | ___________
| ___/ | | |/ \ / /\ _ \ | | | | / __ _ __
| | | | | | | _
\ | | / __ | |
| |
\ /| | /
|
| |
| ||| / > || (__ ///___ >__|
/ / / /


Filesystem Size Used Avail Capacity iused ifree %iused Mounted on

  1. /dev/disk1 233Gi 141Gi 92Gi 61% 36951889 24029357 61% /
  2. devfs 355Ki 355Ki 0Bi 100% 1227 0 100% /dev
  3. map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
  4. map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
  5. /dev/disk3s1 233Gi 112Gi 121Gi 49% 0 0 100% /Volumes/My Passport
  6. /dev/disk4s2 15Gi 36Mi 14Gi 1% 9265 3796291 0% /Volumes/Untitled

Select the disk to use by enetering the disk number.
*** MAKE SURE YOU SELECT THE CORRECT DISK ***
*** Refer to the Readme if uncertain ***

Use disk [ 1, 2, 3, 4, 5, 6 ] #6
Unmounting Disk
Volume Untitled on disk4s2 unmounted
Writing image
Ctrl+T to see progress…
dd: /dev/rdisk4: Invalid argument
813+1 records in
813+0 records out
852492288 bytes transferred in 46.551256 secs (18312981 bytes/sec)

Does anyone know how to fix this issue? Image does not appear to working.

You don’t need to “install” the image, but to write an image to the sd card inserted in your computer using dd command (which is a raw write command) like it is described in the docs - http://docs.emlid.com/Navio-APM/configuring-raspberry-pi/

1 Like