thanks for the info, will try to compile on std-4.31.jemimah wrote:The filesize of testdisk and photorec is much smaller if you build from source rather than using the static binaries. I just built it on Puppeee with no problems.
aragon
thanks for the info, will try to compile on std-4.31.jemimah wrote:The filesize of testdisk and photorec is much smaller if you build from source rather than using the static binaries. I just built it on Puppeee with no problems.
Hi Chrome307,chrome307 wrote:Hi Aragon
Are you still maintaining this useful application?
If so, there is a Beta version available:
Test Disk 6.12-WIP ( October 2010 )
There are versions available on their website:
http://www.cgsecurity.org/wiki/TestDisk_Download
Linux, kernel 2.6.x i386/x86_64
Linux, kernel 2.4.x i386/x86_64
I'm using Puppy Linux 4.31, so kernel 2.6x would be great.
I'm not sure I understand this PATH stuff. I'm guessing that if I copy the extracted files into /bin, they will work from a console window that I open by using the ` key in the directory where I want to use them. Do I have that correct?aragon wrote:...if you want to test the 6.12 beta, it's not diffcult. download the precompiled package and extract it. there should be a subdir called linux, where you will find the precompiled binaries
- photorec_static
- testdisk_static
if you copy those to your PATH, you're done.
aragon
Am I right in guessing that those are all the places the console looks when trying to find a command I enter?# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin:/opt/samba/bin
#
So then, at Jemimah's suggestion, I tried Testdisk to see if the partition table was damaged and could be repaired.#gparted
----------------
libparted: 2.3
----------------
/dev/sda contains GPT signatures, indicating it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted by a program that does not understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table?
D HPFS-NTFS 0 1 1 7147 254 63 114832557 [System Reserved]
D HPFS-NTFS 0 32 33 12 223 19 204800 [System Reserved]
D HPFS-NTFS 12 223 20 19457 21 20 312371200 [System Reserved]
D HPFS-NTFS 510 0 1 5609 254 63 81931500 [System Reserved]
D HPFS-NTFS 5610 0 1 19456 254 63 222452055 [System Reserved]
D FAT32 LBA 7148 0 1 13428 254 14 100904216 [TEST]
D FAT32 LBA 13429 0 1 19456 254 43 96839800 [DOS]
WDYT?TestDisk 6.11, Data Recovery Utility, April 2009
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
P EFI System 40 409639 409600 [EFI]
P MS Data 1935760 1941933 6174 [Boot]
P MS Data 1941952 1948125 6174 [Boot]
P MS Data 7049011 7069749 20739 [NO NAME]
P MS Data 24826744 24832917 6174 [Boot]
P MS Data 25031536 25037709 6174 [Boot]
P MS Data 26508043 26528781 20739 [NO NAME]
P MS Data 29633384 29639557 6174 [Boot]
P MS Data 90124649 172056148 81931500
P MS Data 215736885 312576684 96839800 [DOS]
Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
P=Primary D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
Enter: to continue
FAT32, 209 MB / 200 MiB
Code: Select all
dd if=/dev/sda of=/root/sectors bs=512 count=63
Code: Select all
dd if=/dev/sda of=/mnt/sdb1/original-disk
"Sectors" is not a text file.# fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 19458 156185600 7 HPFS/NTFS
Hmmm this looks normal. So we need to look at the next few sectors to see why gparted choked on them.edoc wrote:Code: Select all
# fdisk -l /dev/sda Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 13 102400 7 HPFS/NTFS Partition 1 does not end on cylinder boundary. /dev/sda2 13 19458 156185600 7 HPFS/NTFS
Open terminal, do this in /root:"Sectors" is not a text file.
How to I handle that, please?
Code: Select all
gzip -9 sectors
Code: Select all
gdisk -l /dev/sda