Windows 10 update killed my Ubuntu dual boot - help!

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
mattislind
Posts: 3
Joined: 23 Oct 2016, 11:34

Windows 10 update killed my Ubuntu dual boot - help!

#1 Post by mattislind »

A month ago my Ubuntu / Windows 10 laptop rebooted because of an update and when it started it just gave me an grub rescue prompt. Completely unable to boot. Searching the web there were this advice to use boot-repair to recover which I tried but it did not help.

Then I found TestDisk and ran it from an Ubuntu Live USB.

It gave me this:
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63
Partition Start End Size in sectors
>D HPFS - NTFS 0 32 33 63 221 30 1024000
D HPFS - NTFS 63 221 31 7549 59 62 120252416
D HPFS - NTFS 7549 59 63 7648 236 12 1601536
D Linux 7649 46 14 13555 108 57 94883840
D Linux Swap 13555 108 58 14593 66 1 16672768







Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
NTFS, blocksize=4096, 524 MB / 500 MiB
When listing files using the P command all files seemed to be right there (apart from the Linux Swap of course). But I can not figure out how to correctly specify what partition shall be Primary, Logical etc. However I seemed to remember that the NTFS partitions all were Primary once upon a time and that the two Linux partitions were two logical partitions in an extended partition. However it seems to be hard to specify that configuration. At least I am unable to do that. Using left/right arrows do not allow me to specify Extended partition. Someone that know how to correctly set the partition table?

BTW. Before doing any changes I plan to mirror the drive so that I can go back later on..

/Mattis

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Windows 10 update killed my Ubuntu dual boot - help!

#2 Post by cgrenier »

Please post the whole testdisk.log file. I don't know if grub has to be reinstalled or if the partition table need to be rewritten.

mattislind
Posts: 3
Joined: 23 Oct 2016, 11:34

Re: Windows 10 update killed my Ubuntu dual boot - help!

#3 Post by mattislind »

Here is the content of testdisk.log:
Using locale 'en_US.UTF-8'.


Wed Oct 26 18:11:02 2016
Command line: TestDisk /log

TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 4.4.0-31-generic (#50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016)
x86_64
Compiler: GCC 4.4
Compilation date: 2015-04-18T13:05:16
ext2fs lib: 1.42.8, ntfs lib: libntfs-3g, reiserfs lib: 0.3.1-rc8, ewf lib: 2012
0504, curses lib: ncurses 5.7
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 234441648 sectors
/dev/sda: user_max 234441648 sectors
/dev/sda: native_max 234441648 sectors
/dev/sda: dco 234441648 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector s
ize=512
Hard disk list
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63, sector size=512 - Samsung S
SD 840 EVO 120GB, S/N:S1D5NSAD901470N, FW:EXT0AB0Q
Disk /dev/mmcblk0 - 8026 MB / 7655 MiB - CHS 244960 4 16, sector size=512

Partition table type (auto): Intel
Disk /dev/sda - 120 GB / 111 GiB - Samsung SSD 840 EVO 120GB
Partition table type: Intel

Analyse Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63
Geometry from i386 MBR: head=255 sector=63
Current partition structure:
1 P HPFS - NTFS 0 32 33 63 221 30 1024000
2 * HPFS - NTFS 63 221 31 7549 51 26 120251876
3 P Windows RE(store) 7549 59 63 7648 236 12 1601536
4 E extended 7649 46 12 14593 66 1 111556610
5 L Linux Swap 13555 108 58 14593 66 1 16672768

search_part()
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63
HPFS - NTFS 0 32 33 63 221 30 1024000
NTFS, blocksize=4096, 524 MB / 500 MiB
HPFS - NTFS 63 221 31 7549 51 26 120251876
NTFS, blocksize=4096, 61 GB / 57 GiB
HPFS - NTFS 7549 59 63 7648 236 12 1601536
NTFS, blocksize=4096, 819 MB / 782 MiB
Linux 7649 46 14 13555 108 57 94883840
ext4 blocksize=4096 Large_file Sparse_SB Recover, 48 GB / 45 GiB
Linux Swap 13555 108 58 14593 65 48 16672752
SWAP2 version 1, pagesize=4096, 8536 MB / 8140 MiB

interface_write()

No partition found or selected for recovery
simulate write!
No extended partition

TestDisk exited normally.
To me it looks like there are something missing in the extended partition. I think there used to have been a logical partition there but it seems to be gone somehow.Thanks for any help!

mattislind
Posts: 3
Joined: 23 Oct 2016, 11:34

Re: Windows 10 update killed my Ubuntu dual boot - help!

#4 Post by mattislind »

Sorry to bump this thread, but were there any way of recovering the partition table? Did the provided log tell anything useful? In that case what commands should I try in order to do so?

/Mattis

Locked