AU
  
You are currently viewing the Australia version of the site.
Would you like to switch to your local site?
16 MIN READ TIME
Filesystems

What’s in a filesystem?

Mats Tage Axelsson explains how your filesystem keeps everything running smoothly and when it might help for you to do something about it.

OUR EXPERT

Mats Tage Axelsson can be counted on to find new ways to simplify your Linux usage in complex ways. Anything to seem as cool as he thinks he is.

Whenever your computer starts, it uses the filesystem on your disk. Nothing runs without W it. This makes everything dependent on this part of your experience. Filesystem access is most obvious on boot and when you start applications – opening new files, saving them and keeping them safe through hard times and failures.

Throughout the history of Linux, the filesystem has evolved from a simple thing to a marvel of precision. Support for the size of disks increased over the decades since the first version. In the early ’90s, most computers would risk a total disk crash if shut down improperly. This risk is close to zero in modern systems thanks to new features in filesystems, the key one here being journaling.

Designers can also change the filesystem without redesigning anything else in the kernel – this feature is called the Virtual File System, VFS.

In the future, improvements will go further by adding more granular control of degradation of data during operation. Did you know that flipping a single bit in a JPEG can cause damage over the entire image? With Btrfs and XFS, you can protect against such flaws. This shows the value of such next-gen filesystems.

The history of Linux filesystems starts before Linux itself. For the first iteration of the Linux kernel, Torvalds used the Minix OS. This was an obvious choice, as its purpose was education. It was a tool for computer science students to learn how to make an OS.

NTFS: GOOD OR BAD?

As Linux lovers, we have a serious suspicion of anything Microsoft. That said, NTFS, originally for Windows, is quite good. Windows first used the FAT (File Allocation Table) system, which has pointers to files. In the upgrade, NTFS has the MFT (Master File Table), which contains pointers to files and, if small, the files themselves. There is also a safety copy of the MFT on disk. This can make handling small files really fast. The only caveat is that it causes problems when you have too many small files. The MFT gets full and has to be re-arranged too often, causing drag. One powerful thing about the MFT is that it can cache small files, making it more likely to avoid fragmentation. The disk space for a file can be chosen pre-emptively.

It also uses a b-tree structure (compare Btrfs – the b-tree fs), making file search fast. In addition, it uses journaling and logging to recover files after a failure. This allows the system to write files that were only half written to disk in a crash. Compression is also built in, in contrast to the older FAT32 system.

With all these features, and big enough files, the NTFS system is actually pretty decent. After all, many businesses rely on it.

NTFS: GOOD OR BAD?

As Linux lovers, we have a serious suspicion of anything Microsoft. That said, NTFS, originally for Windows, is quite good. Windows first used the FAT (File Allocation Table) system, which has pointers to files. In the upgrade, NTFS has the MFT (Master File Table), which contains pointers to files and, if small, the files themselves. There is also a safety copy of the MFT on disk. This can make handling small files really fast. The only caveat is that it causes problems when you have too many small files. The MFT gets full and has to be re-arranged too often, causing drag. One powerful thing about the MFT is that it can cache small files, making it more likely to avoid fragmentation. The disk space for a file can be chosen pre-emptively.

It also uses a b-tree structure (compare Btrfs – the b-tree fs), making file search fast. In addition, it uses journaling and logging to recover files after a failure. This allows the system to write files that were only half written to disk in a crash. Compression is also built in, in contrast to the older FAT32 system.

With all these features, and big enough files, the NTFS system is actually pretty decent. After all, many businesses rely on it.

When you run the fdisk program, it shows a long list of filesystems you can create on a disk.
Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for $1.48
SUBSCRIBE NOW
30 day trial, then just $14.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
April 2024
VIEW IN STORE

Other Articles in this Issue


