Questions tagged [fat]

File Allocation Table (FAT) is a computer file system architecture now widely used on many computer systems and most memory cards, such as those used with digital cameras.

70 questions
66
votes
9 answers

How can I change the volume name of a FAT32 filesystem?

How can I change the volume name of a FAT32 filesystem?  I know I can set the volume name when I format the partition with the -n option of mkfs.vfat.  But how to just change the name without formatting? I especially want to be able to use lower and…
Den
  • 937
  • 1
  • 9
  • 13
43
votes
3 answers

Why is the "ls" command showing permissions of files in a FAT32 partition?

I believe that the FAT32 file system does not support file permissions, however when I do ls -l on a FAT32 partition, ls -l shows that the files have permissions: -rw-r--r-- 1 john john 11 Mar 20 15:43 file1.txt -rw-r--r-- 1 john john 5 Mar 20 15:49…
user342731
  • 439
  • 4
  • 3
32
votes
1 answer

Create and populate FAT32 filesystem without mounting it

Is there a way to create a FAT32 filesystem containing a set of files, without needing to mount it or have root access? I am developing a software application for an old operating system as a hobby, and as part of the build process I would like to…
Malvineous
  • 6,524
  • 5
  • 52
  • 76
23
votes
1 answer

dpkg replacing files on a FAT filesystem

When you upgrade or reinstall a package with dpkg (and ultimately anything that uses it, like apt-get etc) it backs up the existing files by creating a hard link to the file before replacing it. That way if the unpack fails it can easily put back…
Majenko
  • 808
  • 5
  • 17
15
votes
1 answer

create a corrupted FAT file system

I have an application which will search for a corrupted FAT file system and repair it. For testing the application I will need a corrupted file system. What is a good and reproducible way for corrupting a FAT file system? Creating bad sectors for…
arash javan
  • 381
  • 1
  • 12
13
votes
3 answers

A clever way to defragment a FAT filesystem?

What is the best way to defragment a FAT filesystem when running Linux/Unix (on usb stick for instance)? Copy all content elsewhere, format, copy back again? Use FreeDOS defrag utility, in a KVM command? Boot with Partition Logic? other?
Marc MAURICE
  • 289
  • 1
  • 3
  • 5
11
votes
2 answers

Rsyncing files with special characters to USB FAT32

I want to copy a large number of files to a USB drive that is formatted FAT32 (and cannot be formatted anything else, unfortunately). Many of these files have names with characters such as : and ? that FAT32 does not allow. Trying to use cp or…
atorgovitsky
  • 111
  • 1
  • 4
9
votes
2 answers

Change file creation time on a FAT filesystem

I need a way to change the creation time of a file on a mounted FAT32 volume. I have to do that because my MP3 player will only read files sorted by this creation time. If I can find a way to set the file creation time (like touch can do with…
Artefact2
  • 281
  • 3
  • 6
8
votes
1 answer

Understanding Linux FAT fs (FAT, VFAT, FAT32, exFAT) support

I'm trying to understand which FAT based filesystems my Real Time 2.6 Linux supports. I have tried 3 things: /proc/filesystems shows vfat among others non-relevant for the question (like ext2, etc) /proc/config.gz shows: # DOS/FAT/NT…
Héctor
  • 248
  • 2
  • 9
8
votes
1 answer

cp: error writing '/location-to-file/file.zip': File too large

Log: ~$ cp -r folder /media/usr/media-name/ cp: error writing '/location-to-file/file.zip': File too large Question: How to copy large files/folders to media in Linux? Excess Details 500 GB Sandisk Drive (recently formatted to FAT using GNOME…
Name
  • 81
  • 1
  • 1
  • 3
7
votes
1 answer

Renaming a file while it is being written

I'm wondering if this is considered safe. I know the file handles work just fine as long as a link remains, and I know the identifier is the inode rather than the name, but I am not sure how it works across different FS. For example copying from an…
Lacey
  • 75
  • 4
7
votes
3 answers

Mount USB (FAT) in Gentoo

Can somebody show me how to make Gentoo mount my USB? This is what I got when trying mount /dev/sdb1 /mnt: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some…
phunehehe
  • 20,030
  • 27
  • 99
  • 151
7
votes
2 answers

Linux, fat32 and etc/fstab

I mounted a FAT32 drive onto my Linux computer using the following terminal command: > sudo mount /dev/sdb1 /media/exampleFolderName -o dmask=000, fmask=111 I did this so I could share / edit the files over a network connection. Unfortunately Linux…
Lee
  • 73
  • 1
  • 1
  • 3
6
votes
2 answers

failed to mount fat filesystem: codepage cp437 not found

I am experiencing the same problem described here: Fail to boot: Codepage not found. My error is: FAT-fs (sdx1): codepage cp437 not found My fstab mount command for the device is: LABEL=ESP /boot vfat…
MountainX
  • 17,168
  • 59
  • 155
  • 264
6
votes
1 answer

Why does Unix set the executable flag for FAT file systems?

I've noticed that when I mount a FAT filesystem on Linux, all of the files have their executable permissions set. Why is this? There's almost no chance that you can or want to directly execute any program found on a FAT file system, and having the…
Edward Falk
  • 1,913
  • 15
  • 14
1
2 3 4 5