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.
  • S Offline
    S Offline
    swampwiz
    wrote on last edited by
    #1

    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:

    S K N S G 9 Replies 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:

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #2

      I have never heard of the term "shred" in regards to the partitioning process. This is a first.

      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:

        K Offline
        K Offline
        k5054
        wrote on last edited by
        #3

        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 P S 4 Replies 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
          Slacker007
          wrote on last edited by
          #4

          How to use the shred command by The Linux Information Project (LINFO)[^] Shred seems dangerous to me. I did not read the whole article. I have partitioned many Windows workstations, etc. and never needed "shred". Is this a non-Windows command/feature for partitioning?

          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

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

            Ohhh... nooo... zeroes and random ain't good enough... :omg: Secure Deletion of Data from Magnetic and Solid-State Memory[^]

            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:

              N Offline
              N Offline
              Nelek
              wrote on last edited by
              #6

              Don't complicate yourself... Data Removal: Darik's Boot and Nuke - DBAN[^] Pretty easy to use and you can go from normal to paranoic level of deletion.

              M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

              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:

                S Offline
                S Offline
                steveb
                wrote on last edited by
                #7

                If you formatted the drive - it is clean. What shred refers to is to deletion. Deleted files and folders are not actually removed. Deletion does not destroy the data itself. It only flips the flag in a file table that this particular data sector is no longer needed and can be overwritten should the drive volume get low. If the drive volume never gets low then the data which is not overwritten remains there perpetually and can be recovered. Byte 0 in FAT table: value 0x00 = unallocated and 0xE5 = deleted

                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:

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

                  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 D 2 Replies 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;

                    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
                                          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