osx - Why is Disk Utility / diskutil taking so long to zero out data?

08
2014-07
  • John Bachir

    I've tried with Disk Utility.app and diskutil at the commandline to zero out a 3TB external USB hard drive, and both work at about 1%/1hr. In Disk Utility.app I am using the 1-pass mode, and with diskutil I am using 1-pass, random.

    I'm on Mavericks/10.9.

  • Answers
  • ultrasawblade

    3TB external USB hard drive

    There's your answer. 3TB is a lot of space.

    I'm sure your 3TB disk is a spinning disk, that can effectively only sustain writes of about 60MBytes/sec (maybe recent drives are a little faster but any caching, etc. won't help you with a simple all-LBA random write).

    It may go faster with being directly connected as suggested by @LeeHarrison.

  • Frank Thomas

    yes, writing random data across a 3tb volume will take a very long time. it generally takes about 8 hours per TB for formatting (not quick formatting), and that doesn't involve the extra overhead of having the CPU generate random data for each bit before its written. 1%/hour does seem a little slow, but I would still expect the job to take two days or so. the USB is probably whats really slowing you down, since the random generation has to cross every bus and bridge between the removable disk and the cpu.

  • Hennes

    3TB is a lot of data and USB is both relative slow and has a lot of overhead.

    Assuming you have USB 2 and a reasonably good performance of 30-35MB/sec. (this is about the max write speed for USB 2)

      30 MB / sec  
     100 MB per 3 seconds  
    2000 MB per 60 seconds
      2GB per min 
    120GB per hour, or 25 hours for 3 TB.
    

    That is a long time. And speeds can differ somewhat. In your case it seems four times as slow. Decidedly not fast, but well within reasonably speeds. Especially if there are other USB devices busy on the same USB controller.

    There are at least three ways to deal with this:

    1. Wait a long time.
    2. Use a faster bus to the disk (e.g. an eSATA enclosure. Or mount the disk internally)
    3. Do not send any data to the drive to wipe it. Instead tell the drive to wipe itself. Useful for this: DBAN and secure erase.

  • Related Question

    dvd - Input/output error using Mac Disk Utility?
  • CT.

    I began trying to backup my dvd collection to an external hard drive. I do this my making disk images(.iso) from the dvds. To do this I use disk utility > new image > save as dvd/cd master. Started with some Battlestar Galactica. First 6 disks of season 1 went fine. Next 3 disks of season 2 went fine. First disk of season 2.5 I get an input/output error about 75% through the process. Any ideas?


  • Related Answers
  • calvin123

    I think the issue is with your disk. If you have access to a spin doctor I would suggest that.

    Since your trying to get it as an iso, MacTheRipper and Handbrake will not do this. You could try http://www.xilisoft.com/dvd-copy-mac.html .

    You could also dd from the comand line. But this may be what disk utility already uses to create cd/dvd master copies. Just google this for syntax.

  • jweede

    This could be a problem with the drive, or (more likely) a problem with the DVD. Perhaps there's a scratch on it, or maybe just a smudge. It's tough to say.

    If you copy the files directly, you can still play it with VLC.

    Also Disk Utility is not your only choice for backing up DVDs. I will point to MactheRipper or Handbrake for other options.