On my old Ubuntu system (the one I'm trying to restore to) I had a boot partition /dev/sda1, my main OS partition /dev/sda2, and a swap partition /dev/sda3. I mistakenly formatted over /dev/sda1 turning it into a FAT32 fs.
The first thing I did was use testdisk to make sure my file system was intact (which it was), so I copied it to an external hard disk -- meaning I did cp -r /dev/sda2 /path/to/external/backup. Is it possible to use my live CD to get a fresh install with a proper boot partition and then do mount /path/to/external/backup some/proper/mount/point then write in /etc/fstab something so that I can boot into it? What would the actual process be exactly?
I already tried 2 or maybe 3 different ways to fix my grub partition so I can boot into the /dev/sda2 that's still on my laptop SSD, but I'm going on week 3 of trying to fix that issue and don't have time to mess with it any more.
cp -risn't the best way to make a backup. If usingcpat least usecp -a, but a filesystem archiver likefsarchivermight suit you better.sudo fdisk -l /dev/sda?