LINUX FORMAT
LINUX FORMAT
The #1 open source mag
WELCOME
MEET THE TEAM
LINUX FORMAT
Back to basics
For anyone looking to learn the basics of
REGULARS AT A GLANCE
Newsdesk
New Mozilla CEO to double down on Firefox
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com
Mailserver
WRITE TO US Do you have a burning
HotPicks
THE BEST NE W OPEN SOURCE SOF T WARE ON THE PL ANET
MICROSOFT INVASION!
When an immovable penguin meets an unstoppable corporation, always bet on the penguin…
REVIEWS
GeForce RTX 4070 Super
Jarred Walton considers what’s so super about mid-cycle updates.
Linux Mint 21.3
Nate Drake keeps things Minty fresh with this incredibly intuitive and powerful Linux distro. Be sure to add some spices.
AV Linux MXE-23.1
Nate Drake puts his ear to the ground to hear the latest version of AV Linux, Enlightenment, rumbling into town.
Solus 4.5 Resilience
Nate Drake’s Irish eyes are smiling at this latest offering from Solus, with improvements to the desktop and under the hood.
SDesk 2024.01.26
Nate Drake discovers the new kid on the block, SDesk, including shiny toys such as Wayland and a brand new browser.
ROUNDUP
Retrogaming distros
WE COMPARE TONS OF STUFF SO YOU DON’ T HAVE TO!
The verdict
Retrogaming distros
Hacker’s toolkit
After an extended break, alleged hacker Jonni Bidwell emerges from the shadows to teach you the noble art and keep you out of trouble.
Pi USER
Raspberry Pi supports T Level students
“What’s a T Level?” we hear you ask. Don’t worry, we didn’t know either…
MX Linux 23.1 Pi
Les Pounder spends all day tinkering with Raspberry Pis and the latest MX Linux has got him in a spin.
NVMe Base Pi 5
Everyone, says Les Pounder, is based, especially regarding Pimoroni!
Scare your enemies with a Pi prank box
Yes, Les Pounder is very scary, but buying OEP3W amplifiers from AliExpress is worse. He wonders what pranks he can pull with them…
Enhance your Pi-vacy
A man who likes to keep himself to himself, Christian Cawley explains how to keep online activity private when using a Raspberry Pi.
IN DEPTH
THE PAW-FECT DISTRO
Nick Peers can hardly ‘container’ himself after taking the Puppy Linux developer’s new distro for a good run off the lead.
TUTORIALS
Parallel compression
Parallel processing, the computing equivalent of juggling, as Shashank Sharma calls it, can be used to perform everyday tasks to save time.
Get more from your virtual machines
VIRTUALBOX
Moving rooms and sharing your game
ADVENTURE GAME STUDIO Credit: www.adventuregamestudio.co.uk
Fix LEDs with some coded CAD models
OPENSCAD Credit: http://openscad.org
Take the Rust-based kernel for a test run
MAESTRO Credit: https://github.com/llenotre
ADMINISTERIA
Disk management
Stuart Burns isn’t boring, he’s essential – just like looking after your disks
The Pi 5 as a mini server
A sysadmin’s perspective on setting up and running a new Raspberry Pi 5 for Docker and beyond.
Yodeck
Jonas P DeMuro dusts off his Raspberry Pi so he can take a quick overview of this digital signage service.
Hostinger
James Capell is just the guy to try out a web host that’s easy enough for your granny to use.
Framework
Three years on, the DIY laptop concept has come of age. 
Framework Laptop 16
Slapping parts together, Dave James takes this modular laptop with upgradable GPU for a spin. 
CODING ACADEMY
Revealing the shell behind the shell
In the last iteration of the shell, Ferenc Deák managed to reveal the password for his home computer…
Develop games for the CBM-64
David Bolton demonstrates how to develop games in 6502 for the Commodore 64 and run them on the Vice emulator in the 21st century!
ADVERTISEMENT
The Brain Tumour Charity
thebraintumourcharity.org
Linux Format
www.magazinesdirect.com/LIN/C79L
FUTURE
magazinesdirect.com
Techradar
www.techradar.com
BACK ISSUES
www.magazinesdirect.com
LINUX FORMAT
www.magazinesdirect.com/linux-format
The Python Book
magazinesdirect.com
TOM'S HARDWARE
The Python Book
magazinesdirect.com
Code Club
www.codeclub.org.uk
EFF.ORG
Go Compare
Chat
X
Pocketmags Support