Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2018 19:03:15 +0300
From:      Esa Karkkainen <freebsd.lists@zxas.fi>
To:        freebsd-questions@freebsd.org
Subject:   Re: Recover directory tree with files from win10 HD
Message-ID:  <20180414160315.GB12481@pp.htv.fi>
In-Reply-To: <5AD21478.4030102@gmail.com>
References:  <5ACD536C.5010407@gmail.com> <20180411113740.2b245110.freebsd@edvax.de> <5AD21478.4030102@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, Apr 14, 2018 at 10:47:20AM -0400, Ernie Luzar wrote:
> Are there any tools that I can use to repair these problems without 
> loosing the user data?

IIRC I've used sysutils/testdisk, contents of pkg-descr file copied
below, and I was able to scan a hard disk so I could recreate the
partiton table.

---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
Tool to check and undelete partition
Works with the following partitions:
- FAT12 FAT16 FAT32
- Linux EXT2/EXT3
- Linux SWAP (version 1 and 2)
- NTFS (Windows NT/W2K/XP)
- BeFS (BeOS)
- UFS (BSD)
- Netware
- ReiserFS

TestDisk is under GNU Public License.
You can compile it under Dos with DJGPP or under Linux or BSD with gcc.

WWW: http://www.cgsecurity.org/
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---

Going though other "sysutils" ports, the sysutils/safecopy might be
another option, pkg-descr file content is copied below.

---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
Safecopy is a data recovery tool which tries to extract as much data as 
possible from a problematic (i.e. damaged sectors) source - like floppy drives,
hard disk partitions, CDs, tape devices etc, ... , where other tools like dd 
would fail due to I/O errors.
Safecopy includes a low level IO layer to read CDROM disks in raw mode, and 
issue device resets and other helpful low level operations on a number of other
device classes.
The project also includes a device simulator which can be used to simulate bad 
media for testing and benchmarking safecopy as well as other data rescue tools. 

WWW: http://safecopy.sourceforge.net/
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---

Few commands I used to find what sysutils ports might be useful:

% cd /usr/ports/sysutils
% grep -li disk */pkg-descr|xargs grep -li partition
% grep -li data */pkg-descr|xargs grep -li recovery

The "grep -li disk */pkg-descr" will list all pkg-descr files that have
"disk" in the files, search is case insensive, for example files
containing either disk or dIsk are the listed.
The part after the pipe character does the same exept its looking for
partition, so in the end you'll get list of sysutils ports that have
pkg-descr files that have disk and partition inside.

This cuts down list of possibly useful ports from 1362 to just 22 :)

Regards,

Esa

-- 
"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move."
        -- Douglas Adams 1952 - 2001



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180414160315.GB12481>