Article 53P8W Gparted and Disks reporting different partition tables

Gparted and Disks reporting different partition tables

by
algray
from LinuxQuestions.org on (#53P8W)
Hi there!

I made a major goof and wrote a debian.iso to /dev/sdb (actually what I remember doing is writing it to /dev/sda but for reasons I'll get into shortly, my disk is reporting it differently.

As I understand it, that means that the first 430Mb or so (size of debian-10 netinstall) has been overwritten by the iso file

So here's what I've come up with so far:

I have 2 drives:
Code:- an HDD at /dev/sda. It is used for my data. It had an NTFS and an ext4 partition (no OSes)
- an SSD at /dev/sdb. It has a windows partition and a few linux partitions. While I could wipe the linux paritions. If I had to wipe the windows I probably
wouldn't be able to get it back (unfortunately I do still need to use it
sometimes).
- on first error, the Bios was booting directly into the installerusing test disk:
Code:- I don't remember the structure of the first 440 or so mB before I
overwrote them. however, test disk appears to identify the partitions
containing the OSes ok.
- test disk wouldnt let me use more than one logical partition so i had to make
choose which partitions to "keep" in my new MBR
- After rewriting the changes to MBR using test. the BIOS no longer recognizes
any bootable devices (but I can still boot into liveUSB)using grub command-line (from a liveUSB, since BIOS can find the hard-drives)
Code:- ls yields (hd0) (hd0,msdos1) (hd0,msdos0) (hd1) (hd1,msdos2)
(hd1,msdos1) (hd1,msdos0) (hd2) (hd2,msdos4) (hd2,msdos3) (hd2,msdos2)
(hd2,msdos1) (hd2,msdos0)
- ls (hd0) & ls (hd1) yield no response
- ls (hd2) yields debian-amd** (the name given to the usb .iso I originally
overwrote the disks with)from a liveUSB
Code:- GParted and Disks report 2 different partition schemes for /dev/sdb
- Disks appears to show the partition table that I applied using testdisk
- GParted shows a single partition titled: debian-amd** same as what grub
reportedFinally, using gdisk:
sudo gdisk /dev/sdb
Code:GPT fdisk (gdisk) version 1.0.3

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: present

Found valid MBR and GPT. Which do you want to use?
1 - MBR
2 - GPT
3 - Create blank GPTI saw from some posts that the GPT table can causes issue for the BIOS at boot-time and the BIOS is clearly confused. What options do I have to try and straighten this out?

Thank you, take care
Al Graylatest?d=yIl2AUoC8zA latest?i=uAY2G37isQc:IlH143QHH1U:F7zBnMy latest?i=uAY2G37isQc:IlH143QHH1U:V_sGLiP latest?d=qj6IDK7rITs latest?i=uAY2G37isQc:IlH143QHH1U:gIN9vFwuAY2G37isQc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments