hypriot / flash

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

Customizing after flashing fails #83

Closed MathiasRenner closed 6 years ago

MathiasRenner commented 7 years ago

When I run

./flash --hostname somenode hypriotos-rpi-v1.0.1.img

... the flashing itself is successful, but the customizing afterwards is not. I get the error "Permission denied"

Does anyone else run into this issue?

Details

The terminal output:

Flashing hypriotos-rpi-v1.0.1.img to /dev/sdb ...
1000MiB 0:00:00 [1,71GiB/s] [================================>] 100%            
24+7681 records in
24+7681 records out
1048576000 bytes (1,0 GB, 1000 MiB) copied, 42,5457 s, 24,6 MB/s
Waiting for device...
/dev/sdb: Permission denied

Environment:

StefanScherer commented 7 years ago

Probably fixed with #88 ? Otherwise try to run the script with set -x to see which command does not have enough privileges.

StefanScherer commented 6 years ago

I cannot reproduce it with latest version of Linux/flash, maybe fixed with #88 and/or #106.