I was trying to repair a damaged MicroSD card located on /dev/sdb, however I accidentally ran the gpart tool on /dev/sda instead. (not gparted, but gpart)
I ended up writing one partition and so now insted of having 4 partitions on my internal hard drive, I have 1 partition.
This is the output of fdisk -l
:
Disk /dDisk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
ev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I don't know why, but my system is still working. I am afraid if I restart though, I won't have a system anymore. I have a dual boot Windows 7/Arch Linux setup.
How should I recover my partitions seeing as I overwrote them with gpart?