Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Issues with 16G PNY CLass 10 SDHC card #118

Closed
rdoerr01 opened this issue Oct 31, 2013 · 46 comments
Closed

Issues with 16G PNY CLass 10 SDHC card #118

rdoerr01 opened this issue Oct 31, 2013 · 46 comments

Comments

@rdoerr01
Copy link

When trying to install NOOBS v1.3 with the Local and Network file, it boots up fine and sits for a very long time at the step "Formatting settings partition". If you wait about 3 minutes it will finally get past that and have some other error message and then it comes up but doesn't show any OS's in the Dialog Box.

@Rob-Bishop
Copy link
Contributor

Is it repeatable if you reformat the card and try again? How are you formatting the card?

@lurch
Copy link
Collaborator

lurch commented Oct 31, 2013

If you're installing RaspBMC using NOOBS v1.3, that explains the "big pause" during formatting on a large SD card. It's a bug #108 that's been fixed in the upcoming NOOBS v1.3.1

But that obviously doesn't explain the "No OSes in Dialog Box" part.

@rdoerr01
Copy link
Author

Yes, I can repeat it every time using the Qty-4 16G cards I just purchased, which are PNY Class 10 cards.  And for formatting I used the recommended SDFormatter app on my Mac.

Thanks

Ray Doerr
N519RV

On Oct 31, 2013, at 3:43 AM, Rob Bishop [email protected] wrote:

Is it repeatable if you reformat the card and try again? How are you formatting the card?


Reply to this email directly or view it on GitHub.

@maxnet
Copy link
Collaborator

maxnet commented Oct 31, 2013

What does the "some other error message" say?

@rdoerr01
Copy link
Author

After the long pause (about 90 seconds) on the Message "Formatting settings partition", another message comes up and disappears before I can get a chance to see it, then it show the main window with no OS's listed in the box.

Thanks

Ray Doerr
N519RV

On Oct 31, 2013, at 8:07 AM, maxnet [email protected] wrote:

What does the "some other error message" say?


Reply to this email directly or view it on GitHub.

@maxnet
Copy link
Collaborator

maxnet commented Oct 31, 2013

When that happens, try:

  • press ctrl+alt+f2
  • login as root / raspberry
  • type: "cat /tmp/debug" and see if you can spot the error there.

Also if you type "dmesg" and look at the last lines, does it show SD card errors? (lines with mmcblk0 in it)

@rdoerr01
Copy link
Author

The first sign or any error is:

Warning: partition 1 does not end at a cylinder boundary
Warning: no primary partition is marked bootable (active)

Then the mount of /dev/mmcblk0p1 on /mnt failed

Is there anyway to collect this complete file from /tmp/debug on this failed flash card after the fact or during.  I noticed that ifconfig -a didn't show any IP, but I do have a cabled 10/100 connection.

Thanks

Ray Doerr
N519RV

On Oct 31, 2013, at 8:31 AM, maxnet [email protected] wrote:

When that happens, try:

press ctrl+alt+f2
login as root / raspberry
type: "cat /tmp/debug" and see if you can spot the error there.
Also if you type "dmesg" and look at the last lines, does it show SD card errors? (lines with mmcblk0 in it)


Reply to this email directly or view it on GitHub.

@maxnet
Copy link
Collaborator

maxnet commented Oct 31, 2013

Warnings are normal.

Then the mount of /dev/mmcblk0p1 on /mnt failed

Does it work if you do "mount /dev/mmcblk0p1 /mnt" on the shell, or does that also give an error?

Does "dmesg" indicate SD card errors or removal (e.g. mmc0: card aaa removed)?

I noticed that ifconfig -a didn't show any IP, but I do have a cabled 10/100 connection.

If SD card disappears completely the NOOBS main screen may indeed stay blank and the Internet connection will not be activated.
(NOOBS main screen waits for the SD card to appear before it continues doing anything else. This can take a while on boot -NOOBS starts faster then Linux initializes the SD card-, so it does not consider it an error if it is not ready instantly.).

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 2, 2013

Why was this closed, it's still an unresolved issue.

Thanks

Ray Doerr
N519RV

On Nov 2, 2013, at 4:52 AM, Rob Bishop [email protected] wrote:

Closed #118.


Reply to this email directly or view it on GitHub.

@Rob-Bishop
Copy link
Contributor

Were you able to respond to @maxnet 's questions? We can't help diagnose your issue without further feedback.

@Rob-Bishop Rob-Bishop reopened this Nov 2, 2013
@rdoerr01
Copy link
Author

rdoerr01 commented Nov 2, 2013

