pibakery icon indicating copy to clipboard operation
pibakery copied to clipboard

Can't Write to SD Card

Open jamestenglish opened this issue 8 years ago • 25 comments

When I try to write my recipe to and SD Card I get:

SD Write Fialed
error: EIO: not able to write image -5
Please try writing to the SD card again.
If this error persists, please reinstall PiBakery.

I have tried re-writing and re-installing to no avail

jamestenglish avatar Sep 23 '16 20:09 jamestenglish

Are you trying to write Raspbian Full or Raspbian Lite? What size of SD card are you using? Are you in Windows or Mac? (or Linux?)

davidferguson avatar Sep 23 '16 20:09 davidferguson

In my case (Win 7, 8GB Sd card) , clicking on the Write button doesn't open anything. So I don't get to choose. I can see the drive in Windows Explorer. formatted as FAT32. Any ideas?

AlanHasty avatar Sep 23 '16 20:09 AlanHasty

@AlanHasty The keyboard shortcut ctrl-shift-i will open the developer inspector. If you then choose Console in the inspector, are there any errors or messages in there?

davidferguson avatar Sep 23 '16 20:09 davidferguson

Hi David, I have 5, Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). Error: ENOENT: no such file or directory, open 'E:\PiBakery\blocks.xml'(…) Error: ENOENT: no such file or directory, open 'J:\PiBakery\blocks.xml'(…)

It's complaining about pibakery.js : 1057 (J: is the device I'm expecting to write.)

On Fri, Sep 23, 2016 at 3:58 PM, David Ferguson [email protected] wrote:

@AlanHasty https://github.com/AlanHasty The keyboard shortcut ctrl-shift-i will open the developer inspector. If you then choose Console in the inspector, are there any errors or messages in there?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidferguson/pibakery/issues/51#issuecomment-249300617, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhs0Nyx2sQvaYFD0_-uNmX6jnivemZ3ks5qtD1agaJpZM4KFWqg .

AlanHasty avatar Sep 23 '16 21:09 AlanHasty

@AlanHasty Those errors are all perfectly normal. Do you have a USB flash drive that you could test to see if that shows up in PiBakery, to see if it's the SD card it doesn't like?

davidferguson avatar Sep 23 '16 21:09 davidferguson

Sure, I'll give it a try.

On Fri, Sep 23, 2016 at 4:08 PM, David Ferguson [email protected] wrote:

@AlanHasty https://github.com/AlanHasty Those errors are all perfectly normal. Do you have a USB flash drive that you could test to see if that shows up in PiBakery, to see if it's the SD card it doesn't like?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidferguson/pibakery/issues/51#issuecomment-249302705, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhs0OyW-72oHmCiEzZ4x4KxWY782rufks5qtD-2gaJpZM4KFWqg .

AlanHasty avatar Sep 23 '16 21:09 AlanHasty

Same result, Log file attached.

On Fri, Sep 23, 2016 at 4:08 PM, Alan Hasty [email protected] wrote:

Sure, I'll give it a try.

On Fri, Sep 23, 2016 at 4:08 PM, David Ferguson [email protected] wrote:

@AlanHasty https://github.com/AlanHasty Those errors are all perfectly normal. Do you have a USB flash drive that you could test to see if that shows up in PiBakery, to see if it's the SD card it doesn't like?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidferguson/pibakery/issues/51#issuecomment-249302705, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhs0OyW-72oHmCiEzZ4x4KxWY782rufks5qtD-2gaJpZM4KFWqg .

AlanHasty avatar Sep 23 '16 21:09 AlanHasty

What size of SD card are you using @AlanHasty @jamestenglish? And are you trying to write Raspbian Full or Raspbian Lite?

davidferguson avatar Sep 26 '16 00:09 davidferguson

I believe I was using an 8G card.

P.s will this work on Linux? Or just Mac/Win?

Sent from my iPad

On Sep 25, 2016, at 7:03 PM, David Ferguson [email protected] wrote:

What size of SD card are you using @AlanHasty @jamestenglish? And are you trying to write Raspbian Full or Raspbian Lite?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

AlanHasty avatar Sep 26 '16 13:09 AlanHasty

@AlanHasty I'm not sure what's causing this error - give me a day or two and I'll have some test code for you to run that should help find the issue.

