Questions tagged [vfat]

54 questions
44
votes
3 answers

systemd keeps unmounting a removable drive

I have following line in /etc/fstab: UUID=E0FD-F7F5 /mnt/zeno vfat noauto,utf8,user,rw,uid=1000,gid=1000,fmask=0113,dmask=0002 0 0 The partition is freshly created by gnome-disks under the respective user, and spans the whole card. Now: Running…
Alois Mahdal
  • 4,330
  • 11
  • 40
  • 62
33
votes
5 answers

exFAT vs NTFS on Linux

Situation: I need a filesystem on thumbdrives that can be used across Windows and Linux. Problem: By default, the common FS between Windows and Linux are just exFAT and NTFS (at least in the more updated kernels) Question: In terms of performance on…
Timothy Wong
  • 531
  • 1
  • 4
  • 13
14
votes
2 answers

What is a vfat signature?

Recently, I have noticed that I cannot access my USB flash drive filesystem (it was of FAT type, as far as I can remember). Fedora did not mount it automatically and lsblk could not see the partition. So, I decided to create new partition (instead…
Silv
  • 295
  • 1
  • 2
  • 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
9
votes
1 answer

Resize VFAT partition?

I'm migrating a machine to another boot drive with more space. I've done the following: sudo partclone.vfat -c -R -o partclone.sda1.vfat.img -s /dev/sdg1 and then I created my partitions on the new device in parted, and then restored: sudo…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
8
votes
5 answers

vfat not recognized in debian

I want to mount my usb drive (kindle vfat32). When I do mount -t auto /dev/sdf1 /mnt/usb I get mount: unknown filesystem type 'vfat' I checked if the drive is recognized with sudo fdisk -l and the recognized filesystem is W95 FAT32 my kernel is…
simona
  • 1,001
  • 3
  • 13
  • 27
8
votes
2 answers

What is the best way to synchronize files to a VFAT partition?

POSIX filenames may contain all characters except /, but some filesystems reserve characters like ?<>\\:*|". Using pax, I can copy files while replacing these reserved characters: $ pax -rw -s '/[?<>\\:*|\"]/_/gp' /source /target But pax lacks an…
Frank
  • 348
  • 2
  • 7
7
votes
1 answer

How do I change automatic mounts of removable vfat / fat32 drives/partitions to use "noexec"?

When I plug in a USB drive it is automatically mounted on /run/media/user/fslabel. This is done, I guess by some udev/dbus/thunar/nautilus/gvfs or other system, and I find this convenient and do not want to revert to manual mounting by root. …
Ned64
  • 8,486
  • 9
  • 48
  • 86
6
votes
2 answers

How to create file links on a vfat filesystem of a mounted disk under Linux?

I have an external drive containing different pieces of music. The drive is a vfat formatted drive to be able to work with arbitrary devices. On the device I have music stored from different artists sorted according to their name. However, I would…
Alex
  • 5,614
  • 19
  • 65
  • 86
5
votes
1 answer

Why doesn't the Linux vfat driver allow certain characters?

The Linux vfat driver seems to disallow certain characters in vfat long file names: ?<>\:*|". I understand that Windows doesn't support these characters, but Wikipedia seems to indicate that the filesystem, itself, supports any non-null 16-bit…
rkjnsn
  • 652
  • 6
  • 13
5
votes
3 answers

rsync to USB flash drive always transferring all data

When rsyncing a directory to a freshly plugged-in external USB flash drive, via rsync -av /source/ /dest/ all files get transferred (i.e. rewritten) despite no changes in the files. Note that overwriting the files only takes place once the USB is…
FelixJN
  • 12,616
  • 2
  • 27
  • 48
5
votes
2 answers

Can I install GNU/Linux on a FAT drive?

Out of curiosity, is this possible nowadays? I remember some old Slackware versions did support FAT root partition but I am not sure if this is possible with modern kernels and if there are any distros offering such an option. I am interested in…
Ivan
  • 17,368
  • 35
  • 93
  • 118
4
votes
2 answers

mv `Argument list too long` for a single file

I was trying to move a set of 7 files to my computer, via mv g* dir. The command line moved 6 of them, and for the last file gave the following error: mv: g.tex: Argument list too long Since the other files, both those before and after it, are…
Alex
  • 1,099
  • 2
  • 9
  • 25
4
votes
3 answers

change FAT16 partition UUID

I have created a FAT16 formatted partition on my USB stick using mkdosfs /dev/sdb1 when I plug in my stick, it appears in /dev/ as: /dev/disk/by-uuid/ABCD-1234 How can I change the UUID of the disk to something else than ABCD-1234 ? UPDATE tune2fs…
Martin Vegter
  • 69
  • 66
  • 195
  • 326
4
votes
1 answer

How to manually set the dirty bit on a FAT32 partition

For some debugging purposes, I'd like to be able to manually set the dirty bit of a FAT32 partition to true. I found tons of information on how to use fsck.vfat to remove the dirty bit, but none on how to set it. It's possible, since mount does it.…
Malte Skoruppa
  • 1,694
  • 1
  • 14
  • 20
1
2 3 4