"Write error" when reading from write protected SD-cards

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
jostein_aarbakk
Beta Tester
Beta Tester
Posts: 37
Joined: Thu Aug 04, 2011 11:08 pm
Location: Norway

"Write error" when reading from write protected SD-cards

Post by jostein_aarbakk »

Bug report:
After copying a file from a write protected Secure Digital memory card (SD) via my USB flashcard-reader, I get a requester telling me the following:
"MyMemorycardname has a write error on disk block 608
Error = 28
disk is write-protected
Retry Cancel".

And when I press "Cancel", the same requester pops up again until I either remove the card or switches off the write protection.

This means that the OS tries to write something on the card even if I only want to read from it, which adds a risk for corrupting data on the card (although OS 4.1u4 hasn't corrupted any data for me yet).
Personally, I think that reading from a device shouldn't lead to any writing on it at all.
User avatar
ZeroG
Posts: 119
Joined: Sat Jun 18, 2011 11:31 am
Location: Germany

Re: "Write error" when reading from write protected SD-cards

Post by ZeroG »

I can get the same error here using a write protected SD-Card.
I think the problem is that usbdisk.device does not report write protected drives to the filesystem.
That should be fixed, can somebody please add it to Bugzilla?

On top of that CrossDOSFileSystem defaults to write the last access date also on a read access if the media is not write protected (that's conforming FAT behaviour).

As a workaround you must create a mountlist for your SD-Card using the NOACCESSDATE option in CrossDOSFileSystem.
Before you mount it you must dismount the SD-Card first. To do that insert the SD-Card and hit CTRL-ALT-m, select the card and click "Dismount".
Evillord68
Beta Tester
Beta Tester
Posts: 233
Joined: Sun Jun 19, 2011 5:26 pm

Re: "Write error" when reading from write protected SD-cards

Post by Evillord68 »

I have the same problem here. I used my SD Card from my Minimig, i make it write protected. I pluged in, into my card reader an now i become the same massage: Minimig have a write error...

Ok i will fill a bugreport in bugzilla.

Greetings

Jürgen
User avatar
ZeroG
Posts: 119
Joined: Sat Jun 18, 2011 11:31 am
Location: Germany

Re: "Write error" when reading from write protected SD-cards

Post by ZeroG »

Thanks.
User avatar
jostein_aarbakk
Beta Tester
Beta Tester
Posts: 37
Joined: Thu Aug 04, 2011 11:08 pm
Location: Norway

Re: "Write error" when reading from write protected SD-cards

Post by jostein_aarbakk »

Thank you both for your feedback regarding this issue.
Looking forward to a future update of OS4.
Post Reply