Filesystem of Ubuntu partition not detected after Win 8 installation

caughtinalandslide

Honorable
Dec 27, 2012
7
0
10,510
I installed Windows 8 over an existing dual boot of Windows 7 and Ubuntu. I thought, like all times, a simple grub reinstall would fix the issue. But this time something weird happened.

I ran boot-repair from a liveUSB, rebooted, but still didn't get GRUB. Then I started investigating a bit. Here's fdisk:

Code:
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
    /dev/sda2          206848   204802047   102297600    7  HPFS/NTFS/exFAT
    /dev/sda3       204804094   283410431    39303169    5  Extended
    Partition 3 does not start on physical sector boundary.
    /dev/sda4       283410432   976773119   346681344    7  HPFS/NTFS/exFAT
    /dev/sda5       267788288   283410431     7811072   82  Linux swap / Solaris
Windows is in sda2 and Ubuntu in sda3 (ext3). If I try to mount it:

sudo mount /dev/sda3 /mnt
mount: you must specify the filesystem type

Here's parted -l:

Code:
    Number  Start   End    Size    Type      File system     Flags
     1      1049kB  106MB  105MB   primary   ntfs            boot
     2      106MB   105GB  105GB   primary   ntfs
     3      105GB   145GB  40.2GB  extended
     5      137GB   145GB  7999MB  logical   linux-swap(v1)
     4      145GB   500GB  355GB   primary   ntfs
So I'm not able to detect the file system of my Ubuntu partition!

Here's the boot-repair log:
http://paste.ubuntu.com/6221718/

I then ran testdisk. Take a look:

iZIKHrR.png



The left window is showing the disk structure with the 'Free Space 32GB' being the Linux partition I want to recover.

On the right, the 3rd partition with label 'Linux' is the one I want to recover.
Now I'm supposed to set these drives as P, L,E,D and *. Please suggest what should I do here, I don't want to mess things up further here :S

EDIT: One thing, I'm not getting an option to select 'E' for any of the partitions. So the only options I'm able to select are P,L,D,*.