Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How to shred hard drive using GParted

How to shred hard drive using GParted

Scheduled Pinned Locked Moved The Lounge
tutorial
24 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Gary R Wheeler

    Since no one else has brought it up, I'll mention SDelete[^], part of the SysInternals suite of utilities. It can be used to do a "Secure Delete" with a variety of options. Obligatory old fart war story: Back in the early 1980's I was the system manager on several VAX/VMS systems at our local Air Force base. I went to a seminar on how to securely decommission magnetic media. At the time, most hard drives used 300MB disk packs[^]. The decommission procedure went something like this: 1. Use operating system commands to delete all data from pack. 2. Dismount and then remount pack (ensures no data is cached in drive). 3. Write pattern of 0x00's, then 0xFF's, then random bytes so all addressable sectors on drive. 4. Repeat step #3 several times (I think they wanted at least 8 cycles). 5. Dismount pack from drive. 6. Disassemble pack so that individual platter surfaces are accessible. 7. Sand-blast platter surfaces, removing all recording material. 8. Crush platter. Most of us thought steps 5 through 8 were a tad... extreme. Dropping a pack from a height of a couple feet was usually enough to render it unusable.

    Software Zen: delete this;

    J Offline
    J Offline
    jeron1
    wrote on last edited by
    #9

    Gary R. Wheeler wrote:

    Most of us thought steps 5 through 8 were a tad... extreme

    Gary R. Wheeler wrote:

    7. Sand-blast platter surfaces, removing all recording material. 8. Crush platter.

    Sounds therapeutic. :)

    "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

    1 Reply Last reply
    0
    • G Gary R Wheeler

      Since no one else has brought it up, I'll mention SDelete[^], part of the SysInternals suite of utilities. It can be used to do a "Secure Delete" with a variety of options. Obligatory old fart war story: Back in the early 1980's I was the system manager on several VAX/VMS systems at our local Air Force base. I went to a seminar on how to securely decommission magnetic media. At the time, most hard drives used 300MB disk packs[^]. The decommission procedure went something like this: 1. Use operating system commands to delete all data from pack. 2. Dismount and then remount pack (ensures no data is cached in drive). 3. Write pattern of 0x00's, then 0xFF's, then random bytes so all addressable sectors on drive. 4. Repeat step #3 several times (I think they wanted at least 8 cycles). 5. Dismount pack from drive. 6. Disassemble pack so that individual platter surfaces are accessible. 7. Sand-blast platter surfaces, removing all recording material. 8. Crush platter. Most of us thought steps 5 through 8 were a tad... extreme. Dropping a pack from a height of a couple feet was usually enough to render it unusable.

      Software Zen: delete this;

      D Offline
      D Offline
      dandy72
      wrote on last edited by
      #10

      If you're gonna go through steps 6-8, then the previous steps seem rather pointless to me...

      P G 2 Replies Last reply
      0
      • D dandy72

        If you're gonna go through steps 6-8, then the previous steps seem rather pointless to me...

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #11

        Thermite. Done.

        G 1 Reply Last reply
        0
        • P PIEBALDconsult

          Thermite. Done.

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #12

          You've been hanging around with JSOP, haven't you? :-D

          Software Zen: delete this;

          1 Reply Last reply
          0
          • D dandy72

            If you're gonna go through steps 6-8, then the previous steps seem rather pointless to me...

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #13

            As I recall, the explanation for it was to have multiple methods of decommissioning applied so that failures or omissions in any of the methods would be covered by the rest. Also, steps 1-5 were performed on the hardware where the pack was used. The final steps were actually performed by a single office on the base who had the tools and sand-blasting equipment. Supposedly they also did random spot checks on submitted media to ensure that the first steps were being performed. This was actually quite a concern, because in some cases it took a lot of time or special setup on the machine to do the wiping. People didn't like the time spent, or the machine being down, for something that seemed unnecessary. This was back during the Cold War, and espionage was a genuine concern at our base which ran a lot of R&D programs.

            Software Zen: delete this;

            1 Reply Last reply
            0
            • S swampwiz

              I've done a repartition and format, but I understand that I should shred it as well. When I tried the command "shred", it said it didn't understand the command. :confused:

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #14

              TMNT, you are not.

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

              1 Reply Last reply
              0
              • S swampwiz

                I've done a repartition and format, but I understand that I should shred it as well. When I tried the command "shred", it said it didn't understand the command. :confused:

                B Offline
                B Offline
                BillWoodruff
                wrote on last edited by
                #15

                To activate "Shred," you must first play any Metallica track at such high volume the neighbors call the cops. The doppler shifting pitch of the sirens will start "Shred."

                «The mind is not a vessel to be filled but a fire to be kindled» Plutarch

                1 Reply Last reply
                0
                • S swampwiz

                  I've done a repartition and format, but I understand that I should shred it as well. When I tried the command "shred", it said it didn't understand the command. :confused:

                  C Offline
                  C Offline
                  Clumpco
                  wrote on last edited by
                  #16

                  The only shredder you will ever trust [^]

                  So old that I did my first coding in octal via switches on a DEC PDP 8

                  B G 2 Replies Last reply
                  0
                  • C Clumpco

                    The only shredder you will ever trust [^]

                    So old that I did my first coding in octal via switches on a DEC PDP 8

                    B Offline
                    B Offline
                    BryanFazekas
                    wrote on last edited by
                    #17

                    This one is prettier for the office environment: Whitaker Hard Drive Cross Cut Shredder[^]

                    C 1 Reply Last reply
                    0
                    • C Clumpco

                      The only shredder you will ever trust [^]

                      So old that I did my first coding in octal via switches on a DEC PDP 8

                      G Offline
                      G Offline
                      Gary R Wheeler
                      wrote on last edited by
                      #18

                      This is a candidate for a gimmick in an episode of CSI: Crime Scene Investigation[^]. Our intrepid investigators discover that vital data was on a hard drive that's been shredded, along with dozens of other drives. Fortunately the perp didn't empty the shredder output hopper. They recover the fragments, extract the platter bits (probably using a magnet :rolleyes: ), sort the bits into the correct platters and reassemble them. Then they find appropriate drive hardware in the CSI IT department's morgue (cue egregious pun in the dialogue), load up the drive, and discover an 8x16 pixel photo of said perpetrator. Click Enhance a few times, and you now have a high-resolution picture of the bad guy.

                      Software Zen: delete this;

                      C 1 Reply Last reply
                      0
                      • G Gary R Wheeler

                        This is a candidate for a gimmick in an episode of CSI: Crime Scene Investigation[^]. Our intrepid investigators discover that vital data was on a hard drive that's been shredded, along with dozens of other drives. Fortunately the perp didn't empty the shredder output hopper. They recover the fragments, extract the platter bits (probably using a magnet :rolleyes: ), sort the bits into the correct platters and reassemble them. Then they find appropriate drive hardware in the CSI IT department's morgue (cue egregious pun in the dialogue), load up the drive, and discover an 8x16 pixel photo of said perpetrator. Click Enhance a few times, and you now have a high-resolution picture of the bad guy.

                        Software Zen: delete this;

                        C Offline
                        C Offline
                        Clumpco
                        wrote on last edited by
                        #19

                        FOL - Falling over laughing

                        So old that I did my first coding in octal via switches on a DEC PDP 8

                        G 1 Reply Last reply
                        0
                        • B BryanFazekas

                          This one is prettier for the office environment: Whitaker Hard Drive Cross Cut Shredder[^]

                          C Offline
                          C Offline
                          Clumpco
                          wrote on last edited by
                          #20

                          I saw that... thinking of getting one for our house waste disposal as it's such a bargain.

                          So old that I did my first coding in octal via switches on a DEC PDP 8

                          1 Reply Last reply
                          0
                          • K k5054

                            AFAIK, gparted does not have a shred option. There is a shred command available from the command line and you should be able to do

                            sudo shred -v /dev/sdX

                            . That will erase the whole drive. I've not tried it but I expect that shed -v /dev/sdXP would erase partition P. Check the docs on that. Note that this will erase the formatting, so you'll have to recreate the file system(s) for any partitions you shred. If you don't have shred installed, or can't install it for some reason, then you can use dd

                            dd if=/dev/zero of=/dev/sdX bs=4M

                            will overwrite the harddrive with all zeros. You might also use if=/dev/urandom, to write random-ish data over the drive before formatting.

                            Keep Calm and Carry On

                            S Offline
                            S Offline
                            swampwiz
                            wrote on last edited by
                            #21

                            The system will be given to charity, so I don't care what condition the hard drive is in. :)

                            1 Reply Last reply
                            0
                            • K k5054

                              AFAIK, gparted does not have a shred option. There is a shred command available from the command line and you should be able to do

                              sudo shred -v /dev/sdX

                              . That will erase the whole drive. I've not tried it but I expect that shed -v /dev/sdXP would erase partition P. Check the docs on that. Note that this will erase the formatting, so you'll have to recreate the file system(s) for any partitions you shred. If you don't have shred installed, or can't install it for some reason, then you can use dd

                              dd if=/dev/zero of=/dev/sdX bs=4M

                              will overwrite the harddrive with all zeros. You might also use if=/dev/urandom, to write random-ish data over the drive before formatting.

                              Keep Calm and Carry On

                              S Offline
                              S Offline
                              swampwiz
                              wrote on last edited by
                              #22

                              I did: if=/dev/urandom and the console window started printing random characters.

                              1 Reply Last reply
                              0
                              • S swampwiz

                                I've done a repartition and format, but I understand that I should shred it as well. When I tried the command "shred", it said it didn't understand the command. :confused:

                                C Offline
                                C Offline
                                Cp Coder
                                wrote on last edited by
                                #23

                                My preferred way to clean a disk: Connect the disk to computer. Open an elevated command prompt. Type Diskpart In Diskpart type list disk. Disks attached will be numbered 0, 1, 2, 3 to whatever. Make a CAREFUL note of the number of the disk to be cleaned. Do not choose the wrong disk! Type select disk n, where n is the number of the disk to be cleaned. Type clean all. Every sector on the disk will be set to zero, destroying all data on the disk and clearing all partitions. Afterwards, type convert mbr or convert gpt, depending whether you want an mbr or gpt disk. Now you can start creating partitions and formatting them. WARNING: Diskpart has no mercy. It has no "Are you sure?" prompts. Every command is immediately executed with no hesitation. Google Diskpart for a complete list of available commands.

                                Get me coffee and no one gets hurt!

                                1 Reply Last reply
                                0
                                • C Clumpco

                                  FOL - Falling over laughing

                                  So old that I did my first coding in octal via switches on a DEC PDP 8

                                  G Offline
                                  G Offline
                                  Gary R Wheeler
                                  wrote on last edited by
                                  #24

                                  Did I mention the original 8x16 photo was monochrome, and the enhanced final photo in vibrant color?

                                  Software Zen: delete this;

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups