davidferguson / pibakery

The blocks based, easy to use setup tool for Raspberry Pi
http://www.PiBakery.org
GNU General Public License v3.0
1.49k stars 147 forks source link

Can't Write to SD Card #51

Open jamestenglish opened 8 years ago

jamestenglish commented 8 years ago

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

davidferguson commented 8 years ago

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?)

AlanHasty commented 8 years ago

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?

davidferguson commented 8 years ago

@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?

AlanHasty commented 8 years ago

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 notifications@github.com 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 .

davidferguson commented 8 years ago

@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?

AlanHasty commented 8 years ago

Sure, I'll give it a try.

On Fri, Sep 23, 2016 at 4:08 PM, David Ferguson notifications@github.com 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 commented 8 years ago

Same result, Log file attached.

On Fri, Sep 23, 2016 at 4:08 PM, Alan Hasty alan.hasty@gmail.com wrote:

Sure, I'll give it a try.

On Fri, Sep 23, 2016 at 4:08 PM, David Ferguson notifications@github.com 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 .

davidferguson commented 8 years ago

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

AlanHasty commented 8 years ago

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 notifications@github.com 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.

davidferguson commented 8 years ago

@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.

dobby commented 7 years ago

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
micheld93 commented 7 years ago

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.

javi9231 commented 7 years ago

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.

davidferguson commented 7 years ago

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!

micheld93 commented 7 years ago

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.

RogueM commented 7 years ago

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?

adamkruzics commented 7 years ago

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.

jherrin6 commented 4 years ago

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

andrewgy8 commented 4 years ago

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

micheld93 commented 4 years ago

Yes, this is working for me as well.

lukasmwerner commented 4 years ago

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

rafaelvannucci commented 4 years ago

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!!

MatthijsvW commented 4 years ago

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

Solilord commented 3 years ago

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!

ben-nn20 commented 3 years ago

Worked for me too on Big Sur. Thanks!