I had an Ubuntu installation on my laptop, on an encrypted LVM (this was /dev/sda1).
I was planning to write an Arch Linux image to my USB drive (/dev/sdc1), following this guide - https://wiki.archlinux.org/index.php/USB_Installation_Media#Overwrite_the_USB_drive. Instead, I accidentally overwrote my Ubuntu by using
dd if=archlinux.iso of=/dev/sda
Is there any hope of recovering my Ubuntu installation, or is it totally hopeless, and I rather recover as much data as possible?
dd if=/dev/sda of=justincase.bkup bs=512 c=1
so I won't mess up my MBR or partition table, or two byte signature. :D