Skip to main content

Questions tagged [vfat]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
91 views

Create FAT-formatted disk image that can fit 1G file

I'm struggling to create a FAT-formatted a disk image that can store a file of known size. In this case, a 1 GiB file. For example: # Create a file that's 1 GiB in size. dd if=/dev/zero iflag=...
jdeanwallace's user avatar
0 votes
1 answer
30 views

dpkg -i my-kernel_5.10.9-2lEIW6BD_arm64.deb fails with "unable to make backup link of './boot/Image' before installing new version: Operation not..."

I've made my own kernel package for a custom iMX8M board, which passes lintian without warnings or errors. The top three layers of the package tree are: /tmp/my-kernel_5.10.9-2lEIW6BD_arm64 |-- DEBIAN ...
fadedbee's user avatar
  • 971
0 votes
0 answers
33 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 ...
vrgovinda's user avatar
  • 279
1 vote
2 answers
1k 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 ...
gboffi's user avatar
  • 1,454
1 vote
0 answers
463 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 ...
Victor Yarema's user avatar
0 votes
1 answer
75 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, ...
9a3eedi's user avatar
  • 173
1 vote
1 answer
326 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) ...
unsafe_where_true's user avatar
2 votes
1 answer
19k 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 ...
E4406B's user avatar
  • 23
0 votes
0 answers
66 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=...
cjm's user avatar
  • 225
0 votes
1 answer
329 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 ...
showkey's user avatar
  • 395
1 vote
1 answer
875 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 ...
kbs's user avatar
  • 115
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 ...
Bart's user avatar
  • 247
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 ...
stdcerr's user avatar
  • 2,079
1 vote
1 answer
546 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 ...
sgu55's user avatar
  • 81
0 votes
0 answers
140 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 ...
JulianW's user avatar
  • 133
1 vote
0 answers
78 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 ...
rkreis's user avatar
  • 27
2 votes
0 answers
60 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?
Aleksey Kontsevich's user avatar
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 ...
Jardel Lucca's user avatar
14 votes
2 answers
50k 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. ...
Silv's user avatar
  • 305
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 ...
Kepler's user avatar
  • 43
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 ...
znavko's user avatar
  • 43
0 votes
1 answer
921 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 ...
user avatar
0 votes
1 answer
500 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/...
user569825's user avatar
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 ...
Alex's user avatar
  • 1,175
37 votes
5 answers
87k 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 ...
Timothy Wong's user avatar
0 votes
1 answer
592 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 /...
Léo Léopold Hertz 준영's user avatar
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 ...
Melody's user avatar
  • 223
2 votes
2 answers
651 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 ...
Paul Knopf's user avatar
  • 1,301
2 votes
1 answer
656 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....
racitup's user avatar
  • 231
7 votes
3 answers
13k 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 ...
FelixJN's user avatar
  • 13.7k
2 votes
0 answers
962 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 ...
Tanaki's user avatar
  • 171
3 votes
2 answers
7k 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 (...
Jake Wildstrom's user avatar
4 votes
3 answers
6k 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 ...
Martin Vegter's user avatar
9 votes
1 answer
19k 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 ...
Naftuli Kay's user avatar
  • 40.2k
5 votes
2 answers
901 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 ...
Ivan's user avatar
  • 18k
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 ...
user3528438's user avatar
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{...
ozirus's user avatar
  • 31
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 ...
Ned64's user avatar
  • 8,924
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.
Anon's user avatar
  • 11
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 ...
Malte Skoruppa's user avatar
1 vote
0 answers
175 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 ...
SF.'s user avatar
  • 2,951
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 ...
MLSC's user avatar
  • 1,022
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 ...
RoraΖ's user avatar
  • 443
44 votes
3 answers
20k 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 ...
Alois Mahdal's user avatar
  • 4,450
3 votes
1 answer
4k 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 ...
mizundra's user avatar
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’: ...
l0b0's user avatar
  • 51.8k
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 ...
Alex's user avatar
  • 5,730
1 vote
0 answers
240 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 ...
Raydel Miranda's user avatar
3 votes
1 answer
414 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 ...
Sergey P. aka azure's user avatar
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 '...
Frank's user avatar
  • 348