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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
641 views

fsck does not repair FAT32 partition correctly

I have a flash drive formatted with a FAT32 partition. When I pull it out before unmounting it naturally has the dirty bit set and when I use the flash in a Windows machine, Windows complains that the ...
DEKKER's user avatar
  • 856
0 votes
0 answers
542 views

Can't mount sd card

I can't seem to figure how to mount an old 2GB sd card I had lying around from years ago. I forgot what I had on it... Using Debian 11 with KDE 5.20.5 It's not recognized or mounted when insterted (...
user548241's user avatar
8 votes
1 answer
9k views

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) /...
Héctor's user avatar
  • 278
2 votes
1 answer
485 views

VFAT, Linux: Invalid file timestamps shown after a reboot

Just encountered a problem: when rebooting a Linux system, timestamps of all files in the mounted VFAT filesystem are shown in the incorrect timezone. It seems like a device starts thinking that its ...
vmlinuz's user avatar
  • 41
0 votes
1 answer
1k views

is it possible to have a fat32 rootfs partition instead of ext4?

I've successfully installed u-boot and linux kernel on STM32F469-disco board but I still don't have a rootfs. my board has 16MB RAM and 16MB FLASH storage and 32GB SDCARD and the CPU core of it is ARM ...
Mahyar Shokraeian's user avatar
34 votes
1 answer
6k views

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, ...
Malvineous's user avatar
  • 6,653
2 votes
2 answers
226 views

How to run Linux script in FAT (it is not working like on Linux' FS)

How to run Linux script e.g configure etc, in FAT (or alike raw) filesystem ? $ sudo chmod -R 777 . $ ./configure bash: ./configure: Permission denied How to solve ?
user avatar
-8 votes
1 answer
53 views

I am having problem will installing development [closed]

I am nod able to install mono development even after i gave apt get update. My system is asking for Mono depends on =6.10.0.104-0-xamarin16+debian10b1 Its also asking Hit https://download.mono-...
Reshama K s's user avatar
3 votes
0 answers
205 views

Why does unmounting of a VFAT filesystem result in reading the whole FAT?

Each time I unmount the filesystem of my SD card that I use on my DSLR, I have to wait several seconds for umount command to finish — even if I've just mounted the FS as read-only and immediately ...
Ruslan's user avatar
  • 3,310
0 votes
4 answers
807 views

zip file with fat format (on linux)

I am trying to import contacts from micro-SD to (non Android) Nokia phone. So I first exported current contacts on micro-SD card in hope that i will be able to modify the exported file and then import ...
nekineki's user avatar
2 votes
2 answers
559 views

File order on FAT/FAT32/VFAT file systems

I have several audio devices (car radio, portable radio, MP3 player) that take SD cards and USB sticks with a FAT file system on it. Because these devices have limited intelligence they do not sort ...
Frank van Wensveen's user avatar
8 votes
1 answer
12k views

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 ...
Name's user avatar
  • 81
3 votes
0 answers
404 views

How is PCMCIA hard drive format different from default FAT16 "msdos"?

I am attempting to format some CF cards for use in an OLD digital camera (1995 Kodak DCS460). The camera uses PCMCIA Type III. It came with a Type III 260MB hard drive. If I format the CF card under ...
SQLGuy's user avatar
  • 31
3 votes
1 answer
441 views

How to create a 80 track 1 head FAT formatted 360K disk image?

I need to format a floppy disk image file with a format that is readable by an (emulated) 3.5" 80-track 9 sectors/track single-sided floppy drive. With mformat, I have no idea how to specify a disk ...
Pedro Gimeno's user avatar
1 vote
1 answer
796 views

Why am I seeing an EFI partition when I created a FAT on my external USB hub?

I am connecting a 4-bay HDD hub (FANTEC QB-35US3-6G) via USB to my Raspberry Pi. I have two disks inside the hub and formated them as FAT. The formating I did on a Mac because I was not able to see ...
bomben's user avatar
  • 439
1 vote
1 answer
144 views

How FAT16 worked on a 16 GB thumbdrive flawlessly?

So, I created a FAT16 partition in the following way I plugged in my 16 GB thumbdrive. dd if=/dev/zero of=/dev/sdX count=1 Opened up cfdisk for simplicity. Selected dos label type Created new ...
15 Volts's user avatar
  • 2,009
7 votes
1 answer
3k views

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 ...
Lacey's user avatar
  • 75
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 ...
rkreis's user avatar
  • 27
44 votes
3 answers
5k views

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:...
user342731's user avatar
1 vote
2 answers
4k views

Why can't Windows read Linux filesystems? [closed]

When playing with filesystems and partition, I realized that when I created a ext file system on my USB drive and plug it to Windows, I am forced to format it. On the other end, when building a FAT ...
devconnected's user avatar
1 vote
1 answer
3k views

Why don't FAT filesystems support links? [closed]

FAT filesystems represent files via linked lists of clusters (linked file allocation). They have a region on disk for one or more tables (File Allocation Table) which have as many entries as ...
juancho's user avatar
  • 21
6 votes
2 answers
4k views

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 ...
MountainX's user avatar
  • 17.5k
0 votes
2 answers
432 views

Unable to mount an sdcard

I wanted to mount an sdcard. Upon inserting the dmesg logs gives me this: [Thu Oct 25 10:59:44 2018] sd 0:0:0:0: [sdb] 30318592 512-byte logical blocks: (15.5 GB/14.5 GiB) [Thu Oct 25 10:59:44 2018] ...
J. Arbet's user avatar
  • 101
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
0 votes
0 answers
2k views

Parted: Creating partitions on a drive for EUFI boot, fat16 doesn't mount properly or show up on firmware as boot option

I have a library (referred to here as "wic") that generates a drive.img file that contains multiple partitions, including a boot partition with a UFI exe. If I dd if=drive.img of=/dev/sdb, it works ...
Paul Knopf's user avatar
  • 1,181
4 votes
2 answers
393 views

Restore a USB flash drive in a standard state for use in Linux, Windows, etc

Since this question, I'm using: dd if=/dev/zero of=/dev/sdb bs=1M # wipe the disk fdisk /dev/sdb <<< $'n\np\n\n\n\nt\nb\np\nw\n' # create a partition mkfs.fat /dev/sdb1 ...
Basj's user avatar
  • 2,401
0 votes
1 answer
881 views

Difference in file system type on mount and Disk Utility

Here the type is fuseblk: $ mount /dev/sdb1 on /media/me/MY-DEVICE type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) Can see ...
Proletariat's user avatar
1 vote
0 answers
30 views

