NTFS, fat32, exfat, could I theoretically create my own filesystem? If so would my computer even be able to work with most files or connect to other devices?
This is why I love Lemmy, I can ask this obscure, unrealistic question, and people will still answer it with the “yeah you probably shouldn’t but here’s how you could”
Yes you can but be careful to not turn into a murderer on the way.
Best i can do is cereal killer. Nom nom nom
You can! All of those filesystems you mentioned were created by people, and you can do it just the same way. It is, however, quite a lot of work to get something as good as any of those, let alone better. You’ve also hit on one of the problems - nothing else is going to support your filesystem.
If you’re interested in trying anyway, just out of curiosity, do a little research into FUSE, Filesystem in Userspace. FUSE is a tool that lets you write a filesystem without needing to integrate with the very low-level parts of the operating system, which takes some burden off of your implementation.
Google fails me but my favorite application for FUSE was storing files in headers of ICMP packets using network latency for persistence.
The harder drive! https://youtube.com/watch?v=JcJSW7Rprio
Yeah take a look at TempleOS and it’s filesystem RedSea.
TempleOS is a rabbit hole in of itself, RIP Terry.
Yes you can, for example here is how to use internet pings as a file system:
yarrick/pingfs: Stores your data in ICMP ping packets https://share.google/ydjcBAcA6koD0PuRt
I would really appreciate it if you could provide a different link.
Yes, you can design your own filesystem format and make a driver for that and use it on your computer
It would be insanity, but you could.
Basically: Filesystems are hard to make. Really really hard.
Anything can be a hard drive if you are creative enough.
NTFS, fat32, exfat, could I theoretically create my own filesystem?
Yes. There are many different file systems and you can absolutely create your own. Making one that is reliable and performs well, and/or is something you can actually use for the disk that you boot from, generally involves low-level kernel programming and years of work - and is not exactly a beginner’s programming project.
However, you can also more easily play with implementing filesystems in a high-level language using FUSE.
If so would my computer even be able to work with most files or connect to other devices?
Your computer can use many different filesystems at the same time. You can also store a filesystem in a file on another filesystem, rather than dedicating a partition of a physical disk to it. So, yes, you can use a filesystem of your own design at the same time you are using other storage devices formatted with more common filesystems.
Building a filesystem essentially means linking a directory of filenames to physical blocks and handling CRUD operations. It’s not that hard. The hard part comes when you go beyond the basics to build something efficient with useful features. For example, fast access, journaling and fragmentation are all challenging topics. You can try without messing with the kernel by creating an in-memory filesystem (essentially a block of RAM) and playing with the I/O.
Look up reiserfs.
You can do anything if you put your mind to it.
Like murder your estranged wife and watch support for your FS collapse, right?
Did I stutter?
People have and do, but the effort is ridiculous and requires some very high-level computer science or computer engineering skills.
Yea, I made a shitty one in my undergrad Operating Systems class.
If you just want to do it for the fuck of it look at how old simple filesystems like FAT12 work and implement them in whatever high-level programming language you’re most comfortable, maybe with FUSE as others have suggested since there are beginner-level tutorials for that.
FYI you might be interested in WinBTRFS:
https://github.com/maharmstone/btrfs
Which is basically what you are describing: shoehorning support for a new file system into Windows.
Linux in particular has all sorts of exotic and special purpose filesystem, like swap on spare GPU VRAM, software managed SSD stacks and such.
There’s also ways to support ext3-4 on windows as well. And FUSE is also very interesting as it shows you what kind of esoteric stuff can be mapped onto a fake file system.
Lots of good answers, especially using FUSE for experimentation. One thing I’ll add is that if you just didn’t want to use any filesystem at all … you don’t have to!
At least in the Unix realm, a disk drive is just a bunch of contiguous blocks, and you can put whatever you want in them. Of course, Unix itself famously needs a filesystem for itself, but if you want to just store all your giant binary blobs – cryptocurrency block chain? – directly onto a drive without the pesky overhead or conveniences of a filesystem, that’s doable.
It’s not generally a useful idea to treat a disk drive as though it’s a tape drive, but it does work. And going further into that analogy, you can use “tar” to collect multiple files and fit them onto the drive, since a tarball preserves file metadata and the borders between files, but not much else. This is the original use of tar – “tape archive” – for storing Unix files onto tape, because the thought of using tape as working storage with a filesystem was – and still is – a terrible idea. And that’s basically the original impetus for a filesystem: it’s better than linear access media.