mmik
Posts: 2
Joined: Sat Jul 08, 2017 7:16 am

Can't install etcher.

Sat Jul 08, 2017 7:58 pm

I've tried everything. Why is even the most basic thing impossible to do in linux (raspbian)?
I'm trying to install etcher.AppImage because I read it's needed to install vilumio.img
Supposedly you need to make it executeable. I've tried several times, with no indication that it's actually worked. However, since the start I've been able to double click it and it tells me it IS executable and asks me if I'd like to run it. When I say yes, nothing happens. If I select "execute in terminal," the terminal pops up for a breif moment, then nothing again. I've been trying to figure this out for a few hours and that just doesn't seem reasonable for something simple like installing a program. Please send help! (These aren't all my attempts, just the recent ones for example)

Code: Select all

pi@raspberrypi:~ $ chmod a+x etcher.appimage
chmod: cannot access ‘etcher.appimage’: No such file or directory
pi@raspberrypi:~ $ cd Downloads
pi@raspberrypi:~/Downloads $ chmod a+x etcher.appimage
chmod: cannot access ‘etcher.appimage’: No such file or directory
pi@raspberrypi:~/Downloads $ chmod a+x Etcher.AppImage
pi@raspberrypi:~/Downloads $ sudo ./Etcher.AppImage
./Etcher.AppImage: 1: ./Etcher.AppImage: Syntax error: "(" unexpected
pi@raspberrypi:~/Downloads $ sudo /Etcher.AppImage
sudo: /Etcher.AppImage: command not found
pi@raspberrypi:~/Downloads $ $ chmod a+x Etcher*.AppImage
bash: $: command not found
pi@raspberrypi:~/Downloads $ chmod a+x Etcher*.AppImage
pi@raspberrypi:~/Downloads $ ^C
pi@raspberrypi:~/Downloads $ 

mmik
Posts: 2
Joined: Sat Jul 08, 2017 7:16 am

Re: Can't install etcher.

Sun Jul 09, 2017 3:05 am

This is apparently to install a separate OS and that's not actually what I'm looking for. A bit annoying, but at least I can steer myself in the right direction now.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Can't install etcher.

Sun Jul 09, 2017 6:05 am

https://etcher.io/
can download etcher to windows and linux PC
and use with card reader to write images to SD cards ( or USB sticks )
( later to be used in raspberry pi ).

i wonder where you find a version what can run on raspberry pi? pls give us the link.

jahboater
Posts: 4770
Joined: Wed Feb 04, 2015 6:38 pm

Re: Can't install etcher.

Sun Jul 09, 2017 7:10 am

If you are having trouble installing etcher ......

On Linux (including Raspbian) you can just use unzip and dd which come included with the system.
No extra software need be downloaded or installed.

This explains how to use dd:
https://www.raspberrypi.org/documentati ... s/linux.md

Note: a common misconception is that the SD card must be formatted first - its wrong, formatting is never necessary before writing an image.

fruitoftheloom
Posts: 20929
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can't install etcher.

Sun Jul 09, 2017 7:43 am

mmik wrote:I've tried everything. Why is even the most basic thing impossible to do in linux (raspbian)?
I'm trying to install etcher.AppImage because I read it's needed to install vilumio.img
Supposedly you need to make it executeable. I've tried several times, with no indication that it's actually worked. However, since the start I've been able to double click it and it tells me it IS executable and asks me if I'd like to run it. When I say yes, nothing happens. If I select "execute in terminal," the terminal pops up for a breif moment, then nothing again. I've been trying to figure this out for a few hours and that just doesn't seem reasonable for something simple like installing a program. Please send help! (These aren't all my attempts, just the recent ones for example)
Etcher only runs in Linux x86-32 / x86-64 Linux..

...Raspbian is fork of Debian ARMHF Linux.

Not surprising Etcher will not install in Raspbian Jessie, though could try building from source ??
Retired disgracefully.....

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Can't install etcher.

Sun Jul 09, 2017 8:31 am

jahboater wrote:If you are having trouble installing etcher ......

On Linux (including Raspbian) you can just use unzip and dd which come included with the system.
ahm, that might be again miss leading ? unzip and dd ETCHER?

so i try to read some manuals again, using my noobie eyes and it is really confusing:
they talk about steps to install raspberry pi OS but not clearly stated you have to execute it from your PC,
ok when the "windows" is used it is more obvious but "linux" would include RASPBIAN...
https://www.raspberrypi.org/learning/so ... uickstart/
https://www.raspberrypi.org/magpi/pi-sd-etcher/
( one even say you can use a raspberry pi )
http://elinux.org/RPi_Easy_SD_Card_Setu ... y_Pi.21.29

so, no wonder someone try to use a
raspberry pi with RASPBIAN
to burn a new SD card ( for that raspberry pi )
using the commands ( .. etcher ) from that manuals.
fruitoftheloom wrote:...Raspbian is fork of Debian ARMHF Linux.
Not surprising Etcher will not install in Raspbian Jessie, though could try building from source ??
so our Linux specialists could try that and make it part of RASPBIAN...
it might get just as famous as the "SD card copier" tool.
( actually burning new SD card from a downloaded image file could be also a function inthere ( source select menu )?? )
Last edited by KLL on Sun Jul 09, 2017 8:57 am, edited 1 time in total.

fruitoftheloom
Posts: 20929
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can't install etcher.

Sun Jul 09, 2017 8:57 am

KLL wrote: so i try to read some manuals again, using my noobie eyes and it is really confusing:
Not so most people who buy a Raspberry Pi do not already own one and need to get started, so instructions for x86 Linux, OSX, Windows seems sensible. ""You will need another computer with an SD card reader to install the image.""

https://www.raspberrypi.org/documentati ... /README.md
Retired disgracefully.....

Orange
Posts: 42
Joined: Tue Jan 24, 2012 6:41 am

Re: Can't install etcher.

Sat Aug 03, 2019 12:32 pm

I'm also trying to install Etcher for Raspbian as I now use it as my main desktop but there doesn't seem to be a version for this platform. Strange that the Raspberry Pi Foundation recommend it!

There is a version for Debian but not sure how to access it. Apt install doesn't find the etcher package.

fruitoftheloom
Posts: 20929
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can't install etcher.

Sat Aug 03, 2019 12:55 pm

Orange wrote:
Sat Aug 03, 2019 12:32 pm
I'm also trying to install Etcher for Raspbian as I now use it as my main desktop but there doesn't seem to be a version for this platform. Strange that the Raspberry Pi Foundation recommend it!

There is a version for Debian but not sure how to access it. Apt install doesn't find the etcher package.

Raspbian is a fork of Debian ARMHF.

Etcher requires a machine with a x86 CPU, that is the developers choice.


The reason RPF / RPT recommended Etcher is that most people need to create a bootable medium for their Raspberry Pis.


As already stated above you can use DD in Raspbian, which is covered here under the "Copying the image to the SD card" section:, after unzipping the downloaded .zip file:

https://www.raspberrypi.org/documentati ... s/linux.md
Retired disgracefully.....

klricks
Posts: 6609
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Can't install etcher.

Sat Aug 03, 2019 2:41 pm

Orange wrote:
Sat Aug 03, 2019 12:32 pm
I'm also trying to install Etcher for Raspbian as I now use it as my main desktop but there doesn't seem to be a version for this platform. Strange that the Raspberry Pi Foundation recommend it!

There is a version for Debian but not sure how to access it. Apt install doesn't find the etcher package.
For most RPi users there is no point to have Etcher installed on the RPi.

Per this post in Etcher forum, it is possible to compile Etcher from source on the RPi: https://forums.balena.io/t/trying-to-in ... -3-b/22592
Of course you would have to add a USB cardreader to the RPi.
Note that Raspbian has a SD card copy utility which can make a clone of the running OS on the SD card. (Not possible to do that with Etcher or dd).
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

LTolledo
Posts: 2027
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Can't install etcher.

Sat Aug 03, 2019 8:27 pm

I too would like to see a Debian ARMHF fork of Etcher in the near future....(but not demanding for it) ;)

this will slowly but surely kill the remaining task delegated to my winpc.... :mrgreen:
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Orange
Posts: 42
Joined: Tue Jan 24, 2012 6:41 am

Re: Can't install etcher.

Fri Aug 09, 2019 5:46 am

I don't think this is true:
For most RPi users there is no point to have Etcher installed on the RPi.
Because, as we all know, anybody who owns a RPi, also owns a 2nd, 3rd, 4th and more Pi's ;)

Anyway, it doesn't matter as I've written my own script now which people are welcome to use:

Code: Select all

#!/bin/bash
if [ $# -eq 1 -a "$1" != --help ]
then
  destDevice=/dev/sdb
  file="$1"
elif [ $# -eq 2 ]
then
  if [[ ! "$1" =~ /dev/sd.$ ]]
  then
    echo "Expected a USB device name, e.g. /dev/sdb"
    exit 1
  fi
  destDevice=$1
  file="$2"
else
  echo "Usage: $0 [device] <image>"
  echo "NOTE: Default device is /dev/sdb"
  exit
fi

if [ ! -f "$file" ]
then
  echo "File not found: $file"
  exit 1
fi

# Make sure device exists
if [ -z "`blkid | grep $destDevice`" ]
then
  echo "Destination device not found: $destDevice"
  exit 1
fi

# Make sure device is not mounted
if [ -n "`df | grep $destDevice`" ]
then
  echo "Destination device is mounted: $destDevice"
  echo "Please unmount all partitions first"
  df | grep $destDevice
  exit 1
fi

ext=${file##*.}

if [ "$ext" = img ]
then
  echo "Writing image to device.."
  ls -lh $file
  echo "device: $destDevice"
  dd if=$file of=$destDevice bs=65536 status=progress conv=fsync
elif [ "$ext" = zip ]
then
  echo "Writing zipped image to device.."
  ls -lh $file
  echo "device: $destDevice"
  unzip -p $file | dd of=$destDevice bs=65536 status=progress conv=fsync
else
  echo "Unknown extension '$ext' for image $file"
  exit 1
fi

jahboater
Posts: 4770
Joined: Wed Feb 04, 2015 6:38 pm

Re: Can't install etcher.

Fri Aug 09, 2019 1:03 pm

Orange wrote:
Fri Aug 09, 2019 5:46 am
dd if=$file of=$destDevice bs=65536 status=progress conv=fsync
great script!

Could I suggest 131072 for the block size (128k)?
That is what the "cp" command uses.

You can see what block sizes things use with, for example:-

strace cp bigfile /dev/null

You can of course just use cp instead of dd anyway if you prefer its syntax.

Orange
Posts: 42
Joined: Tue Jan 24, 2012 6:41 am

Re: Can't install etcher.

Thu Aug 22, 2019 5:27 am

I ran some tests on both SSD drives and SD Cards and 64K seemed to be the optimal block size for me. People can set it to whatever suits them but personally i didn't see any advantage in going to a bigger block size.

I've improved the script a bit since I first wrote it, it does xz images as well now and shows the uncompressed zip size before writing the image.

Code: Select all

#!/bin/bash
if [ $# -eq 1 -a "$1" != --help ]
then
  destDevice=/dev/sdb
  file="$1"
elif [ $# -eq 2 ]
then
  if [[ ! "$1" =~ /dev/sd.$ ]]
  then
    echo "Expected a USB device name, e.g. /dev/sdb"
    exit 1
  fi
  destDevice=$1
  file="$2"
else
  echo "Usage: $0 [device] <image>"
  echo "NOTE: Default device is /dev/sdb"
  exit
fi

if [ ! -f "$file" ]
then
  echo "File not found: $file"
  exit 1
fi

# Make sure device exists
if [ -z "`blkid | grep $destDevice`" ]
then
  echo "Destination device not found: $destDevice"
  exit 1
fi

# Make sure device is not mounted
if [ -n "`df | grep $destDevice`" ]
then
  echo "Destination device is mounted: $destDevice"
  echo "Please unmount all partitions first"
  df | grep $destDevice
  exit 1
fi

ext=${file##*.}

if [ "$ext" = img ]
then
  echo "Writing image to device.."
  ls -lh $file
  echo "device: $destDevice"
  dd if=$file of=$destDevice bs=65536 status=progress conv=fsync
elif [ "$ext" = zip ]
then
  echo "Writing zipped image to device.."
  echo Uncompressed size: $(unzip -l $file|tail -1|cut -f 1 -d ' ' | awk '{printf "%.3f GiB\n", $1.0/(1024*1024*1024)}')
  echo "device: $destDevice"
  unzip -p $file | dd of=$destDevice bs=65536 status=progress conv=fsync
elif [ "$ext" = xz ]
then
  echo "Writing compressed xz image to device.."
  xz -l $file
  echo "device: $destDevice"
  unxz -c $file | dd of=$destDevice bs=65536 status=progress conv=fsync
else
  echo "Unknown extension '$ext' for image $file"
  exit 1
fi

Return to “Beginners”