It was formatted with the proper recommended tools.  I've ordered a TTL level USB cable so I could connect all the logs while it boots the NOOBS and hopefully that is let us know what is going on.

Thanks

Ray Doerr
N519RV

On Nov 2, 2013, at 8:50 AM, Rob Bishop [email protected] wrote:

Were you able to respond to @maxnet 's questions? The error you saw is caused by the SD card not being formatted correctly rather than an issue with NOOBS.


Reply to this email directly or view it on GitHub.

@maxnet
Copy link
Collaborator

maxnet commented Nov 2, 2013

Photo with a digital camera of the screen (of "dmesg") might work as well, instead of capturing a full log through serial console.

Suspect the Pi/Linux doesn't get along well with your particular model SD card, or that it gets disconnected for some reason (e.g. bad pins) though.
If that turns out to be the case, it may not be something that can be solved in NOOBS' code.

I do think the initial formatting was ok, or it would have errored out on resizing the partition earlier during installation.

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 2, 2013

IMG_0659

IMG_0660

IMG_0661

IMG_0662

IMG_0663

IMG_0664

IMG_0665

IMG_0666

@maxnet
Copy link
Collaborator

maxnet commented Nov 2, 2013

Try something like http://postimage.org/
Copy and pasting images into github directly will not work.

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 2, 2013

See if you can see the pictures here.

https://picasaweb.google.com/rdoerr10/NOOBS_1_3

Thanks

Ray Doerr
N519RV

On Nov 2, 2013, at 5:50 PM, maxnet [email protected] wrote:

Try something like http://postimage.org/


Reply to this email directly or view it on GitHub.

@maxnet
Copy link
Collaborator

maxnet commented Nov 2, 2013

Thanks for the photos.

As it shows in photo 7 writing to the SD card starts giving errors (lost page write due to I/O error), and eventually after 2 minutes the connection with the card is lost completely "[ 120.771745 ] mmc0: card 0007 removed"

There is a possibility that there is something wrong with the card itself.
You might want to test it on your Mac with a program like: http://oss.digirati.com.br/f3/
It will fill your SD card completely with data, so will take quite some time.

But there is also a possibility that the SD card model for some reason is not completely compatible with the Pi/Linux.
I'm afraid this is not something that can be fixed in NOOBS' code.
(other than that we can look into better error reporting).

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 3, 2013

I bought 4 of these 16G PHY class 10 cards and the same happens to all of the using the Raspberry Pi. They all work fine in my Mac Laptop.

Sent from my iPhone5

On Nov 2, 2013, at 5:50 PM, maxnet [email protected] wrote:

Try something like http://postimage.org/


Reply to this email directly or view it on GitHub.

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 3, 2013

I did as you suggested and ran the f3write and f3read on this 16G PNY CLass 10 SDHC card and it passed with no errors. Prior to running this test I used the Mac Disk Utility and erase the card and create one Fat32 partition.

I think the issues NOOBS is having with these cards is related to the resizing of the partition and the creation of the extra partitions for Linux. One errors was pointing to the number of Cluster, Heads and Sectors.

Thanks

Ray

rdoerr-mac:f3-2.2 rdoerr$ ./f3write /Volumes/UNTITLED
Free space: 14.90 GB
Creating file 1.fff ... OK!
Creating file 2.fff ... OK!
Creating file 3.fff ... OK!
Creating file 4.fff ... OK!
Creating file 5.fff ... OK!
Creating file 6.fff ... OK!
Creating file 7.fff ... OK!
Creating file 8.fff ... OK!
Creating file 9.fff ... OK!
Creating file 10.fff ... OK!
Creating file 11.fff ... OK!
Creating file 12.fff ... OK!
Creating file 13.fff ... OK!
Creating file 14.fff ... OK!
Creating file 15.fff ... OK!
Free space: 0.00 Byte
Average writing speed: 34.01 MB/s
rdoerr-mac:f3-2.2 rdoerr$ ./f3read /Volumes/UNTITLED
SECTORS ok/corrupted/changed/overwritten
Validating file 1.fff ... 2097152/ 0/ 0/ 0
Validating file 2.fff ... 2097152/ 0/ 0/ 0
Validating file 3.fff ... 2097152/ 0/ 0/ 0
Validating file 4.fff ... 2097152/ 0/ 0/ 0
Validating file 5.fff ... 2097152/ 0/ 0/ 0
Validating file 6.fff ... 2097152/ 0/ 0/ 0
Validating file 7.fff ... 2097152/ 0/ 0/ 0
Validating file 8.fff ... 2097152/ 0/ 0/ 0
Validating file 9.fff ... 2097152/ 0/ 0/ 0
Validating file 10.fff ... 2097152/ 0/ 0/ 0
Validating file 11.fff ... 2097152/ 0/ 0/ 0
Validating file 12.fff ... 2097152/ 0/ 0/ 0
Validating file 13.fff ... 2097152/ 0/ 0/ 0
Validating file 14.fff ... 2097152/ 0/ 0/ 0
Validating file 15.fff ... 1896384/ 0/ 0/ 0

