Failure to boot - Invalid Partition Table.

Spend yesterday figuring out why I could boot off the installation USB and boot the internal SSD but when I removed the USB boot all I got was “Invalid Partition Table”

BIOS was at the latest version. It appears that Legacy cannot handle drives bigger than 2 TB - this new one was 4 TB.

Then I looked at the fact that we were booting “Legacy” and not “UEFI”.

I backed up all the files (tar) to an external 2 tb USB - I also created a list of what was installed with a zypper se -si | awk ‘{print $3}’ >zbefore save to root before the backup.

Changed the Boot from Legacy to UEFI and did a fresh install from the USB drive.

When it came up (no Invalid partition table) - I did a zypper se -si | awk ‘{print $3}’ >znew

I restored etc, root, and home to /tmp from the backup ( all other file systems were not deleted just a new boot/efi and / )

I did the following as root:

cat /tmp/etc/fstab

rem added the lines for the other file systems (not touching / /boot/efi and swap) to /etc/fstab

vi /etc/fstab

 rsync -av /tmp/root/ to /root

rsync -av /tmp/etc/zypp/ /etc/zypp

rsync -av /tmp/etc/cups/ /etc/cups

cat zbefore znew | sort | uniq > zadd

vi zadd and joined all the lines into one

zypper in `cat zadd`  - that put back all the apps that were there before the reinstall

booted to make sure all was good

mv /tmp/home/username /home/username1

mv /home/username /home/username2

mv /home/username1 /home/username

init 6

Just like before printers and desktop like before reinstall.

Hope this might help someone in the future

could not edit the above - left out this:

Spend yesterday figuring out why I could boot off the installation USB and boot the internal SSD but when I removed the USB boot all I got was “Invalid Partition Table”

BIOS was at the latest version. It appears that Legacy cannot handle drives bigger than 2 TB - this new one was 4 TB.

That 2TB limitation is the main reason why GPT was invented.

When upgrading the disk drive I did a default install on the new disk. Then I rsynced from the old disk, adjusted /etc/fstab and reinstalled grub: https://forums.opensuse.org/showthread.php/541321-Upgrading-the-Hardware?p=3086058#post3086058

User can use 4 TB disk (more than 2.2 TB) with MBR for data storage.
Linux can boot from 4 TB disk with GPT and legacy boot.