Home › Forums › General › Help Please › Issue with 1tb “Super Clean” from BoredGameDad .IMG?
- This topic is empty.
- AuthorPosts
- September 4, 2023 at 5:48 am #109530
5qci2f
Participant@5qci2fI downloaded the 1tb Fully Loaded Batocera PC Image “Super Clean” from BoredGameDad from [ArcadePunks]/1tb-fully-loaded-batocera-pc-image-super-clean-from-boredgamedad/ via torrent (Info Hash v1 f0eef9170ab07f7a091a82944ae0bc917bb29b88). Torrent was downloaded onto my NAS and extracted there (Linux OS) using unrar, which yielded the SuperCleanPC1TB.img file. I then copied it to my workstation so I could burn it onto my USB external hard drive using Balena-Etcher. IMG was burned and validated no issue, but the drive wasn’t showing any partitions. I attempted to boot, but was met with just a black screen.
Troubleshooting:
1. Ensured SECURE BOOT was OFF. Tried having LEGACY BOOT ON/OFF, but not luck.
2. Using fdisk onto my USB drive (/dev/sdb), I am presented with the error:
GPT PMBR size mismatch (1953525167 != 1953458175) will be corrected by write.
The primary GPT table is corrupt, but the backup appears OK, so that will be used.And in applying the GPT table fix, I am able to see the Batocera boot partition, but nothing else. This allows me to boot into Batocera with the default everything (basic ROMs, settings, etc.), but nothing else shows.
3. Made sure the torrent was downloaded correctly by forcing a recheck. All was good there.
4. I tried unpacking the IMG with 7z v23.01, and tried all my steps again, but no luck.
5. Manually analyzing the IMG file with parted, I get this error:
Error: end of file while reading ./SuperCleanPC1TB.imgNext Steps?
Is there a way to surgically put this IMG together? As in specifying where the partitions should be located and fix the partition table? Any help/guidance would be greatly appreciated!
September 4, 2023 at 6:17 am #1181455qci2f
Participant@5qci2fHOW TO FIX:
1. On linux install testdisk with your package manager.
sudo apt install testdisk
2. Start testdisk with root privileges
sudo testdisk
3. Disregard the logs with (not needed really)
>[ No Log ] Don’t record anything
4. Find the drive you burn the IMG to (in my case its /dev/sdb) and select it with PROCEED
>Disk /dev/sdb – 1000 GB / 931 GiB
5. It should suggest an EFI GPT partition table type, so go ahead and select it
>[EFI GPT] EFI GPT partition map (Mac i386, some x86_64…)
6. Choose the ADVANCED option
>[ Advanced ] Filesystem Utils
7. This will present the partitions found on the device, for example:
Disk /dev/sdb – 1000 GB / 931 GiB – CHS 121597 255 63
Partition Start End Size in sectors
1 P Linux filesys. data 2048 12584959 12582912
2 P Linux filesys. data 12584960 1953458142 19408731838. Now we can use this data to manually restructure the partitions. So now in another terminal, start fdisk on your drive, for example:
sudo fdisk /dev/sdb
9. Delete any partitions with “d”
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.10. Once all partitions are deleted, we can now manually set them by using the data we found with testdisk. Now we create a new partition with “n”:
Command (m for help): n
Partition number (1-128, default 1): 1
First sector (2048-1953458142, default 2048): 2048
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1953458142, default 1953458142): 12584959Created a new partition 1 of type ‘Linux filesystem’ and of size 6 GiB.
Partition #1 contains a vfat signature.Do you want to remove the signature? [Y]es/[N]o: N
10a. Using the data from before, we know what to input. Partition number is 1, First sector for the first sector is 2048, and the last sector is 12584959, and we DO NOT want to remove the signature that is already present, so we use “N”.
11. Follow the same instructions with the 2nd partition data from the testdisk results into fdisk again:
Command (m for help): n
Partition number (2-128, default 2): 2
First sector (12584960-1953458142, default 12584960): 12584960
Last sector, +/-sectors or +/-size{K,M,G,T,P} (12584960-1953458142, default 1953458142): 1953458142Created a new partition 2 of type ‘Linux filesystem’ and of size 925.5 GiB.
Partition #2 contains a ext4 signature.Do you want to remove the signature? [Y]es/[N]o: N
12. Use the “p” command to print what changes will take place, and see if they look correct
Command (m for help): p
Disk /dev/sdb: 931.48 GiB, 1000170586112 bytes, 1953458176 sectors
Disk model: XXXXXXXXXXXXXX
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDevice Start End Sectors Size Type
/dev/sdb1 2048 12584959 12582912 6G Linux filesystem
/dev/sdb2 12584960 1953458142 1940873183 925.5G Linux filesystem13. All looks well, so to apply changes, we issue the “w” command for “write”:
Command (m for help): w
14. Using lsblk, we can see our two partitions show up now!
$ lsblk
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 6G 0 part
└─sdb2 8:18 0 925.5G 0 part15. PROFIT!
- AuthorPosts
- You must be logged in to reply to this topic.