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
5 votes
1 answer
2k 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) /...
user avatar
  • 163
2 votes
1 answer
217 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 ...
user avatar
  • 41
0 votes
1 answer
499 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 ...
user avatar
27 votes
1 answer
3k 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, ...
user avatar
  • 5,916
2 votes
2 answers
61 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
49 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-...
user avatar
3 votes
0 answers
106 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 ...
user avatar
  • 2,969
1 vote
4 answers
497 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 ...
user avatar
1 vote
1 answer
207 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 ...
user avatar
3 votes
1 answer
8k 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 ...
user avatar
  • 31
4 votes
0 answers
247 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 ...
user avatar
  • 41
3 votes
1 answer
261 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 ...
user avatar
1 vote
1 answer
553 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 ...
user avatar
  • 295
1 vote
1 answer
103 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 ...
user avatar
  • 1,645
7 votes
1 answer
2k 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 ...
user avatar
  • 75
1 vote
0 answers
71 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 ...
user avatar
  • 27
43 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:...
user avatar
1 vote
2 answers
3k 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 21
6 votes
2 answers
3k 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 ...
user avatar
  • 15.5k
0 votes
2 answers
263 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] ...
user avatar
  • 101
1 vote
1 answer
1k 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 ...
user avatar
  • 33
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 ...
user avatar
4 votes
2 answers
284 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 ...
user avatar
  • 2,163
0 votes
1 answer
641 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 ...
user avatar
1 vote
0 answers
28 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 ...
user avatar
1 vote
1 answer
124 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 ...
user avatar
1 vote
0 answers
37 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 ...
user avatar
1 vote
1 answer
570 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 ...
user avatar
  • 951
1 vote
1 answer
597 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!...
user avatar
  • 1,778
1 vote
0 answers
77 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 ...
user avatar
0 votes
1 answer
353 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 ...
user avatar
  • 44.5k
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: ...
user avatar
  • 1,217
2 votes
1 answer
402 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 ...
user avatar
6 votes
1 answer
1k 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 ...
user avatar
  • 1,803
0 votes
1 answer
338 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 ...
user avatar
  • 2,294
2 votes
0 answers
415 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 ...
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
563 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....
user avatar
  • 161
2 votes
0 answers
787 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 ...
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 ...
user avatar
5 votes
1 answer
724 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 ...
user avatar
  • 16.4k
3 votes
1 answer
5k 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 ...
user avatar
0 votes
0 answers
94 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 ...
user avatar
  • 93
0 votes
2 answers
693 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 ...
user avatar
  • 1
1 vote
1 answer
7k 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 ...
user avatar
  • 551
0 votes
0 answers
63 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. ...
user avatar
  • 133
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 ...
user avatar
23 votes
1 answer
1k views

dpkg replacing files on a FAT filesystem

When you upgrade or reinstall a package with dpkg (and ultimately anything that uses it, like apt-get etc) it backs up the existing files by creating a hard link to the file before replacing it. That ...
user avatar
  • 808
1 vote
2 answers
986 views

/etc/fstab/ rw option is being ignored for mircosd card partition in ArchLinux

I have ArchLiinux Linux comp001 3.18.7-1-ARCH #1 PREEMPT Wed Feb 11 11:38:34 MST 2015 armv6l GNU/Linux for Arm installed on rPi and here is my /etc/fstab file: # # /etc/fstab: static file system ...
user avatar
  • 1,076