Partition table vanished after rebooting debian VM

AndyQ

Cadet
Joined
Feb 3, 2023
Messages
2
I recently rebooted (from the CLI) a Debian 11.4 server virtual machine. When its services didn't resume I connected to the console and saw it had booted into the UEFI shell, which could not see any file systems. I booted from the Debian ISO and staretd Debian Rescue, but fdisk and parted agree that the disc has no partitions

Has anyone had anything like this happen? Does anyone know of any tool that can do anything?

I attach output of useful things I can find. Is there anything else I can look at?

Unfortunately, I am dumb enough not to have a snapshot of the VM's dataset...

Ta

Andy
 

Attachments

  • d1-fdisk.jpg
    d1-fdisk.jpg
    87.9 KB · Views: 140
  • d1-ls.jpg
    d1-ls.jpg
    78 KB · Views: 133
  • d1-parted.jpg
    d1-parted.jpg
    32.2 KB · Views: 133
  • d1-log.txt
    7.6 KB · Views: 167

AndyQ

Cadet
Joined
Feb 3, 2023
Messages
2
Fixed it!

I cloned the VM (to make sure the disk config was the same) and then did a reinstall on the clone far as creating the partitions. Then booted that VM into Debian rescue to get the partition start/end and used those numbers to recreate the partition table on the original VM. And was delighted to find it then booted.

First job to update my backups!

Thanks to those who read the thread. It would still be nice to know how a partition table can vanish.

Andy
 
Top