Fix dual boot laptop
Posted: 05 Oct 2014, 19:11
My Dell laptop has a 160GB hard drive on it. I was trying to use TestDisk to repair booting of an SD card for a Raspberry Pi. By mistake I managed to mess up my grub bootloader instead of fixing the SD card. I have managed to get Ubuntu 14.04 to boot but it doesn't see the Windows 7 drive, nor does it boot windows.
When running TestDisk I see this:
***********************************************************************************
TestDisk 7.0-WIP, Data Recovery Utility, October 2014
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Partition Start End Size in sectors
D HPFS - NTFS 0 32 33 12 223 19 204800
>D HPFS - NTFS 12 223 20 10634 207 5 170641408
D Linux 10634 239 38 18413 1 20 124954624
D Linux Swap 18413 1 21 19457 53 52 16775168
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, 87 GB / 81 GiB
*********************************************************************************************
I have checked and still have all my files. How do I undelete the NTFS partitions and get the dual boot to work?
Thanks for any help.
Regards,
Steve Sykes
When running TestDisk I see this:
***********************************************************************************
TestDisk 7.0-WIP, Data Recovery Utility, October 2014
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63
Partition Start End Size in sectors
D HPFS - NTFS 0 32 33 12 223 19 204800
>D HPFS - NTFS 12 223 20 10634 207 5 170641408
D Linux 10634 239 38 18413 1 20 124954624
D Linux Swap 18413 1 21 19457 53 52 16775168
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, 87 GB / 81 GiB
*********************************************************************************************
I have checked and still have all my files. How do I undelete the NTFS partitions and get the dual boot to work?
Thanks for any help.
Regards,
Steve Sykes