LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-11-2018, 08:08 AM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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?

Commands I've tried (it's located at sdb):
Code:
mkdosfs -F 32 -I /dev/sdb1
mkfs.vfat /dev/sdb1
mkfs.ntfs /dev/sdb1
Often it tells me, "Error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0)"

Anyone know of a solution to this?

[later] I've determined there is no solution. The USB stick is broken and nothing will work.

Last edited by mark_alfred; 11-11-2018 at 07:51 PM.
 
Old 11-11-2018, 08:57 AM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 11-11-2018, 09:57 AM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Well, I rebooted. So, subsequent attempt:
Code:
mark@debian:~$ su
Password: 
root@debian:/home/mark# umount /dev/sdb1
umount: /dev/sdb1: not mounted
root@debian:/home/mark# mkfs.vfat /dev/sdb1
mkfs.fat 4.1 (2017-01-24)
Well, see if this works. But I doubt it. It's likely time to toss this USB stick.
 
Old 11-11-2018, 03:29 PM   #4
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
The code above failed. I found a new site with more thorough directions:
https://askubuntu.com/questions/1858...m-a-thumbdrive
So, I'll see if it works. If not, the USB stick gets tossed.

[later] Bah, the stick is broken. Nothing will work.

Last edited by mark_alfred; 11-11-2018 at 07:50 PM.
 
Old 11-13-2018, 02:47 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
" Bah, the stick is broken. Nothing will work."
Bummer.

Thanks for the update and solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need to format USB flash drive under OpenBSD hifi100 *BSD 14 10-09-2018 12:03 PM
How to format a USB flash drive Randy Skaman Linux - Hardware 1 10-18-2009 02:24 PM
Can't format USB flash drive, write protection krisbitner Linux - Hardware 5 02-07-2007 03:18 PM
How to format a usb flash drive eypros Linux - Software 4 04-19-2006 01:06 PM
How to format a USB flash drive? Erik_the_Red Linux - Hardware 4 08-29-2005 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration