I have 2 SD cards. Both flashed with Raspberry Pi OS. However, I started to have issues wiping the partition table on both the SD card after failed to flash a brand new Raspberry Pi to the SD.
One of the SD cards is a Raspberry Pi's 128 GB microSD card accompanied when I buy the main Raspberry Pi. Another one is AGI micro SD card for gaming (A2 128 GB).
I think the SD is somehow unresponsive to the write function because when I boot any of the SD cards to Raspberry Pi 5, the green light remained solid while the fan went on full speed, which should only happen when the kernel is booting. If I connect the display port, I will see a completely blank screen and hear some fan noises (since it is in full speed). But, as the SD card write failed on my personal laptop for both add file and change partition table, I cannot reformat the disk, nor can raspberry pi write the boot log file to /var/log/boot.log.
So, I have concluded a few questions that will help me solve the problem and help other people in this community solve simular problems.
- Is there some kind of protection in SD cards that you can set that prevents any write changes? What is the issue that is actively preventing the write function to both the partition table and the file system content itself?
- Is this issue linked or associated with Raspberry Pi Imager?
- How can I forcefully format the SD card in linux, so all data gets wiped no matter what? (How to solve this issue)
Note: I have tried to use different tools like Gparted and Gnome Disk to try wipe the SD, but it all failed. I am sure this is not my computers problem because Raspberry Pi failed to boot as well. (correct me if I am wrong)
- What can I do to prevent this issue from happening again?
Update: Both of my SD cards does not have a mechanical switch, and the initial flash from Raspberry Pi imager succeeded.
Video of Disk Wipe in Gnome Disk
Solution to the problem: The solution that I applied to my SD card is to change the firmware of Raspberry Pi and make it boot to USB before attempting SD card booting. That way, since USB generally wear slower than an SD card, USB can be used to boot the Raspberry Pi after writing the OS image to an USB.
See: https://linuxconfig.org/boot-your-raspberry-pi-from-a-usb-a-tutorial for steps