Cannot mount usb stick after putting a Yosemite bootable image on it

I was trying to put a bootable image on a USB stick so I could reinstall Mac OS Yosemite on my Macbook Pro (I am doing this all in in Linux so that's why this question is here). Once I finally ...
Parker Ellertson's user avatar
1 vote
1 answer
171 views

How does unix / linux format an SD card?

How does a Linux OS format an SD card and magically fix everything? I have an STM32 running FreeRTOS and FAT-FS. When I have a corrupted SD card and FAT-FS can't do anything about it, I format the ...
clamentjohn's user avatar
1 vote
0 answers
169 views

How do I create an img image just big enough to hold one specific file?

I need to create an img disk image (using mkfs.fat) that will contain only one file. I know I need to do this: dd if=/dev/zero of=disk.img bs=1 count=SIZE mkfs.fat disk.img sudo mkdir /tmp/bla sudo ...
lord_nimon's user avatar
1 vote
1 answer
648 views

Is it possible to run basic Linux on file permissionless file system(ex. Fat32)

So I would like to be able run Linux an a Fat32(preferably ExFat) partition is this possible? It appears this has been done Can I install GNU/Linux on a FAT drive? Couldn't shorcuts be used in place ...
William's user avatar
  • 1,061
1 vote
1 answer
725 views

Can't use fatsort as unprivileged user anymore

I'm running fatsort on Debian Jessie. It only works when being logged in as root. As unprivileged user: fatsort /dev/sdh openFileSystem: Permission denied! sortFileSystem: Failed to open file system!...
Jérôme's user avatar
  • 1,908
1 vote
0 answers
117 views

Possible memory leak when writing files to SD with FAT fs

I have a HI3516A SoC based IP camera with SD card slot. The operation system on camera is custom 3.4.45 Linux kernel. Everything works well, but I need to have a copy of video from camera on my remote ...
ArhiChief's user avatar
0 votes
1 answer
385 views

Windows doesn't like resized FAT filesystem

I resized a FAT filesystem. Then the filesystem stopped working as a Windows 10 Recovery Drive. ("This may be due to a recent change in your hardware or software..."). And a running Windows is ...
sourcejedi's user avatar
  • 49.2k
2 votes
0 answers
1k views

Corrupt FAT32 cluster chain after resizing with parted

I have a 500GB external USB drive formatted with a single FAT32 partition. I wanted a partition that would support normal Linux filesystem permissions, so I shrank the existing partition using parted: ...
jake's user avatar
  • 1,447
3 votes
1 answer
552 views

Sizing a disk image/filesystem to hold exactly a certain set of files with near-zero free space

I need to construct, in code suitable for scripting/make/automation, a disk image (two partitions, a FAT filesystem and an ext4 filesystem, for UEFI/Syslinux USB Linux booting [OS installer], which ...
Vercingatorix's user avatar
6 votes
1 answer
2k views

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

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 ...
Edward Falk's user avatar
  • 1,953
0 votes
1 answer
404 views

FreeBSD's mount: how to get umask functionality?

In FreeBSD, similar to Linux, a FAT32 formatted external volume (da0) is mounted by root with: mount -t msdosfs /dev/da0 /media/usb But all files and directories in /media/usb/ now have the ...
viuser's user avatar
  • 2,564
2 votes
0 answers
569 views

Disable atime and diratime on USB flash drive with udev

I have a USB flash drive which is used for doing backups. I've noticed that when I do the backups, the access times for files and folders are getting updated. Is there any way I can disable the ...
Zauberin Stardreamer's user avatar
2 votes
2 answers
1k views

Copying to USB drive modifies filename

I have a bash script which copies data across to a USB stick. It works. The data is copied across fine, but the filenames are always changed. They are the same as they were before, but any longer ...
user avatar
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....
racitup's user avatar
  • 221
2 votes
0 answers
891 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
15 votes
1 answer
2k views

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 ...
arash javan's user avatar
5 votes
2 answers
856 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
  • 17.5k
5 votes
1 answer
6k views

Why does Linux mark FAT as 'dirty' simply due to mounting it?

If I put a USB memory stick (FAT formatted) into a Windows PC, then unplug it without "ejecting" it, then put it in again, Windows is okay with that, without giving any warning about it "possibly ...
Craig McQueen's user avatar
0 votes
0 answers
109 views

USB drive not working on Windows after connecting it to Fedora

When I connect my USB with FAT file system to Fedora and after that when I try to connect it to my Windows 8 machine, it says that drive is "corrupted or data is unreadable". This error does not ...
mad max's user avatar
  • 103
0 votes
2 answers
802 views

Peristent LiveCD: Allow user to write-access to usb key

Using kubuntu liveCD in persistent mode, I'd like to allow user to write on boot usb key (to put data out of "casper" file). USB (root) is auto mounted in /cdrom kubuntu is "main" user (uid 999) Up ...
asvdw's user avatar
  • 1
1 vote
1 answer
8k views

How to finally mount FAT16 USB flash drive

I have 4GB USB flash drive stick plugged into laptop on debian 8.1. It contains one bootable partition 2GB created and formatted as FAT16 in Windows. What only I did try everything didn't. Maybe I am ...
Qeeet's user avatar
  • 601
0 votes
0 answers
87 views

After rsync no files exist

From my Ubuntu server I used rsync to copy all my data to my USB drive (FAT). After copying the data (it needed quite a while to copy so I guess the copying did happen) I deleted it from the server. ...
Jake B.'s user avatar
  • 143
3 votes
3 answers
1k views

openSUSE Live USB with windows-accessible FAT32 partition

I have a 64gb flash drive. I want to set it up so I can use it for windows-accessible Fat32 data storage while also being able to boot to it using a large (20-30gb) persistent openSUSE live USB ...
TheBlackCat's user avatar