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