What FS should I use?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Cyao
Member
Member
Posts: 78
Joined: Tue Jun 07, 2022 11:23 am
Libera.chat IRC: Cyao
Location: France
Contact:

What FS should I use?

Post by Cyao »

Hi all!

Now it is the time that I choose a file system, I've looked into FSes for a little while and I've got these candidates:
- Ext2 (or 4)
- HFS+
- ZFS
- Maybe APFS? (Heard that apple don't copyright their stuff)

What do yall think about the file systems I choosed? or is there some better fs?
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What FS should I use?

Post by iansjack »

Unless you are very experienced with implementing file systems (in which case why would you pose this question?), I’d stick with something simple.

Ext2.
User avatar
BenLunt
Member
Member
Posts: 941
Joined: Sat Nov 22, 2014 6:33 pm
Location: USA
Contact:

Re: What FS should I use?

Post by BenLunt »

I will second iansjack's suggestion. Unless you are quite fluent in file systems, I would stick with the simple ones.

SFS is a very simple file system, though it is designed to be a "write once" style file system. You write files to a transferable media with the intent of transfer only.
LeanFS is a simple file system to implement, though contains quite a few of the things "bigger" file systems have, like extents and POSIX.
I would recommend FAT12/6/32 for sure, since it is a widely used file system.

Ben
Cyao
Member
Member
Posts: 78
Joined: Tue Jun 07, 2022 11:23 am
Libera.chat IRC: Cyao
Location: France
Contact:

Re: What FS should I use?

Post by Cyao »

iansjack wrote:Unless you are very experienced with implementing file systems (in which case why would you pose this question?), I’d stick with something simple.

Ext2.
Mhm ok ill stick with ext2, do you know some utilities on macos that can make a ext2 fs? Couldn't find anything on the internet.
BenLunt wrote:I would recommend FAT12/6/32 for sure, since it is a widely used file system.
Nah I'm going to overthrow Microsoft one day, so I'm not using their stuff :)
User avatar
BigBuda
Member
Member
Posts: 104
Joined: Fri Sep 03, 2021 5:20 pm

Re: What FS should I use?

Post by BigBuda »

I like JFS a lot. Quite stable, low CPU usage.
Writing a bootloader in under 15 minutes: https://www.youtube.com/watch?v=0E0FKjvTA0M
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What FS should I use?

Post by iansjack »

Cyao wrote:
iansjack wrote:do you know some utilities on macos that can make a ext2 fs?
mkfs.ext2 on Linux.
User avatar
BigBuda
Member
Member
Posts: 104
Joined: Fri Sep 03, 2021 5:20 pm

Re: What FS should I use?

Post by BigBuda »

iansjack wrote:mkfs.ext2 on Linux.
He specifically asked in Mac OS...
Writing a bootloader in under 15 minutes: https://www.youtube.com/watch?v=0E0FKjvTA0M
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What FS should I use?

Post by iansjack »

BigBuda wrote:
iansjack wrote:mkfs.ext2 on Linux.
He specifically asked in Mac OS...
Where?

Not in this thread. He mentioned Apple file systems, but he also mentioned Linux and Solaris ones.
User avatar
BigBuda
Member
Member
Posts: 104
Joined: Fri Sep 03, 2021 5:20 pm

Re: What FS should I use?

Post by BigBuda »

iansjack wrote:Not in this thread. He mentioned Apple file systems, but he also mentioned Linux and Solaris ones.
Cyao wrote:do you know some utilities on macos that can make a ext2 fs?
Read carefully the above quote... that you quoted yourself.

It's in his second message in this thread.
Writing a bootloader in under 15 minutes: https://www.youtube.com/watch?v=0E0FKjvTA0M
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What FS should I use?

Post by iansjack »

Ah, I misread that as “or macros”.

In that case, install Linux in a VM. It’s much better for OS programming anyway.

There are utilities available on Mac OS via brew, and a commercial offering from Paragon - easily found via Google.
Cyao
Member
Member
Posts: 78
Joined: Tue Jun 07, 2022 11:23 am
Libera.chat IRC: Cyao
Location: France
Contact:

Re: What FS should I use?

Post by Cyao »

iansjack wrote:There are utilities available on Mac OS via brew, and a commercial offering from Paragon - easily found via Google.
Ahh yes just found out there is this "e2fsprogs" that supplies mkfs.ext2 with it, thanks!
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What FS should I use?

Post by iansjack »

You’ll want to read the specification https://www.nongnu.org/ext2-doc/ext2.html
Post Reply