Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vfat]

The tag has no usage guidance.

2
votes
0answers
18 views

Wrong USB flash mount options

openSuse mounts VFAT usb flash with codepage=437,iocharset=iso8859-1 options which is wrong as I have Russian locale. How to set default mount options to codepage=866,iocharset=cp1251?
0
votes
1answer
53 views

Interpreting /proc/partitions

I'm confused about the partitions size of a flash memory in my embedded linux device: / # cat /proc/partitions major minor #blocks name 240 0 93184 ndda 240 1 85168 ndda1 ...
0
votes
1answer
1k views

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. ...
1
vote
1answer
172 views

Fedora: cp: Invalid argument while coping a file named with Chinese characters to a vfat filesystem

I want to use cp to copy a file named with Chinese characters to my fat32 usb stick. This is done using a script, so using nautilus is not a solution for me. I do not want to rename the files, too. I ...
2
votes
1answer
138 views

mkfs.vfat not found on GuixSD

Troubles formatting usb-flash under GuixSD, cause it cannot find mkfs.vfat. I've installed dosfstools but util-linux installation shows some another stuff. # guix package -i dosfstools The following ...
0
votes
1answer
282 views

Can't mount vfat filesystem mtab says already mounted

I have multiple partitions on different disks along side my Linux installation, I have all the necessary packages installed for reading and writing to vfat filesystems. main drive [SSD] my linux ...
0
votes
1answer
163 views

How can I boot alpine-linux from CF card (in Soekris net4801)?

I've installed according to https://wiki.alpinelinux.org/wiki/Create_a_Bootable_Compact_Flash#Automated and successfully activated serial console as outlined in https://wiki.alpinelinux.org/wiki/...
4
votes
2answers
773 views

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 ...
10
votes
4answers
21k views

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 ...
0
votes
1answer
314 views

How to Tar Much With Big .tar Parts on vfat? [duplicate]

I have now just one vfat USB stick in travelling but I still need to take backups. I get gzip: stdout: File too large because vfat's limiting files bigger than 4.3 Gb. My backup command sudo tar czf /...
1
vote
0answers
788 views

drive geometry error with vfat

I'm curious what this error means: [root@server1 ~]# mkfs -t vfat /dev/example mkfs.fat 3.0.20 (12 Jun 2013) unable to get drive geometry, using default 255/63 I was attempting to make a file system ...
0
votes
0answers
119 views

Some doubts about disk inconsistency

I have a system with 3 elements: An embedded system with this FAT lib that makes several operations in the FAT filesystem (e.g. add/remove file/dir, append to file). The sector read/write functions ...
2
votes
2answers
266 views

Embedded device, log partition, what file system is more resilient and uses less reads/writes?

I have an embedded Linux device with a read-only file system. I have another partition that is used to store an archive of logs. This partition will be written to a lot. What linux partition should I ...
3
votes
1answer
272 views

filefrag fibmap returning wrong physical offset for FAT

I am trying to get the map of empty space on any partition in a filesystem-agnostic way. To do this I create a file that uses all of the empty space, then use the 'filefrag -e' command (e2fsprogs v1....
2
votes
3answers
3k views

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 ...
2
votes
0answers
467 views

VFAT FS Sync/Flush Behaviour

In order to increase the life of my VFAT flash drives, I have them set to mount as async. One of these drives sometimes deals with large data changes, and as a result, the writes that occur on umount ...
3
votes
2answers
2k views

Module vfat fails to load (I've tried the obvious fixes)

The module vfat doesn't load on boot, and attempts to force the issue with a modprobe vfat produce the error modprobe: ERROR: could not insert 'vfat': Unknown symbol in module, or unknown parameter (...
2
votes
2answers
2k views

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 ...
2
votes
1answer
7k views

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 ...
6
votes
1answer
373 views

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 ...
2
votes
1answer
848 views

How to increase the size of a vfat file system to exactly the size of the containing partition?

This is a further question after this one. I google for it, but most of the search results are about how to grow the partition and the file system at the same time. I think this question is simpler ...
1
vote
0answers
62 views

Failed unmount from GUI

I am developing a script which provides mount only specific USB Storage. First I blocked automount feature from /etc/udev/rules.d/85-no-automount.rules by adding blockrule="SUBSYSTEMS=="usb", ENV{...
6
votes
1answer
1k views

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 ...
0
votes
1answer
656 views

Accidentally ran mkfs.vfat on my backup drive [duplicate]

I ran mkfs.vfat /dev/sdb (whole device, not just one partition) on my backup drive, ironic, right. Is there any way to recover my files.
4
votes
1answer
5k views

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 ...
1
vote
0answers
90 views

How can I get a vfat pendrive to automount as posixovl filesystem?

I'm using Kubuntu. I'd like to use my pendrive primarily for storing various data for my Linux (and not losing metadata like permissions and ownerships), but I don't want to exclude access to it from ...
0
votes
0answers
866 views

External hard drive can't be mounted on linux(windows says: Format it)

I have a hard disk and I can't mount it on linux. These are information may be helpful: # fdisk -l Device Boot Start End Blocks Id System /dev/sdb1 * 63 1250258624 ...
0
votes
1answer
1k views

Verify Linux FAT32 Support [closed]

I apologize if this is a duplicate, but I could not find any related question. How can I verify that my Linux 3.16.1 kernel supports FAT32? Things to keep in mind: I do not have /proc/config.gz ...
28
votes
1answer
9k views

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 ...
2
votes
1answer
2k views

How to specify block size for vFAT file system?

I just read that vFAT support different block size at (this link and in other places. It should be 512 bytes to 32 kb range ). So how can I specify this option in mkfs.vfat tool? Or does mkfs.vfat ...
2
votes
1answer
1k views

Why can't mv preserve permissions when moving between Android SD cards?

After mounting both SD cards on an Android phone using the "USB mass storage" mode I keep getting these messages when moving files between them: mv: failed to preserve ownership for ‘/.../foo’: ...
5
votes
2answers
5k views

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 ...
1
vote
0answers
154 views

mount: fmask options is not working

Few days ago I did this question. But now I have another problem, related, but new. Scenario: I have a flash drive (vfat) mounted in /media/flash the filesystem node is /dev/sdb1. according to ...
2
votes
1answer
215 views

How to make gvfs mount fat/vfat drives with 8.3 names set to lowercase on automatic mount?

Use case: when USB flash or SD card is plugged in, the filesystem is mounted. It is mounted by gvfsd. But if the filesystem contains files in legacy 8.3 format (like digital cameras often save file ...
7
votes
2answers
711 views

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 '...
7
votes
4answers
23k views

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 ...
5
votes
1answer
488 views

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 ...
3
votes
2answers
8k views

Unable to change permissions of file system root

When I write ls -la the output is : tusharmakkar08-Satellite-C660 tusharmakkar08 # ls -la total 88 drwxr-x---+ 10 root root 4096 Apr 18 19:43 . drwxr-xr-x 4 root root 4096 Mar 18 17:35 .. drwxr-...
8
votes
2answers
6k views

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 ...
2
votes
1answer
456 views

Set a VFAT volume name non-destructively?

The only way I know to set VFAT volume name under Linux is mkfs.vfat -n desired_name ..., which obviously destroys volume's contents. Is there a way to change the volume name non-destructively, as ...
3
votes
1answer
1k views

How to have correct permissions of files from usb disks?

Does anyone have the following problem? I have an Ubuntu box at work and also one at home. I always copy folders/files to/from an usb disk to/from my boxes. I have to change permissions of folders/...