217
questions
0
votes
0
answers
41
views
BPB_FATSz16/32 Values in the FAT32, 16 and 12 Filesystems
I'm currently writing a FAT formatting application and the FAT docs state the boot sector variable BPB_FATSz16 and BPB_FATSz32 but does not have any guidance on what appropriate values are for this ...
2
votes
0
answers
48
views
Undefined external "f_open" reffered in main , FATF library not recognised?
Hi all im trying to set up an SPI interface between an MSP430 FR4133 and an external SD Card Reader. I am coming across these errors
Error[e46]: Undefined external "f_open" referred in main (...
0
votes
0
answers
40
views
Assembly Error with NASM: TIMES value -23 is negative [duplicate]
I am a newbie to Assembly and I got the following error:
src/bootloader/bootloader.asm:292: error: TIMES value -23 is negative
make: *** [build/bootloader.bin] Error 1
I'm trying to create a basic ...
0
votes
1
answer
90
views
reading first sector of RDET in a FAT32 formatted USB drive results in all zeroes
I am currently working on a school project to read FAT32 formatted drive. I understand that the starting cluster of Rdet, number of bytes per sector, number of sectors per cluster are all located in ...
0
votes
1
answer
215
views
How do I change permissions on FAT32 USB drive on Raspberry Pi
I have a Raspberry Pi 4 operating as a Plex media server witgh an externalk USB drive as media storage, the drive mounts and it perfectly usable but after the reinstall of the latest OS I cant ...
1
vote
0
answers
88
views
Is there a way to use GetFileTime or Win API to account for DST time change on FAT32 without restarting the computer to update the FAT32 UTC cache?
I am looking for a way to account for DST time changes in file modified timestamps on FAT32 without having to restart the computer first after DST takes effect. As it is now I can only account for DST ...
1
vote
0
answers
48
views
Is there a way to compare NTFS and FAT32 last modified QDateTime's while accounting for the system configured time zone & DST?
Hi I need to be able to compare the last modified QDateTime's of two files that were copies of each other to tell if they have been modified and are no longer equal. One file is stored on an NTFS ...
1
vote
0
answers
67
views
mkfs.fat leave FAT32 fields in BPB at null value
I have problem that mkfs.fat leave FAT32 fields null with parameter -F 32. I am creating own bootloader and trying to read from EFI partition but somehow these values are at null value. Fields before ...
-1
votes
1
answer
183
views
Formatting and Filesystem Issues on SD Card - Differences in Boot Sector and Dirty Bit
I'm experiencing several issues with an SD card, and I'd like to provide more details to help the community understand the problem more comprehensively:
I'm using an SD card with my Android ...
0
votes
0
answers
211
views
FatFS cannot se files on PC
I have a problem with stm32l4r5 (nucleo-l4r5zi) and reading SD cards. I am using fatfs from https://01001000.xyz/2020-08-09-Tutorial-STM32CubeIDE-SD-card/. SPI and CS pins pulled up, prescaler 256. I ...
-1
votes
1
answer
205
views
Create bootable disk with large FAT32 partition from C#
I'm trying to create a bootable disk, e.g. a virtual disk or SD card, with the FAT32 file system from a C# code. It fails on two reasons:
Formatting FAT32 partition with the standard windows tools ...
1
vote
1
answer
835
views
arduino format and SD Card with an esp32 as fat32 that is connected as an SDMMC host
I am trying to format an SD card with an ESP32 connected to an SD card as a SDMMC host. I would like to figure out how to format it as FAT32 within the Arduino framework. Does anyone know if this is ...
1
vote
0
answers
47
views
C#: The application reading files from Fat32 disk resulting VM restarts
I'm currently reading files that are stored on FAT32 persistent disk on GCP. The disk is attached to a windows VM in read-only movie where the c# app reads the files. On starting the application, the ...
0
votes
0
answers
82
views
Failed File.Copy attempt to FAT and FAT 32 file systems makes the target file empty
If the file is located in the NTFS file system, everything seems to be fine. However, if the file is located on FAT or FAT32 file system, file's content is getting erased and it becomes a 0KB file ...
0
votes
0
answers
498
views
Access the EMMC flash on VxWorks
I want to access my EMMC from my VxWorks Software.
My hardware is - Kontron SMARC-sAMX6i
My VxWorks version - 6.9
I have formatted my EMMC to FAT32 using a Linux computer, and I can access it on the ...
1
vote
0
answers
315
views
EXFAT vs FAT32 speed for cpy -> exfat slower
As I'm working on an embedded system treating file management on media, I noticed that, using a same media (USB or SD, formated several times on both FAT32 and exfat fs), when I try to copy a file on ...
-1
votes
1
answer
924
views
Formatting an eMMC to SD format
I've been working with a Micron BGA eMMC chip and prototyping a communication scheme with the eMMC chip inside an adapter board that connects to the GPIO pins of a TI microcontroller.
I've essentially ...
0
votes
2
answers
478
views
How can I copy an existent BPB and put it in my bootloader code
I am currently working on a simple operating system (GitHub: https://github.com/Nutty000/PlanetOS)
I would like to make the os work on real hardware, but I am having trouble doing it because of the ...
0
votes
1
answer
483
views
readdir is returning lots of all-0xFF 8.3 names from fat32 filesystem
I'm working on an ESP32 platform with IDF 4.1, using code like this:
struct dirent * dirent;
while((dirent = readdir(dir)) != nullptr) {
ESP_LOGI("ConfigServer", "Found %s, id %d, ...
1
vote
2
answers
1k
views
How to format flash drive to FAT32 in macOS Big Sur?
When trying to format a flash drive to FAAT32 by using macOS, Bug Sur, Disk Utility only shows the APFS.
0
votes
0
answers
1k
views
How do I take a photo and save to microSD card while streaming video on ESP32-CAM
I am using an ESP32-CAM to stream video to a web address. This works fine. I would like to take a photo if possible while streaming and save it to the onboard micro SD card.
Here is my code for the ...
0
votes
0
answers
212
views
Can we write to FAT section for FAT32 file system on Windows 10?
I want to write to FAT/data sections to do something like create files.
Read whole sections is o.k, and write to sections prior to FAT/data section is o.k.
But got error code 5 (access deny) while ...
0
votes
1
answer
412
views
Reaching EOF before end of file on windows
#include <stdio.h>
#include <stdlib.h>
const int size = 512;
int main(int argc, char *argv[])
{
if (argc != 2)
{
fprintf(stderr, "Usage: ./recover image\n");
...
1
vote
1
answer
2k
views
Easy way to automatically generate short file name
I have a very old car radio that can play music from USB fash drives when they are formatted in FAT16 or FAT32, but it sorts files by the short 8.3 file name, not by the long file name.
I want to play ...
0
votes
0
answers
1k
views
Fixing corrupted WinCE 6.0 from USB or SD card
I have an ARM v4 device with touchscreen running Windows Embedded 6.0.
I am developing new app for it (as a replacement for the old one). Everything worked correctly but I accidentally renamed file ...
-2
votes
1
answer
1k
views
Is formatting a USB stick to NTFS a good idea? [closed]
I have a Sandisk dual drive USB stick which can be plugged into android and PC. I was wondering if I should format it to NTFS before using. I intend to use it for storing my important files from ...
0
votes
1
answer
190
views
FAT32 analysis on SD Card
I tried to analysis the format of FAT32 to use it later in a project containing SD card with FAT32 and a MCU but when I read the data of the SD Card with FAT32 the partition boot sector wasn't at 0 ...
4
votes
1
answer
114
views
How merge too big .txt files in only one?
I have 7 files (approximately 4.7 GB each one) and I want to merge them into a single file.
I tried:
$ cat file1 file2 file3 ... > NewFile.txt
and I got this:
cat: stdout: File too large
3
votes
2
answers
11k
views
FAT32 maximum partition size and fat table size?
i have two questions about FAT32 ,
The first if i want to format a partition with FAT32 using 32KB block size i think the maximum partition size i can get is :
2^28 * 32 = 8TB
but why i see them ...
1
vote
5
answers
1k
views
Do very large files create issues on modern file systems?
I'm developing an application which uses some large binary files - in the range 1GB - 25GB. The application will run primarily on servers and possibly the odd powerful/modern desktop PC. I could (a) ...
-1
votes
3
answers
3k
views
Pen Drive is not able play audio in audio player after formated as FAT32
Firstly I made my pendrive as bootable and after finished the stuff i formatted it as FAT32 and feed the songs into it , then i plugged into mp3 player in car to play the songs but mp3 player can't ...
4
votes
1
answer
9k
views
Mac OS High Sierra diskutil eraseDisk leads to Error: -69877: Couldn't open device [closed]
I am having issue converting a new SanDisk 128GB microSD card from ExFAT to FAT32
$ diskutil info /dev/disk2
Device Identifier: disk2
Device Node: /dev/disk2
Whole: ...
10
votes
4
answers
14k
views
MBRFormat does not appear to be a valid volume name for its file system
I am using macOS Mojave 10.14.6. I am trying to re-format my USB to FAT.
I am getting this error MBRFormat does not appear to be a valid volume name for its file system. What does it mean and how to ...
1
vote
0
answers
168
views
How to set permission to FAT32 USB pen drive in windows c/c++?
I want to restrict access to USB devices to prevent read/write access.
For NTFS file system I have done with Access Control List(ACL) but for FAT32 file system there is no ACL.
so how to restrict ...
0
votes
2
answers
250
views
applescript change timestamp of files recursevly (for sorting an FAT32-stick by name)
since there is no tool on mac to sort a USB-stick (FAT32) by name to play music files in a car that cannot sort the files by itself, i want to create a little applescript to do this.
There are tools ...
0
votes
1
answer
225
views
Why are there junk "files" in my Fat32 SD rood dir
I have been building a program to access files on a Fat32 micro sd card. However, when I run my program or open my SD card with a hex viewer to the root directory I can see my files but there are also ...
0
votes
1
answer
211
views
Disk image appears non-bootable when specifying a partition table in an MBR
I recently added a FAT32 partition table to my bootloader and now BIOS won't recognize it as a bootable MBR. I believe the binary is 512 Bytes and there is a valid signature. Is it something wrong ...
0
votes
0
answers
432
views
iPhone Memory Stick Windows Formatting (populating!) Q
SUMMARY: Cannot copy more than 32GB of files to a 128GB memory stick formatted under FAT32 or exFAT despite the fact that I can format the stick and ChkDsk is showing the correct results after ...
0
votes
1
answer
848
views
How to gracefully shutdown in Linux and prevent corruption in SDCARD
I am working on Embedded Linux System which mounts a SDCARD ( formatted as FAT32) and writes about 500KB of Data per second continuously .
Now to handle Power failures, we designed a battery which ...
0
votes
2
answers
2k
views
Reading directory contents in FAT32
I am trying to write bare metal FAT32 file system driver on RPI 3B.
I am able to read FAT sectors and root directory sectors using emmc driver.
I have doubt on how to follow FAT entries linked list ...
0
votes
1
answer
329
views
How do I change the filesystem of my 64GB USB, from FAT32 to anything which allows me to put a 35GB file from my x86_64 Linux machine onto the USB?
'uname -a' on my machine gives:
Linux ct-lt-966 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux
Currently the filesystem of my USB is MS-DOS 'FAT32' which has a ~4.5 GB maximum ...
0
votes
0
answers
212
views
Convert from FAT(little endian) to Big-endian
How to Convert the following sequence from little to big-endian: 5E 8D 70 6D. And please explain how to calculate it.
2
votes
0
answers
427
views
Android Device act as Client FAT32 mass storage to Windows Host
Is it possible to make an android application that would allow for a computer running windows to be connected to the Android via USB and for the Windows machine to believe that the android is a FAT32 ...
0
votes
1
answer
260
views
What do ? mean when looking at hexadecimal numbers for FAT entry values for the FAT32 filesystem?
I am writing an operating system, therefore I need to implement a filesystem. So I chose FAT32. I was looking up FAT entry values and for the values it gave numbers like: 0x?0000000. So my question is ...
0
votes
1
answer
2k
views
How can I add a filesystem to Cosmos?
I'm a bit of a novice with Cosmos(and c# in general), and I want to know if it is possible to create a file system (fat32, if it helps, but it doesn't have to be).
-1
votes
1
answer
139
views
rsync - same size, content, owner, group, permissions, time - yet it wants to copy
rsync - same size, content, owner, group, permissions, time - yet it wants to copy
Using macOS Mojave. Using the default filesystem in the source dir (apfs per df?), FAT32 in the dest dir (msdos per ...
1
vote
0
answers
692
views
FatFS f_write never returning
I am trying to write to a file on an SD card using an STM32F401RET6 development board. I am using an SDIO adapter I got on amazon (https://www.amazon.ca/gp/product/B07C26YZPK/ref=...
2
votes
1
answer
2k
views
undefined reference to `le16toh' error in Makefile
I'm trying to compile a C program with the following Makefile:
msh: libFAT32.so
gcc -Wall -fPIC -I. -o msh newTest.c -L. -lFAT32
libFAT32.so:
gcc -std=c99 -shared -o libFAT32.so -fPIC fat32....
0
votes
0
answers
373
views
windows API to access partitions on an SD card
Let's say I have an SD card with about 10 partitions on it, some of them ext4 and some of them FAT32. Windows (10) only shows and mounts the first FAT32 partition on the card in the file explorer. If ...
0
votes
0
answers
483
views
How to copy bytes from pointer into a char[]?
I'm currently trying to read/write a FAT32 disk.img. I use mmap() to map disk.img into memory. Here is the memory value represents in bytes:
4353 4333 3630 4653 0200 0000 1900 0000
0002 0000 0032 ...