/r/filesystems

Photograph via snooOG

Links about usage of file systems, FS implementation and theory behind implementations. Floss or proprietary, legacy or alpha-stage.

Links about usage of file systems, FS implementation and theory behind implementations. Floss or proprietary, legacy or alpha-stage.

Subreddits related to filesystems:

/r/filesystems

2,384 Subscribers

3

efs, a no_std library for filesystems

0 Comments
2024/04/28
16:21 UTC

2

Cost of a FS driver writing.

Hey, everyone.

I have maybe a little bit silly question, yet I seriously need the guide on the subject.

The question is in the title, here is detail. Say, there is the need to have a Windows driver for a journaling FS, of the same era and capabilities as NTFS, let it be JFS or BFS. So, if one decided to develop such or oppositely - hire a developer to write it for them, what amount of $ the development would be? The driver will be full support: reading/writing/journaling, plus relevant utilities ported, but excluded support for booting from such a volume, that is with no relevant Boot Sector code in the loader, neither for BIOS nor for UEFI environments.

Thank you in advance for your serious answers.

7 Comments
2024/04/20
01:17 UTC

0

If Filesystems Were People

Okay, hear me out on this weird thought experiment. What if filesystems had personalities? Which one would you be? I've got some ideas:

  • NTFS: The Reliable Workhorse
    • Emotion: Calm and collected
    • Handles the big jobs, always gets things done. Maybe a little rigid and set in their ways.
  • ext4: The Linux Loyalist
    • Emotion: Efficient and dependable
    • Values stability and open-source ideals. Can be a bit geeky and technical, sometimes dismissive of those less Linux-savvy.
  • FAT32: The Old Timer
    • Emotion: Nostalgic and friendly
    • Remembers the good old days. Simple, gets along with everyone, but not the best for cutting-edge tech.
  • exFAT: The Cross-Platform Peacemaker
    • Emotion: Versatile and adaptable
    • The diplomat, making sure Macs, Windows PCs, and everything else play nicely together. Might get spread a little thin trying to please everybody.

Which filesystem most matches your personality?

5 Comments
2024/04/12
14:07 UTC

2

Repair a corrupt exfat bitlocker encrypted partition?

Hey all, I've been digging around for a few days now and am having some issues figuring out how i can run fsck.exfat on a partition encrypted by bitlocker. I currently dual boot and have an SD card formatted with exfat to share files between windows and arch. In arch it automatically decrypts at boot and the same for windows.

For the last few weeks however, when running dislocker commands to unlock it or running mount -a (mount options are in my fstab and have been working for some time now) but i am unable to unlock the drive normally without waiting 5-10 minutes after boot and lately it has even been necessary to pop the SD card out and then when back in it opens up no issues. When I check journalctl on arch it says [CRITICAL] Error during reading the volume: not enough byte read. and that /mnt/media (where the dislocker-file mounts to) failed due to a dependency. It does not tell me what dependency but I would assume it means since to mount the dislocker file to my /mnt/media, it needs the initial dislocker-file under /mnt/dislocker/dislocker-file which isn't being created because of the error above.

When I am finally able to decrypt and mount the partition, i get an error WARN: volume was not unmounted cleanly.Even if I unmount it step by step before shutting down.

I bought a new SD card to move everything over to but thats just going to take such a long time so i wanted to try running fsck first but with the drive being encrypted it isn't recognized as exfat until it has been mounted, at which point I can't fsck a mounted drive lol. Not sure how I can get it to run like this or if there is a windows utility im missing to check disk health for bitlocker drives. Any help or input is greatly appreciated.

Thanks all!

0 Comments
2024/04/05
21:23 UTC

2

Where exactly is the first data sector on a FAT file system ?

Hello, I already asked this question on SO (filesystems - Where exactly is the first data sector on a FAT file system? - Stack Overflow), but I thought I'd share it here as well. So my issue is, I don't understand why there is a "BPB_BytsPerSec -1" in the formula for the number of sectors used by the root directory on a FAT formatted disk :

Formula for the first data sector on a FAT FS - fatgen103

As a matter of fact, if I just remove that term, or I choose to round down instead of rounding up, it gives me the expected result based on a dump I made of a disk image I have which is using FAT-12.

Any idea, why the formula always gives one extra sector ? (If you want more details, I would suggest you take a look at my SO post as it contains a more detailed explanation of my problem)

I'd really appreciate some help.

7 Comments
2024/03/29
23:05 UTC

4

FAT32 duplicate files with upper and lower case extension

I was just backing up some old files I stored on an old microsd card and I saw that some of my files are duplicate in terms of I have 2 Files one "hello.txt" and the other "hello.TXT". I am not sure whether there is different information in them, as when I try to do a md5sum it just uses the newer file. Newer in terms of later modification date. Both files have different dates. Thats why I think there has to be different information in them. Even though it may be not up-to-date, I still want to get a hold of both files, as I remember when I used these files that I lost some data and I think it may be because the software didn't recognize the uppercase extensions after an update and made new ones with lowercase extentions.

This is from windows file explorer.

I am now not sure how to access both files, as windows and also linux interpret them as being one and the same file, when I try to open them. Or maybe these are only artifacts in the filesystem, but I really would like to know, whether there is different data behind them.

Thanks in advance for ur help! <3

3 Comments
2024/03/21
16:48 UTC

1

Extent tree of different file systems

Hi all,

I just noticed that ext4 uses btree for its extent tree(https://elixir.bootlin.com/linux/v6.8.1/source/fs/ext4/extents.c#L1801) implementation, whereas xfs simply utilize the kernel's rbtree(https://elixir.bootlin.com/linux/latest/source/fs/xfs/xfs\_extent\_busy.h#L21).

May I know the reasoning behind this choice??

3 Comments
2024/03/19
01:50 UTC

4

Looking for OS+FS without file name restrictions

I imagine this must get asked frequently, but I've been searching for a half hour and haven't really turned up any relevant results. Maybe I'm not phrasing things correctly.

I'm looking for a file system and/or operating system that doesn't place restrictions on file names. I kinda have my own esoteric notekeeping conventions and like to use symbols and expressions everywhere. I'd also like to be able to embed things like scripts and regexes in file names.

Unfortunately, all the OS+FS combinations I'm aware of have a list of reserved characters that end up wrecking my plans. Surely I can't be the only one in this situation. I feel like someone out there must have solved this, and I just don't know where to look.

Closest I've found are WinFS and ReFS, which are long since defunct. Maybe there's a way to brute force it with S3, but I would probably have to forego OS support and could see it becoming more hassle than it's worth.

Any input would be appreciated. Thanks!

8 Comments
2024/03/18
23:20 UTC

Back To Top