How do I copy entire directories

Using PhotoRec to recover lost data
Post Reply
Message
Author
jcardozo
Posts: 1
Joined: 04 Feb 2016, 03:54

How do I copy entire directories

#1 Post by jcardozo » 04 Feb 2016, 05:13

I have two laptops with dual-boot - win7 and ubuntu 10.04
I was able to successfully upgrade pc1 from win7 to win10 without any problem
testdisk gives me the following screen:
Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Current partition structure:
Partition Start End Size in sectors

1 P Windows RE(store) 0 32 33 1827 181 18 29360128
2 * HPFS - NTFS 1827 181 19 1840 117 5 204800
3 P HPFS - NTFS 1840 117 6 33105 179 10 502276136
4 E extended 33105 211 1 60801 80 15 444928002
5 L Linux 33105 211 3 59673 122 33 426809344
X extended 59673 122 34 60801 80 15 18118656
6 L Linux Swap 59673 155 3 60801 80 15 18116608

But when I upgraded win7 to win10 on pc2, I lost my grub and could not access my linux partition.
when i run testdisk, i get the following output which shows that the extended partition is not recognized.
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Partition Start End Size in sectors
D HPFS - NTFS 0 32 33 44 190 18 716800
D HPFS - NTFS 44 190 19 47488 58 58 762179584
D HPFS - NTFS 47488 58 59 47545 119 62 919552
>D Linux 47545 152 32 120571 76 17 1173157888
D Linux Swap 120571 76 18 121601 57 56 16545792
I want to copy the files from this partition to an external USB drive.
But when I try to copy some of the files/directories in this Linux partition (using P:), most of the files do not get copied.

If I run gparted, it shows up as an unallocated partition.

Should I have to restore my grub bootloader so that it can see the linux partition?
Can you please advise?
Thanks guys,
Jack

Sponsored links

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

Re: How do I copy entire directories

#2 Post by cgrenier » 04 Feb 2016, 09:15

To reinstall grub, boot from your Linux distribution dvd and run

Code: Select all

grub2-install /dev/sda

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests