LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2020, 01:20 PM   #1
Tossu
LQ Newbie
 
Registered: Jul 2020
Location: Helsinki
Distribution: Mint 20
Posts: 3

Rep: Reputation: Disabled
Unhappy Stuck with a USB stick


Hi,

I got my USB stick completely messed up. Somehow it looks like it have 3 different partitions. I can’t format, delete, or modify it in any way - at least that I know of! (GParted, USB memory stick format dont do anything and I've tried a variety of options from the terminal - which I have found some instructions online (dd, mkfs, fdisk)) Nothing....

Code:
# sudo lsblk -f

sdb
├─sdb1 iso9660 Linux Mint 20 Cinnamon 64-bit 2020-06-24-19-01-47-00 0 100% / media / mika / Linux Mint 20 Cinnamon 64-bit
├─sdb2 vfat 1AC3-20ED 7.7M 935433269457888000% / media / mika / 1AC3-20ED
└─sdb3 ext4 writable b8425d1c-7d1c-4ee5-bfd5-f398d3d86c83 53G 0% / media / Mika / writable
So ... (how) can I fix it to make it work again?

Thank's
 
Old 07-25-2020, 02:30 PM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,011
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
Tossu,

Code:
sudo su
fdisk -l
Next, unmount the device:

Code:
umount /dev/sdb1
umount /dev/sdb2
umount /dev/sdb3
Next, format device to FAT32:

Code:
mkdosfs -F 32 -I /dev/sdb
 
Old 07-25-2020, 02:36 PM   #3
Tossu
LQ Newbie
 
Registered: Jul 2020
Location: Helsinki
Distribution: Mint 20
Posts: 3

Original Poster
Rep: Reputation: Disabled
root@LIFEBOOK-NH570:/home/mika# umount /dev/sdb1
root@LIFEBOOK-NH570:/home/mika# umount /dev/sdb2
root@LIFEBOOK-NH570:/home/mika# umount /dev/sdb3
root@LIFEBOOK-NH570:/home/mika# mkdosfs -F 32 -I /dev/sdb
mkfs.fat 4.1 (2017-01-24)
mkdosfs: Too few blocks for viable filesystem
 
Old 07-25-2020, 02:42 PM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,011
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
Tossu,

Try installing dcfldd and then test if the drive is faulty.

See post #6:
https://www.linuxquestions.org/quest...dd-4175666671/
 
Old 07-25-2020, 02:58 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,813

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
I would either zero out the MBR or create a new partition table, partition and format that as FAT 32.
 
Old 07-25-2020, 03:05 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,158
Blog Entries: 6

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
If you are sure that /dev/sdb is your usb drive.
Code:
dd if=/dev/zero of=/dev/sdb bs=2M count=1
Then see what fdisk -l says about the drive.

Edit:
Then when you get that back to all free space, tell how you tried to write that Mint .iso to drive.

Last edited by teckk; 07-25-2020 at 03:07 PM.
 
1 members found this post helpful.
Old 07-25-2020, 05:00 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ This. "Nuke" it.

I sometimes get a message in Gparted that "the partition table has been modified but the kernel is still using the old ones" or some such. I never quite understand whether that has any effect, but sometimes a reboot can help.
 
Old 07-26-2020, 04:19 AM   #8
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,532

Rep: Reputation: Disabled
You appear to have 'image written' an .iso file to it - effectively it is now a CD/DVD.

You need to give it a new MBR first, then repartition it, & finally put a new file system onto it.

My program of choice to do this is fdisk, see its man page if you are not familiar with it.
 
Old 07-26-2020, 09:23 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,154

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
Been there, done that! fatmac (#8) has the explanation and teckk (#6) the solution. Gparted will then format it, which it won't do if it looks like a DVD.
 
Old 07-26-2020, 02:19 PM   #10
Golf4Fun
Member
 
Registered: Jan 2009
Posts: 34

Rep: Reputation: 2
Gparted has an option in the menu at the top under Device - Create Partition Table. Select msdos

Just be sure Gparted is pointing to the correct device
 
Old 07-30-2020, 06:57 PM   #11
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
you could try Gnome Disks from a live Ubuntu USB drive.
 
Old 07-30-2020, 07:43 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Didn't Gparted report why it can't do what you asked?

If all else fails then you have to consider buying a new drive. Flash drives have a terrible MTBF in reality.
 
  


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] Slackware64 14.2 USB stick boot stuck at "Welcome to GRUB!" and a cursor replikvlt Slackware - Installation 13 08-15-2020 11:18 AM
Installing LinuxMint13 on Dell Mini1012 from USB Stick - Stuck NightSky Linux Mint 6 10-18-2015 04:44 PM
Hauppauge wintv-hvr h006 - dvb-t tuner - usb-stick - hybrid tv stick Xeratul Linux - Hardware 5 12-23-2012 09:47 AM
LXer: Installing "Sugar on a stick" (Strawberry Release) On A USB Stick LXer Syndicated Linux News 0 08-04-2009 03:50 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 PM.

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