Fixing a Corrupted Raspberry Pi SD Card Partition Table

Channel:
Subscribers:
14,400
Published on ● Video Link: https://www.youtube.com/watch?v=21Mt9RXeOxM



Duration: 1:52
4,711 views
32


#RaspberryPi #SDCard #Fix

Full steps can be found at https://i12bretro.github.io/tutorials/0747.html

   01. Download the GParted live disc  https://gparted.org/download.php
   02. Insert the SD card into a PC and boot into the GParted live disc
   03. Minimize the GParted UI and launch Terminal from the desktop
   04. Run the following command in the open terminal
         sudo testdisk
   05. Select Create
   06. Use the arrows to select the SD card device ≫ Proceed
   07. Use the arrows to select Intel
   08. Select Analyse ≫ Quick Search
   09. Press Enter to continue
   10. Arrow over and select Write to apply the partition table to the SD card ≫ Type Y and press Enter to confirm
   11. Quit out of TestDisk back to the terminal
   12. Continue with the following commands to check and repair the filesystems on the SD card
         # take note of the device identifiers for the SD card (/dev/sda1 and /dev/sda2 in the example)
         sudo fdisk -l
         # run the following command for each partition on the SD card, replacing x with the correct disk identifier
         sudo fsck /dev/sdx1 -fy
         sudo fsck /dev/sdx2 -fy
   13. Shutdown the GParted live disc
   14. Insert the SD card back into the Raspberry Pi
   15. Power it on to see if the SD card is now able to boot
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Armbian
Corrupt Raspberry Pi
Corrupted SD Card
Debian
File System
Fix Corrupt Raspberry Pi OS
Fix Corrupt SD Card
GParted
Home Lab
How To
Linux
Micro SD Card
Raspberry Pi Image
Raspberry Pi OS
SBC
SD Card
Single Board Computer
Tutorial
i12bretro