SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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)?
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.