LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2007, 02:20 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Unhappy make vfat filesystem, no mkfs.vfat


Hello!

I am running Slackware Linux 11.0. I need to format a partition with vfat filesystem. I googled a little and found out that the command I need to issue is:

mkfs.vfat -c -F 32 /dev/hda2

Unfortunately mkfs.vfat does not come with Slackware 11.0.Could you please tell me where I can download it from or possibly if there is some alternative way to do that?

Thank you very much for your attention.

Regards,
Martin
 
Old 01-21-2007, 02:26 PM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Hi

The command you are looking for is
Code:
mkdosfs -F 32 /dev/xxx
Samac
 
1 members found this post helpful.
Old 01-21-2007, 02:26 PM   #3
James Miller
LQ Newbie
 
Registered: Jan 2007
Distribution: Slack
Posts: 3

Rep: Reputation: 1
You have to use mkdosfs:

mkdosfs -F 32 /dev/hdxx

Don't know what the -c is doing but it should be usable with mkdosfs too


I'm not sure but I thnik mkfs.vfat is just a link to mkdosfs and slackware just doesn't have the link. Is that correct?
 
1 members found this post helpful.
Old 01-21-2007, 03:00 PM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
I don't know whether mkdosfs is a symlink to mkfs.vfat, but mkdosfs worked! Thank you very much
 
Old 01-21-2007, 03:12 PM   #5
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
I get the impression from the Wiki and by the fact that Microsoft has recently patented both FAT32 and VFAT (to the consternation of embedded device manufacturers) that the two are distinct. I get the impression that vfat has the distinguishing feature that it allows long filenames.

Alas the mkdosfs file system does not discuss the issue; I get the impression that the long filenames are an add-on to an otherwise standard FAT system, thus DOS users can delete a FAT file and all will work fine in the DOS world until Win comes along, knows about long filenames, and then gets confused because theer is a long filename still stored but the corresponding file has been deleted.

So.. does mkdosfs's FAT32 support long filenames (i.e. it's VFAT) or not (i.e. it's plain FAT32)?

Best Wishes, Max

Last edited by Tischbein; 01-21-2007 at 03:14 PM.
 
Old 01-21-2007, 04:05 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't know much about vfat vs fat32, but I was able to format a USB key just now using:
Code:
/sbin/mkdosfs -v -F 32 /dev/sdb4
I then copied a file with a long filename from an ext3 partition across to it then plugged the USB key into a box running Win XP Pro. I was able to use dir /x to see the long and short filenames - I was also able to create new files with long filenames. So yes, mkdosfs does support long filenames.

Hope that helps...
 
Old 01-21-2007, 05:04 PM   #7
KleB
Member
 
Registered: Jan 2006
Location: Slovenia
Distribution: Slackware, Gentoo
Posts: 97

Rep: Reputation: 15
As far as I know, the fat32 created with msdosfs (I think it is symlinked to mkfs.msdos) supports long names. If this implies this is vfat, or not, I don't know. Maybe this change can be made to any fat32 filesystem by just mounting and using it as vfat??? I don't know.
 
Old 01-22-2007, 12:43 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Normally msdosfs, like on floppies, is FAT12; regular FAT filesystems under 32MB are FAT 16 and over 32MB are FAT32(vfat). FAT12 and FAT16 can't handle long file names or case well.
The numbers refer to the number of bits available to represent the filename and inode in the allocation table. FAT32 can reach 2 terabyte size. FAT16 can only reach 2GB (IIRC). But if you use FAT16 for large partitions you will consume lots of space with the allocation table.
For using hard disk FAT partitions under Linux, FAT32 is always best as it alows you to name files as you are used to and saves space.
 
Old 06-29-2007, 12:34 PM   #9
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Thanks for posting this tidbit on how to deal with a vfat!

- Perry
 
Old 12-26-2008, 04:13 PM   #10
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Quote:
Originally Posted by perry View Post
Thanks for posting this tidbit on how to deal with a vfat!

- Perry
Ditto
Trying to create a partition that OpenBSD, FreeBSD, XP and Linux can read (oggs)
 
Old 12-28-2008, 11:12 AM   #11
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by gnashley View Post
Normally msdosfs, like on floppies, is FAT12; regular FAT filesystems under 32MB are FAT 16 and over 32MB are FAT32(vfat). FAT12 and FAT16 can't handle long file names or case well.
The numbers refer to the number of bits available to represent the filename and inode in the allocation table. FAT32 can reach 2 terabyte size. FAT16 can only reach 2GB (IIRC). But if you use FAT16 for large partitions you will consume lots of space with the allocation table.
For using hard disk FAT partitions under Linux, FAT32 is always best as it alows you to name files as you are used to and saves space.
Here are many misunderstandings.

VFAT is an add-on feature. A newly formatted FAT* volume has no files (except the volume label, if present) on it, thus it's meaningless to talk about *V*FAT or long name support. When an FAT* volume is mounted as vfat, it supports long names (short names are also stored).

FAT32 consumes much space for its File Allocation Table (FAT). It's rarely used in small volumes. FAT16 wastes much space on large disks because it's cluster size (the minimun allocation unit) is much larger than FAT32's. So on large volumes, don't use FAT16 unless you store only large files.
 
Old 12-28-2008, 11:54 AM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
mkfs.vfat is just a hardlink to mkdosfs on other distros. Slackware doesn't make the links, thus the reason why there is no mkfs.vfat. An amendment to the SlackBuild would stop these kinds of posts.

( cd $PKG/sbin
ln mkdosfs mkfs.vfat
ln mkdosfs mkfs.msdos
ln dosfsck fsck.msdos
ln dosfsck fsck.vfat )

( cd $PKG/usr/man/man8
ln -sf mkdosfs.8.gz mkfs.msdos.8.gz
ln -sf mkdosfs.8.gz mkfs.vfat.8.gz
ln -sf dosfsck.8.gz fsck.vfat.8.gz )

Last edited by jong357; 12-28-2008 at 11:56 AM.
 
1 members found this post helpful.
  


Reply

Tags
fat, filesystem, vfat



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
which package contains mkfs.vfat? ttilt Slackware 9 08-11-2009 11:15 AM
What?? No mkfs.vfat in slackware!! WindowBreaker Slackware 4 03-04-2006 05:58 PM
mkfs.vfat GlobShim Linux - General 2 03-28-2004 02:56 PM
New 2.6 mount options make VFAT filesystem mounting saner TheOneKEA LinuxQuestions.org Member Success Stories 0 11-19-2003 12:05 PM
mkfs.vfat?? lss223 Slackware 1 04-28-2003 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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