(Solved)How to wipe a USB drive? (2024)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.

Locked

  • Print view

12 posts• Page 1 of 1

Alvin
Level 5
(Solved)How to wipe a USB drive? (1)
Posts: 653
Joined: Wed Feb 13, 2019 8:33 am
Location: Florida
Contact:

Contact Alvin

(Solved)How to wipe a USB drive?

Postby Alvin »

How does one wipe a USB drive ?

I am returning a USB drive that is too slow to the store. I erased files, but I also wish to wipe the drive for security reasons. How in Linux Mint 19.1 do I accomplish that on my desktop?

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Top

GELvdH
Level 6
(Solved)How to wipe a USB drive? (3)
Posts: 1005
Joined: Tue Jan 08, 2019 10:10 am
Location: 3rd rock from Sun

Re: How to wipe a USB drive?

Postby GELvdH »

I don't know about 19.1 but on LM 20.2 you go to USB Stick Formatter. Maybe you could upgrade to 20.2.

Top

Alvin
Level 5
(Solved)How to wipe a USB drive? (4)
Posts: 653
Joined: Wed Feb 13, 2019 8:33 am
Location: Florida
Contact:

Contact Alvin

Re: How to wipe a USB drive?

Postby Alvin »

Linux Mint 19.1 does provide for the formatting of USB drives, as I should expect all OSs do. Formatting may be better than simply deleting files on the drive, but what I mean by wiping is the re-writing of the space containing data with 10101.... or other filler.

Top

Pierre
Level 21
(Solved)How to wipe a USB drive? (6)
Posts: 13390
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How to wipe a USB drive?

Postby Pierre »

the LinuxMint System does indeed have an USB Stick Formatter . .

that should be, in most cases, secure enough.
(Solved)How to wipe a USB drive? (7)

(Solved)How to wipe a USB drive? (8)
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

Top

Alvin
Level 5
(Solved)How to wipe a USB drive? (9)
Posts: 653
Joined: Wed Feb 13, 2019 8:33 am
Location: Florida
Contact:

Contact Alvin

Re: How to wipe a USB drive?

Postby Alvin »

We don't seem to get past the difference between formatting and wiping a USB (or a HDD, for that matter). I have described what I mean by wiping above. That formatting "should be enough" is your judgment, which may be good for your purposes, fine! It is not what I want to do. I want to secure the data on my USB by writing on it, as I have described. That is what I believe most people call wiping.

If someone knows how to wipe a drive in Linux Mint 19.1, be it a USB or other storage device, please let me know.

When I receive an answer to the question I have raised in my subject, I shall be most happy to mark this subject "Solved".

Top

HaveaMint
Level 6
(Solved)How to wipe a USB drive? (10)
Posts: 1084
Joined: Fri Feb 02, 2018 9:56 pm

Re: How to wipe a USB drive?

Postby HaveaMint »

Alvin wrote: Sat Dec 25, 2021 12:44 amIf someone knows how to wipe a drive in Linux Mint 19.1, be it a USB or other storage device, please let me know.

Maybe this will do for you
https://askubuntu.com/questions/142858/ ... ut-a-drive

"Tune for maximum Smoke and then read the Instructions".

Top

Maxwell-J
Level 4
(Solved)How to wipe a USB drive? (12)
Posts: 424
Joined: Fri Nov 12, 2021 6:10 pm

Re: How to wipe a USB drive?

Postby Maxwell-J »

this did the trick on a 16GB Stick just now (Solved)How to wipe a USB drive? (13)

make sure you get the /dev/sdX right

sudo dd if=/dev/urandom of=/dev/sdb bs=1M
dd: error writing '/dev/sdb': No space left on device
14773+0 records in
14772+0 records out
15489564672 bytes (15 GB, 14 GiB) copied, 1973.25 s, 7.8 MB/s

Top

Jo-con-Ël
Level 11
(Solved)How to wipe a USB drive? (15)
Posts: 3978
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: How to wipe a USB drive?

Postby Jo-con-Ël »

