LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-25-2024, 12:04 PM   #16
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled

fatmac

When a pendrive has been used as an installation image, to return it to normal usage, you need to write a new partition table to it, usually an MBR*, (could be a GPT*, depending on size), then partition, & add a file system.

* Sorry, but what's that?
 
Old 02-25-2024, 12:11 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Now with gparted
1. Create a new partition table. MBR for a flash drive is fine
2. Create a new partition, select the desired filesystem. If also using the drive with Windows select NTFS, exFAT or FAT32.
3. Click the green check mark to apply all operations.

MBR = Master Boot Record. It organizes partitions on a drive so the system can find them.
GPT = GUID Partition Table. Basically same as for MBR but for drives > 2TB

Last edited by michaelk; 02-25-2024 at 12:14 PM.
 
1 members found this post helpful.
Old 02-25-2024, 12:21 PM   #18
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
DavidMcCann

Mount it, note the id (e.g. /dev/sdc or whatever), unmount, ...


It doesn't mount.
 
Old 02-25-2024, 12:50 PM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,516

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
If you created a new partition table as instructed above, did you create a partition with a filesystem (see post 17)? If not, it won't mount as there is nothing to mount. You need to create a filesystem on it.
 
1 members found this post helpful.
Old 02-26-2024, 12:03 AM   #20
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
I thank you all for your answers to my post.
 
Old 02-26-2024, 03:39 AM   #21
PurpleSquirrel
LQ Newbie
 
Registered: Aug 2021
Location: Here
Distribution: Slackware 2.3 to post-15.0 current
Posts: 23

Rep: Reputation: 15
I think fatmac is on to something:

Quote:
Originally Posted by fatmac View Post
When a pendrive has been used as an installation image, to return it to normal usage, you need to write a new partition table to it, usually an MBR, (could be a GPT, depending on size), then partition, & add a file system.
If you write a DVD image to the flash drive, it gets a ISO9660 file system signature written to it. And ISO9660 is read-only.

I have been using wipefs a lot lately to make good-but-unwriteable USB flash drives writeable again. The command line is "wipefs -a /dev/sdX". It zeroes out the file system signature and a couple of other locations, as described in the man page.

It has failed me on a couple of cheap drives. They got the hammer-and-trash treatment.

If you can still read the data from the last time you used the drive, give wipefs a try.

HTH
 
Old 02-26-2024, 10:47 AM   #22
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by Igor Evgen View Post
DavidMcCann
Mount it, note the id (e.g. /dev/sdc or whatever), unmount, ...

It doesn't mount.
The reason for telling you to mount it was to see where your computer mounts any usb stick. You don't want to dd zeros all over a hard drive! You could mount a usb stick, see where that goes, unmount it and replace with the one you are trying to repair. But if it doesn't actually mount, then it may well be dead.
 
  


Reply

Tags
erasing data, flash drive, usb



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
LXer: Ubuntu Touch OTA-8 Gets Prepared, Lands Next Week With Convergence Features LXer Syndicated Linux News 0 11-12-2015 03:15 AM
How to mount Western Digital External Drive previously used on Windows System? bliss4one MEPIS 7 09-16-2008 05:59 PM
LXer: Wikimedia to Sloan: Thanks a million, thanks a million, thanks a million LXer Syndicated Linux News 0 03-26-2008 02:50 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 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