"An error occuered while writing the image!"

Hi all,

I need some help from you all. I really want to install OSMC on my raspberry pi 3, but when i use the installer, there is this error everytime. I checked the logfiles and it says

"Error opening device"

I use ubuntu, and I don’t have any other computer.

Can someone help me ?

Thank in advance :slight_smile:

Which version of Ubuntu?
Check write-protect switch
Check /home/yourname/osmc-installer.log (don’t remember if that’s the exact name)

Sam

> mar. mai 24 17:12:26 2016 OSMC Installer running on Linux
> mar. mai 24 17:12:27 2016 Detected locale as fr_FR
> mar. mai 24 17:12:27 2016 Attempting to load translation for locale fr_FR
> mar. mai 24 17:12:27 2016 Could not load translation!
> mar. mai 24 17:12:27 2016 Resolving a mirror
> mar. mai 24 17:12:31 2016 Resolved mirror to http://mirrorservice.org/sites/edge.samnazarko.co.uk/osmc/download/
> mar. mai 24 17:12:31 2016 Enumerating supported devices
> mar. mai 24 17:12:31 2016 Added the following devices
> mar. mai 24 17:12:31 2016 Vero 2
> mar. mai 24 17:12:31 2016 Vero
> mar. mai 24 17:12:31 2016 Raspberry Pi 1 / Zero
> mar. mai 24 17:12:31 2016 Raspberry Pi 2 / 3
> mar. mai 24 17:12:31 2016 Apple TV
> mar. mai 24 17:12:31 2016 Checking for updates
> mar. mai 24 17:12:31 2016 Checking for updates by downloading http://mirrorservice.org/sites/edge.samnazarko.co.uk/osmc/download//installers/latest_linux
> mar. mai 24 17:12:31 2016 Acquired mirror file
> mar. mai 24 17:12:31 2016 No new update is available
> mar. mai 24 17:13:30 2016 The user has selected English as their language
> mar. mai 24 17:13:30 2016 The user has selected Raspberry Pi 2 / 3 as their device
> mar. mai 24 17:13:30 2016 Attempting to download device versions file http://mirrorservice.org/sites/edge.samnazarko.co.uk/osmc/download/installers/versions_RBP2
> mar. mai 24 17:13:31 2016 Found a build called  2016.05-1
> mar. mai 24 17:13:31 2016 Found a build called  2016.04-1
> mar. mai 24 17:13:31 2016 Found a build called  2016.02-3
> mar. mai 24 17:13:31 2016 Found a build called  2016.01-1
> mar. mai 24 17:13:31 2016 Found a build called  2015.12-4
> mar. mai 24 17:13:31 2016 Found a build called  2015.11-1
> mar. mai 24 17:13:31 2016 Found a build called  2015.10-1
> mar. mai 24 17:13:31 2016 Found a build called  2015.08-1
> mar. mai 24 17:13:31 2016 Found a build called  2015.07-1
> mar. mai 24 17:13:31 2016 Found a build called  2015.06-1
> mar. mai 24 17:14:02 2016 The user has selected an online image for Raspberry Pi 2 / 3 with build URL : http://mirrorservice.org/sites/edge.samnazarko.co.uk/osmc/download/installers/diskimages/OSMC_TGT_rbp2_20160502.img.gz
> mar. mai 24 17:14:02 2016 Disabling internal install for device Raspberry Pi 2 / 3 as it does not support it
> mar. mai 24 17:14:04 2016 SD installation selected
> mar. mai 24 17:15:30 2016 Wireless network configured with SSID Bbox-4E55D key value f6E1882D16
> mar. mai 24 17:15:30 2016 Running partprobe to inform operating system about partition table changes
> mar. mai 24 17:15:31 2016 Enumerating imageable devices for Linux
> mar. mai 24 17:15:31 2016 New disk device entry created with entry point /dev/sda, 640.1GB free space and label 
> mar. mai 24 17:15:31 2016 New disk device entry created with entry point /dev/sdb, 16.1GB free space and label 
> mar. mai 24 17:15:35 2016 Device selected: 26	/dev/sdb	16.1GB	
> mar. mai 24 17:15:38 2016 EULA has been accepted
> mar. mai 24 17:15:38 2016 Downloading http://mirrorservice.org/sites/edge.samnazarko.co.uk/osmc/download/installers/diskimages/OSMC_TGT_rbp2_20160502.img.gz
> mar. mai 24 17:17:41 2016 Download successful
> mar. mai 24 17:17:41 2016 Extracting /home/t/OSMC_TGT_rbp2_20160502.img.gz
> mar. mai 24 17:17:50 2016 Finished extraction. Going to write image
> mar. mai 24 17:17:50 2016 Requesting confirmation from user
> mar. mai 24 17:18:30 2016 User confirmed
> mar. mai 24 17:18:30 2016 Unmounting /dev/sdb
> mar. mai 24 17:18:30 2016 Running partprobe to inform operating system about partition table changes
> mar. mai 24 17:18:31 2016 Writing /home/t/OSMC_TGT_rbp2_20160502.img to /dev/sdb
> mar. mai 24 17:18:31 2016 Error opening device

Here is the complete log file.
I’m on elementary OS (compiled from ubuntu 14.04) and I already checked the switcher.

Thank for this quick answer! :wink:

Maybe automounter has mounted it and we can’t get a handle on the device? Sometimes the File Manager will open and lock the device.

Try sudo umount /dev/sdb1 before running the installer.

Sam

What sdcard? > 32gb? Does your card reader support sdxc?

Nope, it’s only a 8gb.

I don’t know, is there any way i can check it ?

I’m at work now, i’ll be able to do this in a couple hours only.

If its only 8gb, it’s not sdxc and probably has no compatibility issues with your reader.