LinuxQuestions.org
Help answer threads with 0 replies.
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 10-01-2020, 09:13 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Special formatting tools for SD cards & flash drives???


I was looking at the web site of a vendor from whom I have purchased these solid state storage devices in the past. I need to order some more for backup/archive purposes. While there I found a bloc post "Are you formatting your SD Cards?" which recommended a special formatting tool from sdcard.org. Of course it is only available on Windoze and Mac. It is supposed to make the card perform better by optimizing the format.

I searched for info on formatting these devices on Linux and found a lot of pages explaining how to use the normal Linux formatting tools. I generally use gnome disk utility and create an encrypted file system formatted as ext4.

man mkfs.ext4 shows a range of options which can be varied such as cluster size, reserved block percentage, number of inodes etc. However, I do not find any guidance based on the species of the storage device. Years ago one would worry about aligning sectors and cylinders etc. for mechanical drives. I do not believe there are such concerns for solid state devices.

The question is... Are special considerations, options, parameters etc. required to "properly" format SD cards (or flash drives)?

TIA,

Ken
 
Old 10-01-2020, 09:26 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I "think" there is a Linux native flash file system. I have never used it so someone else can comment - maybe do a google search on that.
 
Old 10-01-2020, 10:03 AM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
AFAIK there is no special formatting needed for flash drives. Linux does have options to change certain parts of the format, but I have never felt the need to even try anything other than the default ext4 criteria. Also, as purchased, most of the flash drives actually have a vfat format. Although many people change them to match the native format of their systems whether that is ntfs, hfs, ext4, or whatever, many also leave them with the vfat format.

Another consideration is that the makers almost always try to optimize performance in the internal controller of the device and changing the formatting always has a chance of interfering with performance.
 
Old 10-01-2020, 10:09 AM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
This is what I was thinking of: https://en.wikipedia.org/wiki/F2FS

I have seen posts here before on this and it was recommended but I have never used it as I have no flash storage.
 
Old 10-01-2020, 12:07 PM   #5
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Using f2fs on flash drives can be problematic, because that filesystem is not recognized by anything other than Linux. For instance, a drive formatted as f2fs is not recognized by my scanner/printer. It only knows about FAT filesystems. I do have an always-mounted SD card that holds system backups formatted as f2fs, and that seems to work well. A general-purpose flash drive that will be connected to multiple devices isn't a good candidate, however. Horses for courses, and all that. Also, anyone selling something wants customers to believe that their product is better than any others, whether it is or not. Caveat emptor.
 
Old 10-01-2020, 12:28 PM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Ah ok, makes sense - I don't own nor user flash drives so wasn't sure - just offered that as a suggestion because I have seen one or two threads here suggesting it.
 
Old 10-01-2020, 06:56 PM   #7
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks folks. I have a vague recollection of using some sort of special program MANY years ago. No doubt with some version of Windows. I have never had an issue formatting with Linux except when the device is defective or bogus. I purchased a 64 GB Sandisk microSD card on evilbay a couple of years back. It would not format. Sandisk tech support had me send them a picture of the device and they declared it a knockoff. How I don't know. I did not have a macro lens and there was not much detail in the pic. evilbay gave me a refund and kicked the seller off the site.

I am playing with gnome disk utility and a 16 GB flash drive. Custom Format has an option for "F2FS - Flash Storage Linux Filesystem" but it is greyed out. Perhaps it is not supported on CentOS 7? If I get motivated I may try from the command line

Thanks again,

Ken

p.s. Update - I found a package f2fs-tools and installed it. gnome disk utility now offers to format f2fs. However, it fails to mount the device and tells me "Filesystem type f2fs not configured in the kernel." I do not think I will go any further down this road.

Last edited by taylorkh; 10-01-2020 at 07:04 PM. Reason: typo
 
Old 10-01-2020, 08:05 PM   #8
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
From what little I know, f2fs was designed for use on phones, not USB flash drives. It hasn't been widely adopted even on phones, however, and only a few makes and models use it. I'm using it mostly as a test, out of curiosity.
 
Old 10-01-2020, 08:15 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,017

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I got a program from Lexar for windows that fixed a CF card one time. Doubt any of that stuff is used today.
 
  


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
Formatting Flash drives / thumb drives lawrence_lee_lee Linux - Software 3 06-12-2008 02:28 AM
FLASH FLASH XP Home and Samba Fix FLASH FLASH zollodav Linux - Networking 1 02-19-2006 01:16 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
formatting multimedia cards, flash cards bigearsbilly Linux - Hardware 0 03-10-2004 08:52 AM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

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

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