From owner-freebsd-questions@freebsd.org Sat Apr 14 16:10:39 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3191FF8599F for ; Sat, 14 Apr 2018 16:10:39 +0000 (UTC) (envelope-from a199e59c87e914e7b5fdb9459865d66e@zxas.fi) Received: from box.zxas.fi (box.zxas.fi [185.87.108.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA0047F6E0 for ; Sat, 14 Apr 2018 16:10:38 +0000 (UTC) (envelope-from a199e59c87e914e7b5fdb9459865d66e@zxas.fi) Received: from authenticated-user (box.zxas.fi [185.87.108.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by box.zxas.fi (Postfix) with ESMTPSA id 73FA31E356 for ; Sat, 14 Apr 2018 19:03:20 +0300 (EEST) Received: from authenticated-user (box.zxas.fi [185.87.108.237]) by zero.my.domain (Postfix) with ESMTP id D30A033C39 for ; Sat, 14 Apr 2018 19:03:17 +0300 (EEST) Received: from authenticated-user (box.zxas.fi [185.87.108.237]) by thunderbolt.my.domain (8.15.2/8.15.2) with ESMTPS id w3EG3G6x053079 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 14 Apr 2018 19:03:16 +0300 (EEST) (envelope-from ejk@thunderbolt.my.domain) Received: from authenticated-user (box.zxas.fi [185.87.108.237]) by thunderbolt.my.domain (8.15.2/8.15.2/Submit) id w3EG3FdS053078 for freebsd-questions@freebsd.org; Sat, 14 Apr 2018 19:03:15 +0300 (EEST) (envelope-from ejk) Date: Sat, 14 Apr 2018 19:03:15 +0300 From: Esa Karkkainen To: freebsd-questions@freebsd.org Subject: Re: Recover directory tree with files from win10 HD Message-ID: <20180414160315.GB12481@pp.htv.fi> Mail-Followup-To: Esa Karkkainen , freebsd-questions@freebsd.org References: <5ACD536C.5010407@gmail.com> <20180411113740.2b245110.freebsd@edvax.de> <5AD21478.4030102@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5AD21478.4030102@gmail.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 16:10:39 -0000 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