Results 1 to 7 of 7

Thread: Erasing all data on failing hard drive, KDE

  1. #1

    Default Erasing all data on failing hard drive, KDE

    How do set up a hard-drive to do low-level format? Erase(zeros) or randomize all data on the whole hard drive. It will attempt to overwrite even bad sectors or else skip them. I usually use the dvd 'gparted'. I'm somewhat familiar with Yast-Partition Editor.

    What is the best method? GUI or Command Line.

    Application from yast?


    Assume, a new hard drive formatted with 'opensuse leap 15' running. The old hard drive connected to an extra port on the motherboard.

    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    25,000
    Blog Entries
    15

    Default Re: Erasing all data on failing hard drive, KDE

    On Thu 01 Nov 2018 01:06:03 AM CDT, lord valarian wrote:


    How do set up a hard-drive to do low-level format? Erase(zeros) or
    randomize all data on the whole hard drive. It will attempt to overwrite
    even bad sectors or else skip them. I usually use the dvd 'gparted'. I'm
    somewhat familiar with Yast-Partition Editor.

    What is the best method? GUI or Command Line.

    Application from yast?


    Assume, a new hard drive formatted with 'opensuse leap 15' running. The
    old hard drive connected to an extra port on the motherboard.

    Thanks.


    Hi
    A failing hard drive... I give to my son to dismantle for the
    magnets, then safety glasses and a hammer, or his BB gun

    Would look at the HDD manufacturers website, normally they have tools
    and/or bootable iso images.

    Could use dd and /dev/zero from the command line until it finishes...

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.22-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  3. #3
    Join Date
    Jun 2009
    Location
    Mangfall, Germany
    Posts
    1,480

    Default Re: Erasing all data on failing hard drive, KDE

    In some HDDs the disks are glass and easily shatter. Older ones are metal and with a vice anh hammer....

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    23,786

    Default Re: Erasing all data on failing hard drive, KDE

    Partitions tools do, as an extension to the real partitioning, often also the creation of file systems. This file system creation (writing superblock and inodes, etc) is from the Microsoft PC heritage often called "formatting".

    Formatting, the writing of tracks, blocks and alternative tracks for those on bad sports, is from the Microsoft PC heritage often called "low level formatting".

    IMHO the confusion comes from the fact that on floppy disks both formatting and file system creation was done in one action.

    Thus to the OP: when you want to (lowlevel) format your disk, neither gparted, nor YaST > Partitioner, not even fdisk/gdisk will help you. Nor will dd.

    As suggested above, the manufacturer may have something, but as suggested also, destroying the hardware (for security/privacy) and acquiring a new one might be the best.

    When you only want to destroy the data on the used tracks, then
    Code:
    man shred
    but read the text for the caveats.
    Last edited by hcvv; 01-Nov-2018 at 04:39.
    Henk van Velden

  5. #5
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    528

    Default Re: Erasing all data on failing hard drive, KDE

    Quote Originally Posted by lord_valarian View Post
    How do set up a hard-drive to do low-level format? Erase(zeros) or randomize all data on the whole hard drive. It will attempt to overwrite even bad sectors or else skip them. I usually use the dvd 'gparted'. I'm somewhat familiar with Yast-Partition Editor.

    What is the best method? GUI or Command Line.

    Application from yast?


    Assume, a new hard drive formatted with 'opensuse leap 15' running. The old hard drive connected to an extra port on the motherboard.

    Thanks.
    See: https://wiki.archlinux.org/index.php/Securely_wipe_disk
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  6. #6

    Default Re: Erasing all data on failing hard drive, KDE

    Quote Originally Posted by malcolmlewis View Post
    Hi
    A failing hard drive... I give to my son to dismantle for the
    magnets, then safety glasses and a hammer, or his BB gun

    Would look at the HDD manufacturers website, normally they have tools
    and/or bootable iso images.

    Could use dd and /dev/zero from the command line until it finishes...

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.22-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!
    I thought about the "hard" way. I would to donate it somewhere, But, it maybe too far gone for even that.

    https://askubuntu.com/questions/2530...-of-hard-drive

    Using fdisk -l, find out which drive you want to wipe. I shall assume that you want to wipe /dev/sda

    Now, run
    Code:
      dd if=/dev/zero of=/dev/sda
    
    dd if=/dev/urandom of=/dev/sda
    That will wipe the hard drive.
    #1: zero out all sectors on the hard drive overwriting partitions as well and mbr?
    #2: random data

    Right?


    https://www.linuxquestions.org/quest...ux-4175588118/


    Code:
    dd of=/dev/zero if=/dev/sda2 bs=1024

    https://www.linuxquestions.org/quest...-linux-839193/


    I'm pretty sure dd does the trick.

    Code:
    dd if=/dev/zero of=/dev/sdX
    Where sdX is sd[a-z].

    Alternatively you could scramble the hard drive and then format it to zero.

    Code:
    dd if=/dev/random of=/dev/sdX

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    18,751
    Blog Entries
    14

    Default Re: Erasing all data on failing hard drive, KDE

    How would we know what these commands result in with your specific hard drive?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Tags for this Thread

Posting Permissions

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