D
D
dozagufazu2017-02-14 20:54:07
linux
dozagufazu, 2017-02-14 20:54:07

Why is Permission denied when transferring an image to a flash drive using dd?

There is a backup flash drive image test.img.
I want to transfer it to another flash drive (which is currently bootable with Lubuntu, if that matters).
I execute the command

sudo dd if=/home/юзер/test.img | pv | dd of=/dev/sdb

Throws an error:
dd: failed to open '/dev/sdb': Permission denied

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-02-14
@dozagufazu

dd if=/home/юзер/test.img | pv | sudo dd of=/dev/sdb
You start reading from sudo, but you need to write.
That's better
pv /home/юзер/test.img | sudo dd of=/dev/sdb

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question