Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
My USB flash drive will not format
I have a USB flash drive that is buggered up, so I've been trying to format it to reset it. I've tried to do this with various command-line commands and also with GParted and Gnome Disks Utility. It takes forever and then fails (or everything freezes). Has anyone else had issues like this?
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Okay, just tried the following:
Code:
root@debian:/home/mark# umount /dev/sdb1
umount: /dev/sdb1: not mounted
root@debian:/home/mark# dd if=/dev/zero of=/dev/sdb bs=512 count=1
1+0 records in
1+0 records out
512 bytes copied, 192.225 s, 0.0 kB/s
root@debian:/home/mark#
I found that code via the duckduckgo search engine. I'm hoping it will make the disk more amenable to the other formatting and reset options that I previously tried. So, I'll now reattempt it with GParted.
GParted is taking forever to start. It says, "searching /dev/sdb partitions" with the annoying Pong-like paddle on the bottom going back and forth. Hmm. Now GParted is blank. I should have tried the command line options first. Well, guess I'll wait a bit more. Htop indicates that GParted is still working on starting (which really is a bit pathetic, but oh well). [edited to add..] Well, GParted just died.
Last edited by mark_alfred; 11-11-2018 at 09:47 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.