Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: 'dd' command is taking more than 3 days to wipe 320GB HDD

  1. #11
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Quote Originally Posted by slooksterpsv View Post
    Are you running dd or sudo dd or are you running dd as root? Without root or acting as root (sudo) it won't do anything as root is needed to fully access the drive. A plain user can only access what permissions it was given to which isn't block level writing.
    Of course I'm using 'sudo', otherwise, it would never be executed on the first place
    If you try 'dd' without 'sudo', it will never work.

    I didn't mention that because I thought it is very obvious and no need to mention that. Sorry if that caused some confusion.

  2. #12
    Join Date
    Sep 2005
    Beans
    1,596
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Not a problem just wanted to work from the basics up. IIRC last time I tried to wipe a drive I had, executing just dd if of without the bs portion didn't work, or it just sat there. I wonder if dd changed to where its now a requirement to specify some block size for an empty device where as dd'ing an iso may take the ISOs layout and lay it out according to that.
    MBA M1 - M1 8GB 256GB - macOS Monterey
    MSI GL65 - i5-10300H 16GB 512GB GTX 1650 Windows 11
    Galaxy Book Go - Snapdragon 7c Gen 2 4GB 128GB Windows 11

  3. #13
    Join Date
    Jan 2014
    Beans
    1

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Greetings,

    you can try following:
    - Open a second terminal and get the Process id of your job.
    - Then use the command:
    Code:
    kill -USR1 <process id>
    to show you information.

    Hope this helps.

  4. #14
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Quote Originally Posted by coffeecat View Post
    I think your 3 days have been wasted already - zeroing a 320GB drive should take hours, not days.

    If you want to start over and get some feedback from the terminal, I'd suggest using shred. There are ways of getting verbose output from dd I believe, but not straightforwardly, whereas shred has a -v option built in. For a single pass writing zeroes, you could do it this way:

    Code:
    sudo shred -vzn 0 /dev/sdX
    Obviously, substitute your actual device for sdX. The Options:

    -v - verbose output - you can actually see whether something is happening.
    -z - add a final overwrite with zeros.
    -n - overwrite N times instead of the default (3). If you make this zero, then you get just the one pass with zeroes.
    Hi,

    I have stopped 'dd', rebooted and now, I am running the command you suggested.

    Let's see if that will make any difference and fix the original issue.

    Thank you!

  5. #15
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    DD will not fix bad sectors, sorry. 1,400 bad sectors is a sign that the drive has failed aand can't be repaired.

    That's why DD would not finish. It was trying to write to disk and being slowed down by the failed writes. Want confirmation? Try DD again, but keep an eye on the output of dmesg. It will spit out a stream of errors.

    The disk is dead. Bin it.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  6. #16
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Quote Originally Posted by amjjawad View Post
    Hi,

    I have stopped 'dd', rebooted and now, I am running the command you suggested.

    Let's see if that will make any difference and fix the original issue.

    Thank you!
    Hi again,

    It is over now, how can I check the HDD whether it has bad sector still or it is fine now? of course, after using 'shred', new partition table must be created and that is done. But I didn't create any partition yet, just a partition table.

    What is the 'best' way to check the HDD now?

    If we got a confirmation from the next test that the HDD is still failure, I will tell my neighbour so he will consider to replace the HDD.

  7. #17
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Okay, I guess I found the answer for my own Q.

    I am trying to install Lubuntu 13.10 from the same LiveUSB I was using and it is stuck now on "creating ext4 file system..."

    I guess I have no other choice but to tell my neighbour the bad news

    Sorry, not trying to insist or anything but is there any any chance at all to fix the bad sectors?

  8. #18
    Join Date
    Sep 2005
    Beans
    1,596
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    You should be able to run badblocks to have it search for an mark bad blocks on the disk.

    Another recommendation is to download and install gparted, run it and partition the drives manually instead of the installer changing the partition scheme.
    MBA M1 - M1 8GB 256GB - macOS Monterey
    MSI GL65 - i5-10300H 16GB 512GB GTX 1650 Windows 11
    Galaxy Book Go - Snapdragon 7c Gen 2 4GB 128GB Windows 11

  9. #19
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Quote Originally Posted by 3rdalbum View Post
    DD will not fix bad sectors, sorry. 1,400 bad sectors is a sign that the drive has failed aand can't be repaired.

    That's why DD would not finish. It was trying to write to disk and being slowed down by the failed writes. Want confirmation? Try DD again, but keep an eye on the output of dmesg. It will spit out a stream of errors.

    The disk is dead. Bin it.
    Quote Originally Posted by amjjawad View Post
    .......... is there any any chance at all to fix the bad sectors?
    HDD manufacturer's have their own tools to fix bad sectors, but most of these tools are Windows dependent.
    So you can check the HDD manufacturer's webpage for such tools and try them from Windows PC.

    But seriously, 1,400 bad sectors is not good.

    Good Luck.
    "Evolution is Nature's way of issuing upgrades."


  10. #20
    Join Date
    Oct 2009
    Location
    Sydney
    Beans
    4,301
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: 'dd' command is taking more than 3 days to wipe 320GB HDD

    Quote Originally Posted by slooksterpsv View Post
    You should be able to run badblocks to have it search for an mark bad blocks on the disk.
    I had to give up so I shall try this one, let's see if that will make any difference
    Thanks for positing!

    Another recommendation is to download and install gparted, run it and partition the drives manually instead of the installer changing the partition scheme.
    I don't think that will fix the bad sectors/blocks. The problem is not to install or not, the current problem is to whether be able to fix the bad sectors or not.

    Thank you!

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •