Installer Encountered An Error Copying Files To The Hard Disk

  1. The Installer Encountered An Error Copying Files To The Hard Disk Linux Mint
  2. Installer Encountered An Error Copying Files To The Hard Disk
  3. Installer Encountered An Error Copying Files To The Hard Disk Windows 10
  4. The Installer Encountered An Error Copying Files To The Hard Disk Errno 30
  5. Installer Encountered An Error Copying Files To The Hard Disk Drive
Active1 year, 4 months ago

If 'file or directory is corrupted and unreadable' error emerges, try the solutions in this post to deal with the unreadable partition and minimize the loss. The parameter is incorrect copying files in Windows 10. In the event of FAT32 partition and 4GB file limitation, you can either compress the file to make it smaller than 4GB, or convert FAT32 to NTFS in Disk Management. As for the insufficient disk space, think of changing a bigger drive for the files.

I have a partially corrupted HD that can not be repaired by Disk Utility, but which can be mounted read-only making the data on it accessible.

I am trying to copy all the recoverable contents onto a spare HD, but every method I try fails when an error is encountered - leaving the remaining files uncopied.

Finder - Fails.SuperDuper - Fails.Ditto (terminal command) - Fails.

I was hoping that Ditto would do the trick, the Ditto man page says:

ditto returns 0 if everything is copied, otherwise non-zero. ditto almost never gives up, preferring to report errors along the way. Diagnostic messages will be printed to standard error.

I have submitted a bug to Apple re ditto failing to perform as advertised.

Any other ideas?

radvenradven
8072 gold badges11 silver badges17 bronze badges

8 Answers

I use cp -Rfv sourcefile destinationfile with success on a pretty regular basis.

cp = copy

R = maintains file hierarchies

f = if an existing destination file cannot be opened, remove it and try again

v = verbose mode, displays files transferred as it progresses

sourcefile = data you want to copy

destinationfile = directory/drive you want to copy to

Mr RabbitMr Rabbit
12k3 gold badges28 silver badges38 bronze badges

Try Gnu ddrescue -- it's a data recovery program that does block-based copying with corrupt data recovery during the copy operations. You can get it for OS X if you're using Homebrew by typing in an Terminal window:

A guide on arstechnica describes how to rescue a failed disk using ddrescue. Make sure you read through the guide, as it contains helpful information. Here is a gist on how to get there.

  • Locate the drive using diskutil list. The identifier column is what you are looking for:

  • Unmount the disk in question:

  • Start a rescue operation of the disk into an image. Make sure the location of Rescue.dmg is replaced with your desired location.

  • Recover the image onto a new drive:

Be advised to also read the manual of ddrescue to educate yourself on the available options by running man ddrescue.

Overbryd
3701 gold badge3 silver badges11 bronze badges
Copying
user76335user76335

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

I like using rsync in order to copy files from a corrupted source to a functional destination:

Where:

-a = 'archive mode' = recurses into directories, copies symlinks as symlinks, preserves permissions, times, groups and special files, also preserves owner (when owner = root) and devices (when owner = root)

-u = skips the file in source if its corresponding copy in destination is newer

-v = verbose output

Installer encountered an error copying files to the hard disk

--delete = files in destination that do not exist on source will be deleted

--ignore-errors = deletes a file/directory in case of I/O error during the copy process

Yuri SucupiraYuri Sucupira

This Macworld hint suggests using dd to make a bit-by-bit copy (ignoring errors) then mounting the resultant image in Finder to recover your files. I've not tried it, but it sounds like it might work.

binarybobbinarybob
8,0072 gold badges33 silver badges40 bronze badges

You might consider using the dd command to perform a block-by-block copy from your corrupt HDD to your new HDD.

The Installer Encountered An Error Copying Files To The Hard Disk Linux Mint

Assuming your new-HDD (/dev/disk2) is of equal or greater size than your corrupt-HDD (/dev/disk1), then you can issue:

Installer Encountered An Error Copying Files To The Hard Disk

blocksized @ 4k, don't truncate any data blocks, ignore all errors

To find the device names, run mount from Terminal first.

nohillsideThe installer encountered an error copying files to the hard disk linux mint
56.7k14 gold badges119 silver badges167 bronze badges
BiltuBiltu

The ditto command should work, I would use ditto in conjunction with the -v option for verbose so you can see exactly what gives you an error of what it copies.

Jawa
2,2675 gold badges17 silver badges25 bronze badges
RogerRoger

You might try running SuperDuper and ignoring the files with io errors, if it's only a few and you use the smart update feature that's a pretty effective way to get most of the data off. (I think the dd command would be preferable if you can do that).

Steps:

Installer Encountered An Error Copying Files To The Hard Disk Windows 10

  1. Select 'backup all files' as the backup strategy
  2. In options select 'smart update' (otherwise this process will take a ridiculously long time if you have more than one or two errors, you'll need the paid version for this)
  3. Run the copy
  4. When the copy fails read the logs to find which file failed to copy, then hit ok/close to get back to the 'start' screen
  5. Select 'edit selected copy script' from the using dropdown
  6. Under Script commands add the file which failed to copy, it should say 'ignore' once it's added to the list of files
  7. Save your script with some name (e.g. ignore-corrupted-files)
  8. Select your script and repeat steps 3-7 as many times as necessary to ignore all corrupted files.

The Installer Encountered An Error Copying Files To The Hard Disk Errno 30

cwohlmancwohlman

If your drive is still accessible, and you can see the files hirrarchy, but just the copy process stop because of errors, you can use the Unstoppable Copier program.

ofir_aghaiofir_aghai

You must log in to answer this question.

Installer Encountered An Error Copying Files To The Hard Disk Drive

Not the answer you're looking for? Browse other questions tagged file-transfercopy-pastedata-recovery .