I’ve been using my Reform for several months, but all of a sudden it stopped booting up. After some troubleshooting I discovered that there was something wrong with the SD card it was booting from. The device itself seems to be set to Read Only. Not the partitions on the card, the actual drive itself. I can’t even dd to it.
sudo dd if=/dev/zero of=/dev/sdb
dd: failed to open '/dev/sdb': Read-only file system
I did some troubleshooting and attempted to set the drive back to read/write using both hdparm and blockdev.
Neither worked. After replugging and remounting, the drive failed to become readable again. I also checked the physical read/write switch on the card, and I’ve tried two different SD card readers. The drive stayed read only.
Eventually I gave up and figured this was a hardware failure. I have had SD cards fail on me like this before. I backed up the contents of the card, bought a brand new one, and dd’d everything over to the new card. After transferring, the new drive was suddenly exhibiting the exact same behavior. Locked down to read only, unable to be unlocked. My MNT system image is apparently capable of bricking SD cards.
What the hell is going on here? Is there any way for me to restore my cursed image and/or SD cards? The laptop still boots with (a third) SD card that is just using a stock system image. I really just don’t want to go through the hassle of migrating everything, and I want to make sure that this doesn’t happen to me randomly in the future (or at least I can fix it without a complete system reset).
There is a sysfs switch that can disable write access to SD cards. I wouldn’t know how dd-ing an image could affect it, but that would be the first thing I would check.
I don’t remember the exact path, but it’s somewhere in /sys/block.
Apologies for the radio silence, I got frustrated with this issue and then life got in the way. I did end up kind of figuring it out though.
I was astonished by this issue and showed the card to a friend. He popped it in his SD card reader and on HIS machine it wasn’t locked to write protected mode. I showed him the two SD card readers that refused to let me write to the card, and we ended up opening them up. They were both cheap Amazon specials, and both of them had the exact same chip inside. I still don’t know what it is about this image and SD card reader SoC combo that causes this problem.
The SD card was in fact corrupted, and I was able to repair it with fsck from a working card reader. I am writing this reply from my fixed machine.
The silkscreen on the cases weren’t exactly the same as in the photos (mine didn’t have the Energizer branding for example), but this is as close as I could find. In hindsight, it should have been pretty obvious that they both had the same PCB inside. The only real difference is the outside case.