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
1
vote
2answers
37 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 ...
1
vote
1answer
33 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 ...
0
votes
1answer
111 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 ...
4
votes
0answers
42 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 ...
2
votes
1answer
51 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 ...
1
vote
1answer
142 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 ...
0
votes
0answers
49 views

How did my usb change from ext4 to FAT format without me changing it?

I formatted a brand new sandisk usb to ext4 in ubuntu 18.04.2. I have been alternating its use between ubuntu 18.04.3, 64-bit, and debian 10 / armbian, 32-bit. I have been adding files to it until ...
1
vote
1answer
64 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 ...
5
votes
1answer
124 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 ...
2
votes
0answers
58 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 ...
40
votes
3answers
4k 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:...
0
votes
2answers
1k 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 ...
1
vote
1answer
530 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 ...
3
votes
2answers
621 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 ...
0
votes
2answers
165 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] ...
1
vote
1answer
422 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 ...
0
votes
0answers
1k 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 ...
4
votes
2answers
178 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 ...
0
votes
1answer
258 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 ...
1
vote
0answers
23 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 ...
1
vote
1answer
86 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 ...
1
vote
0answers
34 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 ...
0
votes
1answer
443 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 ...
1
vote
1answer
370 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!...
1
vote
0answers
60 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 ...
0
votes
1answer
253 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 ...
2
votes
0answers
817 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: ...
2
votes
1answer
278 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 ...
4
votes
1answer
812 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 ...
0
votes
1answer
229 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 ...
2
votes
0answers
313 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 ...
1
vote
2answers
875 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 ...
2
votes
1answer
385 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
0answers
569 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 ...
15
votes
1answer
1k 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 ...
6
votes
1answer
502 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 ...
3
votes
1answer
3k 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 ...
0
votes
0answers
91 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 ...
0
votes
2answers
499 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 ...
1
vote
1answer
5k 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 ...
0
votes
0answers
53 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. ...
3
votes
3answers
861 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 ...
22
votes
1answer
850 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 ...
1
vote
2answers
798 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 ...
3
votes
1answer
296 views

Writing to exfat doesn't persist between mounts?

I... Bought a microSD card to store music on, for my Samsung Galaxy S4. Inserted it into the S4 and formatted the card (exFat). Installed fuse-exfat and exfat-utils and inserted the card into my ...
1
vote
1answer
1k views

Repair or recover seemingly damaged partition on USB external disk

A friend brought this WD My Passport external harddrive to me to see if I could recover her files. The device is "not working" after a power outage. As per her testimony, when the device is connected ...
1
vote
2answers
934 views

FAT file-system between the MBR and first partition

I have an old 64MB USB flash-disk which seems to have MBR: root@3:~# fdisk -lu /dev/sdd Disk /dev/sdd: 64 MB, 64880640 bytes 2 heads, 54 sectors/track, 1173 cylinders, total 126720 sectors Units = ...
2
votes
1answer
681 views

FAT Mountoption allow_utime explained

I trying to figure out what the following Mountoption for (v)FAT exactly does (in Linux): allow_utime=### -- This option controls the permission check of mtime/atime. 20 - If ...
3
votes
1answer
11k views

mkfsdos: define the size of FAT16|32 file system on USB pendrive in Linux

Question: How does one define the size of a FAT16 / FAT 32 file system with mkdosfs in Linux I want to create a, say 2 GB FAT16|32 filesystem on a partition in the size of 8 GB or more? This is how ...
0
votes
1answer
342 views

Making a FAT disk write-only or “hidden” [closed]

I have a USB device that by itself writes to some built-in flash memory. When it's plugged into a PC, it works like a USB mass storage device with a FAT fs. The device cannot be configured in any ...