Data OK: 14.90 GB (31256512 sectors)
Data LOST: 0.00 Byte (0 sectors)
Corrupted: 0.00 Byte (0 sectors)
Slightly changed: 0.00 Byte (0 sectors)
Overwritten: 0.00 Byte (0 sectors)
Average reading speed: 33.84 MB/s
rdoerr-mac:f3-2.2 rdoerr$

@ghollingworth
Copy link

There is no problem with number of clusters heads etc... That's an old numbering scheme that is not used anymore.

The problem could be an issue with that particular SD card model (we've seen problems like this in the past)...

raspberrypi/linux#413

I'm currently working on SD card corruption as you can see from the above. We already know of problems reading from Sandisk Ultra cards and have seen one specific SD card being unable to write correctly due to a bug in the hardware.

It might be worth trying out my kernel to see if the problem is the same...

Will post a link to my kernel on Monday

Gordon

From: rdoerr01 <[email protected]mailto:[email protected]>
Reply-To: raspberrypi/noobs <[email protected]mailto:[email protected]>
Date: Sunday, 3 November 2013 02:02
To: raspberrypi/noobs <[email protected]mailto:[email protected]>
Subject: Re: [noobs] NOOBS v1.3 fails with 16G SDHC, sits at "Formatting settings partition" (#118)

I did as you suggested and ran the f3write and f3read on this 16G PNY CLass 10 SDHC card and it passed with no errors. Prior to running this test I used the Mac Disk Utility and erase the card and create one Fat32 partition.

I think the issues NOOBS is having with these cards is related to the resizing of the partition and the creation of the extra partitions for Linux. One errors was pointing to the number of Cluster, Heads and Sectors.

Thanks

Ray

rdoerr-mac:f3-2.2 rdoerr$ ./f3write /Volumes/UNTITLED
Free space: 14.90 GB
Creating file 1.fff ... OK!

Creating file 2.fff ... OK!

Creating file 3.fff ... OK!

Creating file 4.fff ... OK!

Creating file 5.fff ... OK!

Creating file 6.fff ... OK!

Creating file 7.fff ... OK!

Creating file 8.fff ... OK!

Creating file 9.fff ... OK!

Creating file 10.fff ... OK!

Creating file 11.fff ... OK!

Creating file 12.fff ... OK!

Creating file 13.fff ... OK!

Creating file 14.fff ... OK!

Creating file 15.fff ... OK!

Free space: 0.00 Byte
Average writing speed: 34.01 MB/s
rdoerr-mac:f3-2.2 rdoerr$ ./f3read /Volumes/UNTITLED
SECTORS ok/corrupted/changed/overwritten
Validating file 1.fff ... 2097152/ 0/ 0/ 0
Validating file 2.fff ... 2097152/ 0/ 0/ 0
Validating file 3.fff ... 2097152/ 0/ 0/ 0
Validating file 4.fff ... 2097152/ 0/ 0/ 0
Validating file 5.fff ... 2097152/ 0/ 0/ 0
Validating file 6.fff ... 2097152/ 0/ 0/ 0
Validating file 7.fff ... 2097152/ 0/ 0/ 0
Validating file 8.fff ... 2097152/ 0/ 0/ 0
Validating file 9.fff ... 2097152/ 0/ 0/ 0
Validating file 10.fff ... 2097152/ 0/ 0/ 0
Validating file 11.fff ... 2097152/ 0/ 0/ 0
Validating file 12.fff ... 2097152/ 0/ 0/ 0
Validating file 13.fff ... 2097152/ 0/ 0/ 0
Validating file 14.fff ... 2097152/ 0/ 0/ 0
Validating file 15.fff ... 1896384/ 0/ 0/ 0

Data OK: 14.90 GB (31256512 sectors)
Data LOST: 0.00 Byte (0 sectors)
Corrupted: 0.00 Byte (0 sectors)
Slightly changed: 0.00 Byte (0 sectors)
Overwritten: 0.00 Byte (0 sectors)
Average reading speed: 33.84 MB/s
rdoerr-mac:f3-2.2 rdoerr$

Reply to this email directly or view it on GitHubhttps://github.com//issues/118#issuecomment-27636432.

@ghollingworth
Copy link

I'm currently looking into another issue with this card, where the card with not reboot after halting.

Even if you power off the Pi and remove the card... It seems you have to plug it into a debian box and mount the partitions and then unmount them to get it to work again! Sounds like the card is very 'special'

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 6, 2013

I have no problem with this card if I use the dd method just to install the single instance of Raspbian Linux.

Thanks

Ray Doerr
N519RV

On Nov 6, 2013, at 2:19 PM, ghollingworth [email protected] wrote:

I'm currently looking into another issue with this card, where the card with not reboot after halting.

Even if you power off the Pi and remove the card... It seems you have to plug it into a debian box and mount the partitions and then unmount them to get it to work again! Sounds like the card is very 'special'


Reply to this email directly or view it on GitHub.

@ghollingworth
Copy link

Or at least you've not noticed any problems...

That doesn't mean a problem isn't waiting for just the right set of circumstances

Gordon

@lurch
Copy link
Collaborator

lurch commented Nov 6, 2013

Sounds like some kind of filesystem metadata thing? Could it be that there's some kind of "unclean unmount" occurring on the Pi, which puts the first FAT filesystem into a state that the (limited) bootcode in the GPU is unable to boot from? And then Debian is able to "reset" that metadata...
Of course that doesn't explain why that particular model of card behaves differently to others.

@ghollingworth
Copy link

No it looks like Debian isn't touching the FAT partition at all... So it looks like after the halt the SD card behaves slightly differently to before meaning we're unable to read the bootcode from it

The diff of the before and after inserting into the debian machine (which fixes the card) shows the first difference is right up in the ext4 partition which the bootcode doesn't read. We know that the chip is unable to even read bootcode.bin and therefore the problem must be some timing type issue with that particular type of card.

I'm going to get hold of one and have a look with my SD protocol analyser, my best guess would be that the SD card holds data in some 'special' area of memory (probably SLC NAND to make it quicker) and that when you open the SDCard for writing it uses this area. When you shut down the card it should write this back into the main MLC area but it seems maybe this isn't happening and instead this only happens when you actually do a subsequent write from the debian system. So we'd need to understand what it is that we're supposed to do to this card to shut it down properly and also understand what it is that the Debian PC is doing that we're not...

Gordon

@lurch
Copy link
Collaborator

lurch commented Nov 6, 2013

Ahhh, so it sounds like it might be some kind of cache flush issue inside the SD card hardware? I guess that's the kind of problem that's very hard to diagnose since the only access you have to the card is through its controller chip! (which of course may be lying to you about what it's actually doing behind the scenes)

@ghollingworth
Copy link

Kind of a cache issue if you think of your cache as being non-volatile! But yes I belive that's the way some of these cards work.... The real proof will be in understanding what we're doing in the protocol and what the bootcode is getting back from the card

@lurch
Copy link
Collaborator

lurch commented Nov 7, 2013

Is all the work you're doing to understand these low-level SD-card failures also helpful for upstream Linux / other SD-card-using projects in general, or are these things specific to the RPi?

@ghollingworth
Copy link

In general all this stuff is Raspberry Pi specific... Although the bug with the Sandisk Ultra cards would trip any system up if they were able to post accesses quick as quickly

@maxnet
Copy link
Collaborator

maxnet commented Nov 7, 2013

I have no problem with this card if I use the dd method just to install the single instance of Raspbian Linux.

NOOBS is also able to write to the SD card at first.
It does is able to modify the partition table, write the riscos blob and move the files in the FAT partition around.
But appearently goes bad during or after formatting the settings partition with mkfs.ext4

Could be that you have not run into any issues on Raspbian YET.
Or it could also be that the SD card does not like the command sequence mkfs.ext4 sends.
It not only does dumb writes, but also more intelligently informs storage which sectors can be erased (normally using ATA trim or SCSI discard. probably some other equivalent command for SD cards.)

@lurch
Copy link
Collaborator

lurch commented Nov 7, 2013

@ghollingworth if you ever did a write-up about your SD protocol analyser stuff I bet it would make a fascinating blog post on hackaday.com ;)

@rdoerr01
Copy link
Author

rdoerr01 commented Nov 7, 2013

This is the PNY card I bought in question.  It's a class 10 card and for a really good price.

http://www.macmall.com/p/PNY-Secure-Digital-(SD)-Memory/product~dpno~9791358~pdp.ieahade?store=macmall&source=MWB43457&[email protected]&hq_e=el&hq_m=2334284&hq_l=28&hq_v=293fea61e6

Thanks

Ray Doerr
N519RV

On Nov 7, 2013, at 4:32 AM, ghollingworth [email protected] wrote:

In general all this stuff is Raspberry Pi specific... Although the bug with the Sandisk Ultra cards would trip any system up if they were able to post accesses quick as quickly


Reply to this email directly or view it on GitHub.

@lurch
Copy link
Collaborator

lurch commented Feb 18, 2014

@rdoerr01 Just trying to chase up on some old bugs.... :)

Do you still get the same errors with the same card using NOOBS v1.3.4 (which has a much newer version of the firmware files than NOOBS v1.3) ?

@rdoerr01
Copy link
Author

I just tried it again using NOOBS 1.3.4 and the same things is happening. The interesting part is when the GUI comes up where it doesn't display any OS's to install the Title of the window says Version 1.3.2 Built Nov 2, 2013. I know I used the 1.3.4 version so maybe they forget to change the Version info in the Title Bar for 1.3.4.

Thanks

Ray

@lurch
Copy link
Collaborator

lurch commented Feb 20, 2014

I just tried it again using NOOBS 1.3.4 and the same things is happening.

Hmmm, that's frustrating. Any other ideas @ghollingworth ?

the Title of the window says Version 1.3.2 Built Nov 2, 2013. I know I used the 1.3.4 version

Yeah, see #157
The "next NOOBS" 1.4.1 has been pushed back slightly, but hopefully that'll have an easier-to-understand versioning scheme ;-)

@ghollingworth
Copy link

Does the same error message occur? Or has it changed? One thing to try is to format the card and make sure you give it a volume label... It seems there is a bug related to accessing some cards when there is no label!

Gordon

@rdoerr01
Copy link
Author

Yes it was formatted with the Label set to FAT32.

Thanks

Ray Doerr
N519RV

On Feb 21, 2014, at 11:21 AM, ghollingworth [email protected] wrote:

Does the same error message occur? Or has it changed? One thing to try is to format the card and make sure you give it a volume label... It seems there is a bug related to accessing some cards when there is no label!

Gordon


Reply to this email directly or view it on GitHub.

@lurch
Copy link
Collaborator

lurch commented Feb 21, 2014

@rdoerr01 Stupid question, but it doesn't hurt to clarify - are you using NOOBS Lite or 'full NOOBS' ?

@rdoerr01
Copy link
Author

Full

Sent from my iPhone5

On Feb 21, 2014, at 11:31 AM, Andrew Scheller [email protected] wrote:

@rdoerr01 Stupid question, but it doesn't hurt to clarify - are you using NOOBS Lite or 'full NOOBS' ?


Reply to this email directly or view it on GitHub.

@lurch
Copy link
Collaborator

lurch commented Feb 24, 2014

Are you able to try #118 (comment) again and paste the results to somewhere like pastebin.com ? (you mentioned ordering a TTL serial cable so that you could collect full logs)

@adammw
Copy link

adammw commented Nov 23, 2014

I'm seeing this error as well on a Transcend Class 6 MicroSD card.
Freshly formatted with the SD Card Formatter on Mac OS X, and then copying on NOOBS v1.3.10 (lite) files onto the SD card, I get a error dialog "Error writing RiscOS blob" after it tries to format the settings partition.

/var/log/debug dump at https://gist.github.com/adammw/9c909ee06b244ad20748

After pressing OK, a "Error mounting settings partition" message is displayed asking if I want to reformat. If I press yes, it will go though and fail, and end up with an empty OS list.

Edit: It's possible that the SD card is dodgy, as I can't even flash a Raspbian image to it and get it to work either.

@lurch
Copy link
Collaborator

lurch commented Nov 23, 2014

@adammw Perhaps it's your card-reader that's at fault, rather than the card? Worth trying a different one (preferably USB as they seem to be more reliable than internal card-readers), if you can.

@Ruffio
Copy link

Ruffio commented Jun 17, 2015

@lurch is this still in progress?

@lurch
Copy link
Collaborator

lurch commented Jun 18, 2015

Can any of the previous commenters in this thread try re-testing with NOOBS v1.4 or above?
If not I may have to close this issue due to lack of activity...

@NicoHood
Copy link

This SD card bug is still there, this issue is duplicated somewhere. But I think its gone for Pi1 while it reappeared with the pi2 and is still there.

@lurch
Copy link
Collaborator

lurch commented Jun 18, 2015

@NicoHood The Pi2 SD-card bug is #230, which AUIU is an entirely separate bug from the one being discussed here. But with so many different SD-card related bugs (see also #265, #258, #174) it's difficult to separate them into different categories (especially when they're so difficult to try and reproduce!).

@XECDesign
Copy link
Contributor

Closing since OP hasn't responded since 2014 and there have been several SD card issue fixes added since then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants