View Single Post
wicket's Avatar
Posts: 634 | Thanked: 3,266 times | Joined on May 2010 @ Colombia
#74
Originally Posted by Boemien View Post
Wow, i think that i missed something!!!

the first command i typed was

Code:
xzcat jessie.dd.xz /dev/mmcblk0
without the " > ".

now when I type

Code:
xzcat jessie.dd.xz > /dev/mmcblk0
the result is:
Code:
boemien@boemien-VPCEL23FD:~$ xzcat jessie.dd.xz > /dev/mmcblk0
bash: /dev/mmcblk0: Permission non accordée
boemien@boemien-VPCEL23FD:~$ sudo xzcat jessie.dd.xz > /dev/mmcblk0
bash: /dev/mmcblk0: Permission non accordée
boemien@boemien-VPCEL23FD:~$
same result with:

Code:
boemien@boemien-VPCEL23FD:~$ xzcat /home/boemien/Téléchargements/jessie.dd.xz > /dev/mmcblk0
bash: /dev/mmcblk0: Permission non accordée
boemien@boemien-VPCEL23FD:~$


What is the right command?

PS: Permission non accordée means Permission Denied.
sudo doesn't work very well with console redirection. Any of the following should work:

Code:
$ sudo sh -c "xzcat jessie.dd.xz > /dev/mmcblk0"
Code:
$ sudo su
# xzcat jessie.dd.xz > /dev/mmcblk0
Code:
$ xzcat jessie.dd.xz | sudo dd of=/dev/mmcblk0 bs=1M
[EDIT]
Note: If you're running this on a PC /dev/mmcblk0 is not likely to be the name of the SD card device node. You can find out what name has been assigned using dmesg or fdisk.
[/EDIT]
__________________
DebiaN900 - Native Debian on the N900. Deprecated in favour of Maemo Leste.

Maemo Leste for N950 and N9 (currently broken).
Devuan for N950 and N9.

Mobile devices with mainline Linux support - Help needed with documentation.

"Those who do not understand Unix are condemned to reinvent it, poorly." - Henry Spencer

Last edited by wicket; 2014-06-10 at 17:34.
 

The Following 3 Users Say Thank You to wicket For This Useful Post: