Settings

Theme

A minimum complete tutorial of Linux ext4 file system (2017)

metebalci.com

169 points by giis 2 years ago · 31 comments

Reader

buredoranna 2 years ago

Awhile back I put together a visualization of ext4.

https://buredoranna.github.io/linux/ext4/2020/01/09/ext4-viz...

  • mixmastamyk 2 years ago

    Thanks. I really do miss the disk visualizations of the DOS and Norton Disk Doctor diagnostics and defragmenters from the old days. The one for the original Mac was pretty incredible due to high res graphics, even had color coded filetypes, etc if memory serves.

    Linux never had a good one to my knowledge. Improved filesystems reduced the need and then SSDs delivered the deathblow.

    But I feel like the visualization was useful in itself to see what was happening on the storage device and unfortunately forgotten due to those improvements.

    • fuzzfactor 2 years ago

      >really do miss the disk visualizations of the DOS

      Even Windows XP had a graphical representation of the disk contents, and it animated during defrag.

  • doubloon 2 years ago

    thats very cool. i feel like a long time ago we used to be able to cat /dev/hda1 > /dev/video ? but maybe im imagining things. i know you could do it with audio.

    • loxias 2 years ago

      Yeah, it would work with /dev/dsp, the primary interface for audio IO in Open Sound System (OSS) -- the first media API for nx operating systems. Around the turn of the century it was replaced in the Linux kernel by the Advanced Linux Sound Architecture (ALSA). Which, to this day, is still the "lowest level" high performance way to do audio w/ linux.

      As for _visualizing_ the audio as video, no, that was never possible w/o writing code. =) And to do it _well_, you need to do some math as well. I say this because I wrote that code in 2001, 2003, then again in 2008, then again later... it's a ... hobby of mine :)

    • colanderman 2 years ago

      /dev/fb0, yes you could do that if you configured your system to use framebuffers.

  • tptacek 2 years ago

    This is fantastic.

    • buredoranna 2 years ago

      Thanks for saying so :)

      • fuzzfactor 2 years ago

        Agree, it's awesome.

        It would be good to see example animated GIFs of current Windows-11-formatted FAT32 and NTFS volumes on the same-sized partitions.

        Maybe even comparison to recent but unsupported OS like Windows 10 version from 2015, Windows 8, or Windows 7.

        And see how closely the current or former mkfs in Linux compares when it is employed to create FAT32 or NTFS volumes on the same size partitions.

  • killjoywashere 2 years ago

    #keeper

mathiasgredal 2 years ago

Does anyone know if there exists a tool that can convert tarballs to filesystems and back. I know you can make a loopback device, but it can be pretty hard/impossible to do inside a container, and often requires special flags and privileges.

rollcat 2 years ago

It's absolutely fantastic, how gracefully ext2/3/4 stood the test of time, for something designed in early 90s by people who hadn't had 30+ years of kernel hacking in their pockets (yet). While I generally prefer ZFS, ext4 remains a rock solid choice - I rarely have a reason to pick anything else (on Linux, at least).

sipofwater 2 years ago

Uses the ext4 file system --> "LUKS encryption and decryption: In the cryptsetup-laboratory with Termux (running under the Android 11 operating system), "cryptsetup reencrypt --disable-locks --type luks2", no root access, no loop device, and an unusable "mount" command.": https://old.reddit.com/r/termux/comments/18am78j/luks_encryp... (old.reddit.com/r/termux/comments/18am78j/luks_encryption_and_decryption_in_the/)

sitzkrieg 2 years ago

i am baffled this article used a usb stick instead of a file where it could have saved a lot of unnecessary i/o, but a good writeup. i had to implement ext4 support in something back in like 2017 and wish something like this existed

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection