LinuxQuestions.org
Help answer threads with 0 replies.
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 05-14-2015, 01:28 AM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,037

Rep: Reputation: 176Reputation: 176
Does "deleting" a flash drive wear the flash drive out faster than "formatting" it?


Everybody says if there's data on a flashdrive format it (don't delete it). (But if there's a bootable distro on there, then delete it. Btw I don't understand why.) But I don't see why you don't just always delete because then you can create partitions just the way you want to, whereas if you format you have to format the whole thing.

Does deleting wear out the flash drive faster than formatting?
 
Old 05-14-2015, 01:57 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,223

Rep: Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953Reputation: 7953
I think deleting means removing files one by one, that will take much longer time (than just reformatting it) and also it means more writings. But reformatting/repartitioning will destroy the boot information, therefore you will not be able to boot it any more.
 
1 members found this post helpful.
Old 05-14-2015, 02:03 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,562

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
It depends on the file system. From distant memory FAT deletes files by replacing the first character of the filename in the directory with a null character (which makes undelete nice and easy!) but other file systems your mileage may vary. Flash memory does wear out but in practical terms you're more likely to replace the media first rather than run in to serious problems with normal usage.
 
1 members found this post helpful.
Old 05-14-2015, 04:38 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,750

Rep: Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317Reputation: 6317
In a nutshell formatting creates the file system structure but does not clear or zero the remaining space on the partition.

If you created a bootable USB to install an operating then typically it overwrites the Master Boot Record and so will appear that you have lost space. Most boot images are only 1-2GB or so. The only way to "recover" the rest of the space once the new operating system is installed would be to zeroize the MBR and create a new partition table.

In either case your not deleting any data just how to access it. Your not wearing it out faster.

Last edited by michaelk; 05-14-2015 at 04:51 AM.
 
1 members found this post helpful.
Old 05-14-2015, 03:09 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Just use it. It will become obsolete before it wears out more than likely.
 
1 members found this post helpful.
Old 05-14-2015, 04:04 PM   #6
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by TenTenths View Post
It depends on the file system. From distant memory FAT deletes files by replacing the first character of the filename in the directory with a null character (which makes undelete nice and easy!) but other file systems your mileage may vary. Flash memory does wear out but in practical terms you're more likely to replace the media first rather than run in to serious problems with normal usage.
What deleting on FAT filesystems does is remove the reference to the file from the FAT (file allocation table). The file is actually still there totally intact.

The main reason to format the drive is because of charge leakage on flash media. If you don't format the drive in a long time it may become corrupted. I have noticed this especially on cheaper drives.
 
1 members found this post helpful.
Old 05-15-2015, 01:01 AM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,037

Original Poster
Rep: Reputation: 176Reputation: 176
Okay. Thanks very much everyone. Seems there's not all that much difference between the two (in terms of how long the flash drive lasts anyway). I mean, I realize there is a definite difference, but I'm more interested in the usage factor anyway. Appreciate it.
 
Old 05-15-2015, 03:16 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Thanks for the update and solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] "unmount volume" or "eject volume" to safely remove a flash drive? Gregg Bell Linux - Newbie 15 04-30-2014 03:02 PM
[SOLVED] Need to recover data from flash drive, seen as "sdb", testdisk doesn't see it. Help? slacker_ Linux - Hardware 15 02-08-2014 05:14 AM
"LILO - Timestamp mismatch" with bootable USB flash drive Skaperen Slackware 7 07-14-2011 09:13 AM
Installing Debian from USB flash drive - Cannot mount "CD-ROM" Jinouchi Linux - Software 1 07-29-2010 10:52 AM
Cant do "mount/umount" on USB flash drive as regular user Salgeras Slackware 5 11-01-2007 08:09 PM

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

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