I deleted a partition using (parted) rm 3
, so I could extend my ext4
partition. Here was my partition table before I removed it:
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 99.1GB 99.1GB primary ntfs boot
3 208GB 240GB 32.2GB extended lba
5 208GB 238GB 30.2GB logical ext4
6 238GB 240GB 2009MB logical linux-swap(v1)
2 240GB 250GB 9977MB primary ntfs
After I ran (parted) rm 3
it shows up like this:
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 99.1GB 99.1GB primary ntfs boot
2 240GB 250GB 9977MB primary ntfs
Since I only removed number 3, I don't understand where my ext4
partition and my linux-swap(v1)
partition went. I am attempting to restore my partition table using sudo gpart /dev/sda
, however I read online that it doesn't support ext4
partitions.
Anyone have any suggestions? I would like my ext4
and linux-swap(v1)
partitions back, and ideally to extend the ext4
partition to use the empty space before it.
EDIT:
gpart
failed to find my correct partition. I am now trying to use testdisk
which will hopefully correctly identify my partition table.