Questions tagged [vfat]
The vfat tag has no usage guidance.
54
questions
0
votes
0
answers
31
views
mkfs.vfat -- No such file or directory [duplicate]
I'm on Debian Bookworm.
I am trying to format my USB drive to FAT32 filesystem.
~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sdb ...
1
vote
2
answers
932
views
Mount an USB key drive VFAT file system as user, or at least having writing rights on its contents
I'm trying to mount a VFAT file system placed on a USB key drive, so that I can manipulate the drive contents.
12:10 boffi@debian:~ $ lsblk | grep sdc
sdc 8:32 1 7.5G 0 disk
└─sdc1 8:33 ...
1
vote
0
answers
302
views
How to debug why uid,gid,umask,fmask and dmask mount options are ignored?
I am running a Live ISO of Kubuntu 22.04 LTS (AKA Jammy Jellyfish). What I am trying to do has most likely nothing to do with KDE, so one may assume I am running Ubuntu.
I am trying to mount a FAT32 ...
0
votes
1
answer
63
views
Using allow_utime with exfat
Considering the fact that exfat does not store ownership information of files, is it possible to mount an exfat partition in Linux with an allow_utime option that is also available for vfat? If not, ...
1
vote
1
answer
215
views
rsync from external vfat disk to local ext4 yields VASTLY different sizes [duplicate]
I found an older external hd I want to reuse for something else. I was doing an rsync of it to a NAS I run over the network but it was taking ages.
So I decided to rsync to my local drive first (SSD) ...
2
votes
1
answer
16k
views
/boot/efi failed to mount due to unknown file system "vfat" : CentOS 7.5
I have a centOS 7.5 server that does not boot up. Only boots up to rescue mode. This happened after a forced reboot of the server. I got the following error on CentOS 7.5 after checking the journalctl ...
0
votes
0
answers
60
views
vFAT flash drives insist on only being writable by root
All the usual advice on editing /etc/fstab doesn't work. My current fstab looks something like the following:
/dev/disk/by-uuid/2D06-9C4C /media/pi/TWILIGHT vfat user,auto,uid=pi,gid=pi,umask=...
0
votes
1
answer
313
views
How to make apache in debian access the resource on the window's vfat filesystem?
In the post access resource on window'sntfs,we solve the problem ,succeded in making apache in debian access the resource on the window's ntfs filesystem,now i want to make apache in debian access the ...
1
vote
1
answer
778
views
Sharing a Partition Between Windows and Linux Throws Permission Errors
I created a new partition in Windows 10 formatted as Fat32, so that I could work with files located in one place despite being logged into my MX Linux installation or Windows 10.
While logged into ...
2
votes
1
answer
40
views
why can I not rename directories on my walkman?
$ lsblk -o+FSTYPE /dev/sdc1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT FSTYPE
sdc1 8:33 1 3.7G 0 part /mnt/bart_sdc1 vfat
$ cd /mnt/bart_sdc1
$ file dvorak-walzes
dvorak-walzes: directory
$ ls ...
1
vote
1
answer
2k
views
mkfs.vfat can't find the first partition on my disk
I wanted to install Arch Linux on my Raspberry Pi 3 and I found this tab[Installation] article that describes the process step-by step: Now, I've run into a problem when I tried to create the vfat fs ...
1
vote
1
answer
467
views
Recovery software for corrupted files when running a linux system?
I am looking for options regarding recovering deleted files (don't recall if corrupted applied).
Filesystem for the corrupted files are VFAT-formatted on a USB, though I run a Linux system (but can ...
0
votes
0
answers
121
views
/etc/fstab mounting with auto buffer flushing
My /etc/fstab line for the SD I'm willing to mount looks like:
/dev/mmcblk1 /media/sd_card vfat user,rw,umask=000,sync 0 2
With this line I'm able to mount the SD, but everytime I want to ...
1
vote
0
answers
74
views
Completely defragmenting a FAT32 filesystem [duplicate]
Is there any Linux tool that allows defragmenting a FAT32 filesystem not on a best effort basis, but so that all files are guaranteed to be stored contiguously with no exceptions? Possibly writing the ...
2
votes
0
answers
55
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
1
answer
3k
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
...
14
votes
2
answers
44k
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
1
answer
2k
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
1
answer
4k
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
1
answer
889
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
1
answer
472
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
2
answers
2k
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 ...
35
votes
5
answers
82k
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
1
answer
582
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
0
answers
1k
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 ...
2
votes
2
answers
600
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 ...
2
votes
1
answer
644
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....
5
votes
3
answers
12k
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
0
answers
892
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
2
answers
6k
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 (...
4
votes
3
answers
5k
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 ...
9
votes
1
answer
18k
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 ...
5
votes
2
answers
857
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
2
answers
4k
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
0
answers
79
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{...
7
votes
1
answer
3k
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 ...
1
vote
1
answer
1k
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
1
answer
7k
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
0
answers
170
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
0
answers
1k
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 ...
1
vote
1
answer
3k
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 ...
44
votes
3
answers
19k
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 ...
3
votes
1
answer
3k
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 ...
1
vote
1
answer
3k
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’: ...
6
votes
2
answers
9k
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
0
answers
228
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 ...
3
votes
1
answer
402
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 ...
8
votes
2
answers
1k
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 '...
8
votes
5
answers
35k
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
1
answer
1k
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 ...