LinuxQuestions.org
Review your favorite Linux distribution.
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 07-02-2018, 02:20 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
confusion about file-system type name


Why does 'gparted' use fat32 for the media card file system type and then 'mount' report that the file system is vfat. I know that these names imply the same on-disk structures etc, but why do these utilities use different names?

Thanks in advance,
~~~ 0;-Dan
 
Old 07-02-2018, 03:22 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The filesystem format is fat32. When mounting that filesystem, you can mount it using nothing but the fat32 features, or make use of the long filename extension that vfat provides. Until there is an actual long filename used, there is nothing to distinguish vfat from fat32. Linux typically defaults to mounting with long filenames allowed, i.e. as vfat, so that's what the mount command shows. You can force the filesystem to be mounted without the vfat feature by specifying "-t msdos", and any filenames you try to create there will be truncated to the DOS 8.3 format. The mount command will then report, "type msdos".
 
1 members found this post helpful.
Old 07-02-2018, 03:27 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Is it the file system or win-dose that creates an 8.3 name for long filenames?

Where does exfat fit into all of this?

Thanks, again,
~~~ 0;-Dan
 
Old 07-02-2018, 03:32 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i might be wrong here so ...

Microsoft OWNS the patents on 8.3 long file name conversion that vfat is .

exfat is a work around of those patents

but please double check this
 
1 members found this post helpful.
Old 07-02-2018, 03:44 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by John VV View Post
Microsoft OWNS the patents on 8.3 long file name conversion that vfat is .

exfat is a work around of those patents
What?? exFAT is a Microsoft patented filesystem (US patent numbers 8583708 and 8321439, among others) that allows larger files and filesytems than does fat32 and has optimizations for flash memory devices. It also proprietary. Microsoft has not officially released the full exFAT specification.
 
1 members found this post helpful.
Old 07-07-2018, 07:37 PM   #6
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
Quote:
Originally Posted by John VV View Post
i might be wrong here so ...

Microsoft OWNS the patents on 8.3 long file name conversion that vfat is .

exfat is a work around of those patents

but please double check this






microsoft was well know to


Mod's edit, removed most of post.
Please construct posts that use references to sources.

Last edited by jefro; 07-10-2018 at 03:06 PM. Reason: Not specific to OP's question
 
Old 07-09-2018, 01:15 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
A different sites take on the question is here. https://stackoverflow.com/questions/...2-file-systems
 
Old 07-10-2018, 02:57 PM   #8
yonnieboy
Member
 
Registered: Apr 2008
Location: sw OR
Distribution: PCLOS, Kubuntu, Lubuntu, Unity
Posts: 143

Rep: Reputation: 15
Quote:
Originally Posted by X-LFS-2010 View Post
microsoft was well know to


Mod's edit, removed most of post.
Please construct posts that use references to sources.

When a member posts a phrase such as "please double check this," it means that we need to verify this. It is not an argument point.

What is the point of this post? LinuxQuestions used to be a forum to get helpful answers to questions, users helping users. It is not a forum for promotion of arguments between users. It does not appear that the original question has really been addressed at all.
 
Old 07-10-2018, 03:07 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I edited that in error. The last paragraph was supposed to be my comment.

The original question has not been addressed as far as I know. If members have a better solution please post it.
 
1 members found this post helpful.
Old 07-19-2018, 10:45 AM   #10
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by jefro View Post
I edited that in error. The last paragraph was supposed to be my comment.

The original question has not been addressed as far as I know. If members have a better solution please post it.
Your link to that article has answered some of my related questions about Fat32, VFAT and friends.
Thank you.

However, as you point out, I still don't understand why gparted reports one format while mount reports a different format. This is interesting and confusing given the article's explanation that VFAT and FAT32 are technically different file system designs and implementations.

From the mount man-page:
Code:
       -t, --types fstype
              The argument following the -t is used to indicate  the  filesystem  type.
              The  filesystem types which are currently supported depend on the running
              kernel.  See /proc/filesystems and /lib/modules/$(uname -r)/kernel/fs for
              a  complete  list  of  the  filesystems.  The most common are ext2, ext3,
              ext4, xfs, btrfs, vfat, sysfs, proc, nfs and cifs.
NOTICE -- There is no mention of either FAT or FAT32. Elsewhere in the man-page there is:
Code:
(Note:  fat is not a separate filesystem, but a common part of the msdos, umsdos
       and vfat filesystems.)
In order to find FATxx anything, you need options as part of mounting your filesystem:
Code:
       fat={12|16|32}
              Specify a 12, 16 or 32 bit fat.  This overrides the  automatic  FAT  type
              detection routine.  Use with caution!
... I'm off to play and learn how to default mount as FAT32...

Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 07-19-2018 at 11:34 AM.
 
Old 07-19-2018, 11:28 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
My interpretation is the filesystem type name and driver is called vfat. The driver automatically detects the actual format (unless specified in the mount options) i.e FAT12/16/32 and VFAT. gparted reads the file system magic number as FAT32 since as far as I know there isn't a specific number for VFAT.

Quote:
I'm off to play and learn how to default mount as FAT32..
As the man mount page indicates it does this automatically if you do not specify fat=option

Last edited by michaelk; 07-19-2018 at 12:01 PM.
 
Old 07-19-2018, 08:05 PM   #12
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by SaintDanBert View Post
I still don't understand why gparted reports one format while mount reports a different format. This is interesting and confusing given the article's explanation that VFAT and FAT32 are technically different file system designs and implementations.
They are not different filesystems. VFAT is a method of storing long filenames in a FAT12/16/32 filesystem. When the filesystem is formatted, it is just FAT12/16/32. When Linux mounts such a filesystem, it by default enables the VFAT extensions in the driver, so the mount command shows the mount type as VFAT. You can always force such a filesystem to be mounted as type "msdos". If you do that with a filesystem that already contains long names, you will not see the long names but only the shortened, unique 8.3 names that VFAT also stores for files that have names that violate the 8.3 format.
 
Old 07-19-2018, 08:07 PM   #13
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by michaelk View Post
...
As the man mount page indicates it does this automatically if you do not specify fat=option
When you connect a USB, SD-card or other similar device, "magic happens" ==> then the device appears mounted as ]b]/media/$USER/{identifier}[/b]. Something in this "magic" there is the automatic determination of the fstype to use for the associated mount command.
  • I know which of my devices I formatted as 'fat32'
  • new-from-the-store devices are likely to be some variant of 'msdos'
  • devices from other folks might be who-knows-what ... including 'exfat'
THEREFORE, I need to get into the fey with my rattle and beads to intercept the default automatic processing and set the correct --type value for the device that I actually connected.

Thanks in advance,
~~~ 0;-Dan
 
  


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
File System and Array Confusion munna529 Linux - General 12 04-01-2014 08:44 PM
File System and Storage Array Confusion please help munna529 Linux - Newbie 1 04-01-2014 12:28 PM
changing file system type to another filesystem type,does it effect on data? janakiramulu Ubuntu 1 02-04-2011 01:58 AM
File System confusion hotrodowner Linux - Software 1 07-04-2002 08:23 PM

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

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