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 - 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, 07:42 AM   #1
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Rep: Reputation: Disabled
Question I cannot erase USB flash-drive. Previously it was prepared & used as ubuntu-22 installation disk. Please help. Thanks


I cannot erase USB flash-drive. Previously it was prepared & used as ubuntu-22 installation disk. Please help. Thanks

Last edited by Igor Evgen; 02-25-2024 at 07:45 AM. Reason: editing the thread name
 
Old 02-25-2024, 07:49 AM   #2
PurpleSquirrel
LQ Newbie
 
Registered: Aug 2021
Location: Here
Distribution: Slackware 2.3 to post-15.0 current
Posts: 23

Rep: Reputation: 15
Hello Igor. What have you tried already?
 
1 members found this post helpful.
Old 02-25-2024, 07:52 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Use gparted to create a new partition table, a new partition and select the desired filesystem.
 
1 members found this post helpful.
Old 02-25-2024, 08:02 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 927

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
When flash disk ignores write requests and retains old data it is an indication that it has failed and is giving you the last chance to copy your files.
 
1 members found this post helpful.
Old 02-25-2024, 08:09 AM   #5
PurpleSquirrel
LQ Newbie
 
Registered: Aug 2021
Location: Here
Distribution: Slackware 2.3 to post-15.0 current
Posts: 23

Rep: Reputation: 15
I have run into the same problem a time or two. I've been using wipefs lately to get rid of the filesystem signatures before I do anything else, especially if I installed from the memory stick.

I'm going to have to try gparted next time. Sounds like a solid suggestion.
 
1 members found this post helpful.
Old 02-25-2024, 08:10 AM   #6
PurpleSquirrel
LQ Newbie
 
Registered: Aug 2021
Location: Here
Distribution: Slackware 2.3 to post-15.0 current
Posts: 23

Rep: Reputation: 15
Quote:
Originally Posted by lvm_ View Post
When flash disk ignores write requests and retains old data it is an indication that it has failed and is giving you the last chance to copy your files.
I've seen that too.
 
Old 02-25-2024, 11:26 AM   #7
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
There are two possibilities. It might be failing but it may just be that its iso formating makes it look like an external optical drive and what could alter that?

Mount it, note the id (e.g. /dev/sdc or whatever), unmount, and use this
Code:
dd if=/dev/zero bs=1M count=10 of=/dev/sdc
Then format it with gparted.
 
1 members found this post helpful.
Old 02-25-2024, 11:33 AM   #8
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by PurpleSquirrel View Post
Hello Igor. What have you tried already?
I tried several ways posted on Internet, in particular, using g-parted. Failed.
 
Old 02-25-2024, 11:36 AM   #9
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
Terminal printed: Permission denied
 
Old 02-25-2024, 11:43 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Quote:
Originally Posted by Igor Evgen View Post
Terminal printed: Permission denied
If you are trying to use dd as posted above then you need to use sudo

sudo dd if=/dev/zero bs=1M count=10 of=/dev/sdx

Please verify the correct device ID.
 
1 members found this post helpful.
Old 02-25-2024, 11:43 AM   #11
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
#2
PurpleSquirrel

I tried g-parted

and

https://www.techrepublic.com/article...owing-it-away/
 
Old 02-25-2024, 11:47 AM   #12
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
DavidMcCann

I -- not a pro -- tried that way. Failed.
 
Old 02-25-2024, 11:49 AM   #13
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
michaelk

Thank you. Especially for the last quotation.

Regretfully, it cannot help to purge my flash-jack.
 
Old 02-25-2024, 11:51 AM   #14
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,493

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 02-25-2024, 11:54 AM   #15
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 30

Original Poster
Rep: Reputation: Disabled
michaelk

Terminal answered:
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0065166 s, 1.6 GB/s

So?
 
  


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 03:14 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