You can do it in the graphical way with DIsks (Menu>Accessories>Disks). Choose USB device on the left and click on icon with three points up on the right>Format Disk...

Then choose Overwrite data with zeroes on Erase menu.

You can repeat this operation if you want.

Notice USB results with no partitions at all. You will need to create it after wiping. Click on add (+) icon downside.

Arrieritos semos y en el camino nos encontraremos.

Top

OunceofCommonSense
Level 5
(Solved)How to wipe a USB drive? (18)
Posts: 711
Joined: Mon Oct 01, 2012 3:52 pm

Re: How to wipe a USB drive?

Postby OunceofCommonSense »

You could try the second procedure here https://linuxhint.com/wipe_usb_drive_sd_card_ubuntu/ may take awhile depending on size of the USB stick. Happy Holidays!

MB: Gigabyte model: B650M AORUS ELITE AX Memory: Corsair Low Profile Vengeance 32.00 GB. CPU Ryzen7600x Platform: x86_64 Distribution: Linux Mint 22.0

Top

SimonPeter
Level 5
(Solved)How to wipe a USB drive? (19)
Posts: 579
Joined: Tue Jul 13, 2021 5:13 am

Re: How to wipe a USB drive?

Postby SimonPeter »

Alvin wrote: Fri Dec 24, 2021 8:14 pmHow does one wipe a USB drive ?

I am returning a USB drive that is too slow to the store. I erased files, but I also wish to wipe the drive for security reasons. How in Linux Mint 19.1 do I accomplish that on my desktop?

TL; DR for advanced users, just run sudo shred -n1 -v /dev/sdX ; sudo sync
replacing /dev/sdX with the disk to wipe (be careful to select the right disk) and -n1 with the required number of wipes.
shred(1) is part of GNU coreutils and uses a properly seeded ISAAC Cryptographically Secure PseudoRandom Number Generator (CSPRNG) for the random wipe passes.

For non-advanced users, follow these:

1) List the disks' on your system with this command:

Code: Select all

sudo lsblk --nodeps -o NAME,MODEL,SERIAL,VENDOR

Carefully note the NAME of the device you want to wipe.

2) Now, unmount all partitions on it and wipe the disk by running these commands, replacing DISK_TO_WIPE=sdX with the appropriate disk name.

Code: Select all

DISK_TO_WIPE=sdXlsblk -o NAME,MOUNTPOINT /dev/${DISK_TO_WIPE} | grep "/$" && echo "Please select the right disk. Press Enter to exit....." && read && exit 1sudo umount /dev/${DISK_TO_WIPE}*sudo shred -n1 -v /dev/${DISK_TO_WIPE}sudo syncsudo dd if=/dev/zero of=/dev/${DISK_TO_WIPE} bs=4M count=25

NOTE: Be VERY CAREFUL with the DEVICE NAME , so that you do not accidentally wipe important data.

Top

Pierre
Level 21
(Solved)How to wipe a USB drive? (21)
Posts: 13390
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How to wipe a USB drive?

Postby Pierre »

if you simply Format the usb stick,
or better still, Erase the partition & then Re-create the partition,
& then Format the usb stick .. using the above GUI method,
- - any attempt to Reverse that .. will be above the Pay Grade of most users - -
(Solved)How to wipe a USB drive? (22)

(Solved)How to wipe a USB drive? (23)
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

Top

Jymm
Level 4
(Solved)How to wipe a USB drive? (25)
Posts: 270
Joined: Sat Oct 09, 2021 6:03 pm
Location: USA

Re: How to wipe a USB drive?

Postby Jymm »

I agree Pierre, And all flash drives have limited rewrites, writing zeros to many times will lessen the life of the USB drive.

Top

Locked

  • Print view

12 posts• Page 1 of 1

