Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a machine running ubuntu 12.04 and windows 8 on dual boot. I created a ntfs partition to do easy switching but as there were only 4 partition possible, I unknowingly deleted system reserved partition for windows, so it didn't boot but ubuntu was running fine.

So, I read somewhere to use live windows usb to restore windows 8 system reserved partition and when I did automatic recovery, I think it created a partition and now I cannot access my linux ext4 partition. Gparted gives error "can't have overlapping partition" and shows one unallocated block. System is also not booting and ls on grub rescue is not even showing (hd0,msdos4) which is shown in fdisk.

The output of fdisk -l /dev/sda is:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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
Disk identifier: 0x519763e3

Device      Start       End         Blocks      Id  System
/dev/sda1   2048        31264767    15631360    27  Hidden NTFS WinRE
/dev/sda2*  31264768    31469567    102400       7  HPFS/NTFS/exFAT
/dev/sda3   31469568    271835135   120182784    7  HPFS/NTFS/exFAT
/dev/sda4   271837182   590538751   159350785    5  Extended
/dev/sda5   590538752   976773119   193117184    7  HPFS/NTFS/exFAT
/dev/sda6   579627008   590536703   5454848     82  Linux swap / Solaris

Partition table entries are not in disk order

Please help me knowing what to do, I need to access my ubuntu partition to at least recover some files. Also if you could tell which commands I can use to get it working.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.