How do I copy entire directories

Using PhotoRec to recover lost data
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
jcardozo
Posts: 1
Joined: 04 Feb 2016, 03:54

How do I copy entire directories

#1 Post by jcardozo »

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
User avatar
cgrenier
Site Admin
Posts: 5437
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: How do I copy entire directories

#2 Post by cgrenier »

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

Code: Select all

grub2-install /dev/sda
Locked