Jump to

  • Important Notices
  • Main Edition Support
  • ↳ Beginner Questions
  • ↳ Hardware Support
  • ↳ Storage
  • ↳ Sound
  • ↳ Networking
  • ↳ Virtual Machines
  • ↳ Cinnamon
  • ↳ MATE
  • ↳ Xfce
  • ↳ Other topics
  • ↳ Non-technical Questions
  • ↳ Tutorials
  • Debian Edition Support
  • ↳ LMDE Forums
  • ↳ Beginner Questions
  • ↳ Hardware Support
  • ↳ Networking
  • ↳ Tutorials
  • ↳ LMDE Archive
  • Interests
  • ↳ Gaming
  • ↳ Cinnamon on Wayland
  • Customization
  • ↳ Screenshots
  • ↳ Your Artwork
  • Chat
  • ↳ Introduce Yourself
  • ↳ Chat about Linux Mint
  • ↳ Chat about Linux
  • ↳ Open Chat
  • ↳ Forums Feedback
  • International
  • ↳ Translations
  • ↳ Deutsch - German
  • ↳ Español - Spanish
  • ↳ Français - French
  • ↳ Italiano - Italian
  • ↳ Nederlands - Dutch
  • ↳ Português - Portuguese
  • ↳ Русский - Russian
  • ↳ Suomi - Finnish
  • ↳ Other Languages
  • ↳ Čeština-Slovenčina - Czech-Slovak
  • ↳ Magyar - Hungarian
  • ↳ 日本語 - Japanese
  • ↳ Polski - Polish
  • ↳ Svenska - Swedish
  • ↳ Українська - Ukrainian
(Solved)How to wipe a USB drive? (2024)
Top Articles
Vanguard Dividend Appreciation ETF (VIG) Stock Forecast, Price Targets & Predictions - TipRanks.com
Less than Half of Americans Can Afford a $1,000 Emergency Expense
Frases para un bendecido domingo: llena tu día con palabras de gratitud y esperanza - Blogfrases
News - Rachel Stevens at RachelStevens.com
Frank Lloyd Wright, born 150 years ago, still fascinates
The Daily News Leader from Staunton, Virginia
Wfin Local News
Rainfall Map Oklahoma
Tiraj Bòlèt Florida Soir
Cooktopcove Com
Teenleaks Discord
"Une héroïne" : les funérailles de Rebecca Cheptegei, athlète olympique immolée par son compagnon | TF1 INFO
Spectrum Field Tech Salary
The Ultimate Style Guide To Casual Dress Code For Women
Puretalkusa.com/Amac
Der Megatrend Urbanisierung
Conan Exiles: Nahrung und Trinken finden und herstellen
Hobby Stores Near Me Now
The Blind Showtimes Near Amc Merchants Crossing 16
Sussur Bloom locations and uses in Baldur's Gate 3
C&T Wok Menu - Morrisville, NC Restaurant
Craigslist Lake Charles
His Only Son Showtimes Near Marquee Cinemas - Wakefield 12
Restored Republic
Askhistorians Book List
Dl.high Stakes Sweeps Download
5 Star Rated Nail Salons Near Me
Nurtsug
Pdx Weather Noaa
Wisconsin Volleyball Team Leaked Uncovered
Emiri's Adventures
Grandstand 13 Fenway
Autopsy, Grave Rating, and Corpse Guide in Graveyard Keeper
Rocksteady Steakhouse Menu
Graphic Look Inside Jeffrey Dresser
Kaiju Paradise Crafting Recipes
Imperialism Flocabulary Quiz Answers
Aveda Caramel Toner Formula
Pinellas Fire Active Calls
What Does Code 898 Mean On Irs Transcript
Tyler Perry Marriage Counselor Play 123Movies
Ferguson Showroom West Chester Pa
Sour OG is a chill recreational strain -- just have healthy snacks nearby (cannabis review)
Tyco Forums
Dying Light Mother's Day Roof
A Man Called Otto Showtimes Near Cinemark Greeley Mall
Suppress Spell Damage Poe
Lira Galore Age, Wikipedia, Height, Husband, Boyfriend, Family, Biography, Net Worth
Bob Wright Yukon Accident
Ark Silica Pearls Gfi
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5674

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.