hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

missing "/dev/" prefix in autodetect_device (linux) #118

Closed kaluzki closed 6 years ago

kaluzki commented 6 years ago
$ flash hypriotos-rpi-v1.8.1-rc1.img 

Is mmcblk0 correct? y
mmcblk0: No such file or directory
Unmounting mmcblk0 ...
The SD card is write protected. Please eject, remove protection and insert again.

Is mmcblk0 correct? ^C

$ uname -a
Linux dell 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
woile commented 6 years ago

Had the same issue, solved specifying --device /dev/mmcblk0. For someone else running into it, you can check your devices doing lsblk

ketoketo commented 6 years ago

Hi StefanScherer This problem occurs when the host PC is Linux. Because of this problem, if you are using flash in other projects, it will not work on Linux as it is. It works on Mac ... I would like to see my pull request.

StefanScherer commented 6 years ago

There's a much simpler PR #124, I haven't the time yet to check on a Linux system.

StefanScherer commented 6 years ago

I have merged #124 which should solve this issue