I was trying to copy a cross-compile of uboot .img to the sdcard file attached in the ubuntu(running on virtual-box under windows 10 host) but ended leaving the working ubuntu into some undefined state which I want to recover from. In the ubuntu I could see /dev/sda1 that was created using the cmd
createrawvmdk -filename"D:\Virtual_Machines_Hard_Drive_Area\image_linux\sdcard_attachment_file\sdcard.vmdk" -rawdisk "\\.\PHYSICALDRIVE1"
correctly mapping to the 8GB sdcard as attached to laptop. But the command
sudo dd if=sdcard.img of=/dev/sda1 bs=2048
corrupted my working copy of ubuntu that its not booting with an error of unknown file system.
I have lots of dev tools configured in the version of Linux. Please help me to recover the same if possible.