From owner-freebsd-questions@freebsd.org Wed Apr 11 13:27:20 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 6FC9CF9465F for ; Wed, 11 Apr 2018 13:27:20 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E349175B7C for ; Wed, 11 Apr 2018 13:27:19 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by mail-ot0-x232.google.com with SMTP id a14-v6so1950267otf.6 for ; Wed, 11 Apr 2018 06:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cf64qduouAK2y/kW+N0371swrM8t1e4veZnpmwVkWr8=; b=Jg2RwXzs1hhh6vvi/AeBYeTs+ScrVjOn1fjzKKqd7qgZTFUEivgXTX6sPQI0lqoKsL hpPExPLAlztHx8FsgDAVfYQcF8HFQWrhlLb5/cCoQn9Sbx6wuA24RktYlIchliBn94ox c5HrlCCJxT7N4HrE9altdz91Pwu8UFdeENFBNnYwqBAqG0bgBgLVyP+reNo3D5tAnrm8 xPQa+qyh1ABff+vJ34e9FEbQLXgAx5h3MXF4ak1TDV1FpmSHlG7esUt6NZYYaLtG5Xg5 iDLdgy40vIHeFb03km7wPQEkR4hCWgX69tN9WRc1PlkCVov55XPbxWeDEl2qb0z3q2yr pZww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cf64qduouAK2y/kW+N0371swrM8t1e4veZnpmwVkWr8=; b=shUNV/UWb40DeqHqqqqCtzfNrkn+yQRvs7mtlZYx2/dkaq5ODH1kAXytBPIxQqJvNV fm5D5oMVE/jsUl15cwqEwnlP/Wb2x2Bq2/qRx8dVDqlepawvv07fvtpbakQNWP0Najha v6bFlNpbzFi67Mvj8NmSPXQq2bPHT0j/aqU7H/NcUHWpJdEcWtEOf+L1M7zdBYjy5C1o ST97zINjlMx2LvbhOtcKI5JdLRdEuqo16IFaf7iBld5sxmQX9YrObDggH6aczuVwkLFR CICw18YlkGm+LpCw/g0HamsPadaXfL2rXydxsvDll56/LeCjG3bJeJhnvNNtZUTgA9v7 BV0A== X-Gm-Message-State: ALQs6tCjIIeq5lPVpccsmQ+ywK2Nl1x6aXQMPowFFtrXK5ZbR3Ay3jjI xCMWOUO8Ny/CastREIcW4zy2HtpdvpRijvBBzVV+ig== X-Google-Smtp-Source: AIpwx494SNa0R7vPGZ5rEvCtcLuSGSfXj3AqVY4daZURUmMX/9qMkdD3JchLX0y2pXI99yjjMEM4wSW/mp4lXrN0RIE= X-Received: by 2002:a9d:16f3:: with SMTP id s48-v6mr3229235ots.304.1523453239046; Wed, 11 Apr 2018 06:27:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1a1:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 06:26:38 -0700 (PDT) In-Reply-To: <5ACE0543.7030607@gmail.com> References: <5ACD536C.5010407@gmail.com> <20180411113740.2b245110.freebsd@edvax.de> <5ACE0543.7030607@gmail.com> From: Mehmet Erol Sanliturk Date: Wed, 11 Apr 2018 16:26:38 +0300 Message-ID: Subject: Re: Recover directory tree with files from win10 HD To: Ernie Luzar Cc: Polytropon , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Wed, 11 Apr 2018 13:27:20 -0000 On Wed, Apr 11, 2018 at 3:53 PM, Ernie Luzar wrote: > Polytropon wrote: > >> On Tue, 10 Apr 2018 20:14:36 -0400, Ernie Luzar wrote: >> >>> My mothers win10 pc has external usb 3tb sata drive with 600gb of data >>> that has hardware data problems. It will not mount on win10 pc. >>> >> >> Do not try any further with "Windows", it could do more damage. >> On "Windows 10", they use NTFS or FAT as file systems, and both >> are known to do the "funniest things" when getting into some >> inconsistent state ("silent" data corruption, data loss, no >> access due to damaged hiberfile, etc.). >> >> >> >> My mother has her whole digital life on the external drive. >>> >> >> Just restore from backup! Sorry, couldn'r resist... ;-) >> >> >> >> I can not find any win10 software to recover the data from a drive that >>> will not mount. >>> >> >> First of all, use tools that work with a copy of the damaged >> disk (or partition). Create this 1:1 copy first in a read-only >> manner, then work with the image. Do not try to repair the >> data "on-disk", it will probably destroy more data and reduce >> the chances of getting the "whole digital life" back. >> >> Seriously. I'm not making this up - I learned from my own >> faults. Check the mailing list archives for the terrible >> truth. :-) >> >> Do not use "Windows" any further without knowing _exactly_ >> what the problem is. >> >> >> >> I am thinking about using FreeBSD to recover the directory structure and >>> the files contained in them. Asking anyone if they know of a port that will >>> recover the data with their full file names in their directories? >>> >> >> That depends on the actual damage. This is how you should >> proceed: >> >> 1. Make a 1:1 copy of the disk or partition. Use that copy >> in all further steps. (Two copies are handy, in case you >> mess up one.) >> >> 2. Examine the data. What has happened? Can you use FUSE's >> NTFS mount program to mount it read-only? Can you use >> tools from the ntfs-tools package to repair things like >> the MFT. Or is it a FAT drive? Try mount_msdos instead, >> maybe even fsck_msdosfs. It could be sufficient to copy >> all the data (cp -R). >> >> 3. No luck getting the partition to mount? Assume the data >> is still there. Make yourself familiar with professional >> forensic tools. Start with the easy ones. If they get >> back what you expect to recover, well done. If not, use >> the more complex ones. >> >> On this mailing list, I have published my "famous list of >> data recovery tools" from time to time. Note that in order >> to make use of that list, you'll have to learn (!) about >> lower-level file system design, because you _must_ understand >> what you're doing. >> >> Here is this list. Note that I've added a few comments that >> might help in your specific situation (damaged FAT or NTFS >> drive): >> >> System: >> dd <- for making 1:1 copy >> fsck_ffs >> clri >> fsdb >> fetch -rR >> recoverdisk >> >> Ports: >> ddrescue <- if 1:1 copy is hard >> dd_rescue <- same >> ffs2recov >> magicrescue <- get data back (no structure) >> testdisk >> The Sleuth Kit: >> fls >> dls >> ils >> autopsy >> scan_ffs >> recoverjpeg >> foremost >> photorec >> fatback <- FAT >> ntfs-tools <- NTFS (ntfsfix, ntfsinfo, ntfsmount) >> >> Keep in mind: It will take time. There is no "one size fits >> all" GUI solution where you just click and icon and then have >> all your files (and the directory structure) back. IN worst >> case, what you're searching for has already been overwritten >> by "Windows" attempting to "repair" it. >> >> Your alternative: Take $500-3000 and ship the disk to a >> recovery business. If a "whole digital life" is worth that >> much money, you can give them a change. Note that there is >> absolutely no guarantee that they will succeed. >> >> Good luck! >> >> > > Thank you for your post. > > Lets talk about making a copy to work with. > Question is about unused space. Disk is 3TB with 600GB used. > How do I reduce the working copy size to the data only size of 600GB? > Using the dd command I don't see any way to tell it to ignore coping empty > space. > > Do I need another 3TB disk to hold the working copy? > Do I dd the bad HD to another HD of same size making a complete image copy > resulting in 2 ntfs hard drives? > > Or should I have the dd command create a single flat file of the bad disk > on the target disk? > > _______________________________________________ > > You may try http://www.system-rescue-cd.org/ SystemRescueCd is a Linux *system rescue disk* available as a bootable CD-ROM or USB stick for administrating or repairing your system and data after a crash. This is a Live Cd , without installing it , you can mount supported file system ( there are many including ntfs ) and copy files , etc. from that file system . I think , the most useful tool is this Live CD . It can be used in Linux and Windows computers . My suggestion is to learn how to use it before attempting any repair on the damaged disk . First try to copy files into another disk . http://www.system-rescue-cd.org/Download/ http://www.system-rescue-cd.org/manual/Backup_data_from_an_unbootable_windows_computer/ Backup data from an unbootable windows computer http://www.system-rescue-cd.org/manual/Backup_and_transfer_your_data_using_rsync/ Backup and transfer your data using rsync Thank you very much . Mehmet Erol Sanliturk