It will work on Linux (see https://github.com/davidferguson/pibakery/issues/2) and it actually already should run on Linux if you build from source - but I need to do more testing before I package up a .deb and a .rpm for people to use.

davidferguson avatar Sep 26 '16 18:09 davidferguson

Hi I have the same issue on 2 mac's. I have used pibakery in the past on these machines with the same sd card and work excellent. This is what the console prints:

screen shot 2016-10-26 at 09 49 08

dobby avatar Oct 26 '16 07:10 dobby

Hi,

it seems I have a similar problem. I posted it there in the meantime, before I found this issue: https://github.com/davidferguson/pibakery-raspbian/issues/27

Unfortunately, I can't provide any console logs because there are no logs. Will Mac OS X delete those logs after reboot? I'm using Mac OS X Mavericks and the newest version of "Pibakery".

I get exactly the same error message as shown in the first post here. As far as I was able to investigate the problem it seems to be a problem when you do something else in the meantime on the same machine (checking mails for example). But sometimes it don't work properly even if you only have "Pibakery" open. It's strange.

The SD card is in good conditions (nearly new). Today, after reboot, it has worked perfectly with the very same SD card that made problems in the past.

micheld93 avatar Jan 06 '17 08:01 micheld93

I had the same problem. My system is linux, the sd card of 32gb. In the log it gave an error, could not find kpartx. I installed it and it worked without errors.

javi9231 avatar Feb 15 '17 09:02 javi9231

I had the same problem. My system is linux, the sd card of 32gb. In the log it gave an error, could not find kpartx. I installed it and it worked without errors.

kpartx is a requirement for the Linux version of PiBakery - but not for Windows or Mac.

@dobby The error message you're getting is coming from the module that I use for writing images in PiBakery. There have been a few updates to this module since I last released PiBakery, so in the next release I'll be updating it (and a few other modules as well).

I have occasionally received that error when writing SD cards, but whenever it occured for me, it was always because I had accidentally set the write-protect switch on the SD card. Sometimes I even found that the action of inserting it multiple times caused the switch to be set to protect. If you're experiencing this error - that's the first thing you should check!

davidferguson avatar Feb 15 '17 09:02 davidferguson

This was exactly what I thought but unfortunately, microSD don't have any protection switch. So, it may be a problem but not in my case...I use a microSD writer so I don't need the converter microSD-to-SD adapter.

micheld93 avatar Feb 15 '17 17:02 micheld93

kpartx is a requirement for the Linux version of PiBakery

can the front page README be updated to reflect this please. In my case though I can't seem to access the dev log - does this work on linux?

RogueM avatar Apr 12 '17 12:04 RogueM

hi guys–

same problem here too, couldn't use my old PiBakery – as it required update; downloaded and reinstalled ( x3 during the day ... :-) ), bought 2 new micro SDs, spent like 3 hours on it today but nothing changed, same error msg all the time. was here any update on this matter? shall I change my Mac for an older Win? would that help?

appreciate any work-around idea!

SELF ANSWER: I had to use an SD card > 4GB ... all the rest is just too small for latest Raspbian ... but PiBakery is not saying the devise is small just finishes with IO error.

adamkruzics avatar Jun 13 '17 19:06 adamkruzics

I ran into the same issue on mac os x catalina. I was able to work around the issue by opening PiBakery from the command line with sudo:

cd /Applications/PiBakery.app/Contents/MacOS/ sudo ./PiBakery

jherrin6 avatar Nov 11 '19 20:11 jherrin6

I also got this error running MacOS Catalina 10.15.1. And the above solution worked like a charm.

andrewgy8 avatar Dec 19 '19 08:12 andrewgy8

Yes, this is working for me as well.

micheld93 avatar Dec 21 '19 16:12 micheld93

Same issue, also with Catalina, solution works! Thanks!

lukasmwerner avatar Dec 27 '19 21:12 lukasmwerner

I ran into the same issue on mac os x catalina. I was able to work around the issue by opening PiBakery from the command line with sudo:

cd /Applications/PiBakery.app/Contents/MacOS/ sudo ./PiBakery

Works well, thanks!!

rafaelvannucci avatar Jan 30 '20 03:01 rafaelvannucci

I ran into the same issue on mac os x catalina. I was able to work around the issue by opening PiBakery from the command line with sudo:

cd /Applications/PiBakery.app/Contents/MacOS/ sudo ./PiBakery

Yes this works on Catalina. I was also able to use copy/paste when running it as sudo as just launching it normally I wasn't

MatthijsvW avatar Aug 22 '20 05:08 MatthijsvW

I ran into the same issue on mac os x catalina. I was able to work around the issue by opening PiBakery from the command line with sudo:

cd /Applications/PiBakery.app/Contents/MacOS/ sudo ./PiBakery

This works as well on BigSur.! Thanks!

Solilord avatar Jan 18 '21 19:01 Solilord

Worked for me too on Big Sur. Thanks!

ben-nn20 avatar Feb 16 '21 02:02 ben-nn20