The ext4 or fourth extended filesystem is a journaling file system for linux/*nix developed as the successor to ext3.
Questions tagged [ext4]
469 questions
0
votes
0 answers
resize2fs -M doesn't remove all (most) free blocks
I'm trying to create a smaller version of a Rasbian OS Lite image. I have tried to run resize2fs -M /dev/sda2 on the SD card root partition.
But as you can see below, after resize2fs there is still a huge number of free blocks. Mounting it you can…

maloo
- 101
- 1
0
votes
0 answers
Discover EXT4 (or other) Linux file system (e.g. bootable?)
I want to be able to identify whether some older SATA HDD's have Linux partitions. With the advent (and my fairly recent discovery) of Windows Subsystem for Linux (WSL) on Windows, I realize options have been improved, but i'm not sure it helps with…

J S
- 1
0
votes
0 answers
How to recover file system (ext4) on raid5?
I have an ext4 file system on a raid5 array, /dev/md0 built from mdadm.
I found it wasn't mounted after I reboot once. And I ran a fcsk on it but get a superblock error.
So I was going to run mke2fs -n /dev/md0 to get the information of backup…

Programus
- 101
- 1
0
votes
0 answers
Upgrade to KeyCloak 18 fails
I have a KeyCloak 17.0.1 that is apparently working without issues on my server, configured to use MariaDB. I say "apparently" because, as of today, it's not in production yet, albeit it starts in production mode, but it is on a development server…

Lucio Crusca
- 420
- 3
- 12
- 33
0
votes
1 answer
Wrong ext4 filesystem free space
We have a linux server with LVM. Looking the space availability with df -h the difference between filesystem size and used space is not zero but the available space is zero.
This is the output of the df -h
Filesystem Size Used Avail Use%…

combas
- 1
0
votes
1 answer
mkfs.ext4 -m -T options
How can I find out if I formatted the drive with
mkfs.ext4 -m 0 -T largefile4
or without specifying the options -m and -T
mkfs.ext4
In other words how can I see what is the -m reserved-blocks-percentage and -T usage-type of a formatted drive?

ThomasHunter
- 5
- 3
0
votes
1 answer
Ways to debug root partition not unmounted on reboot
I have a problem where every time I reboot a Linux system (Ubuntu-based), the root filesystem is not unmounted successfully.
Doing a fsck after a reboot results in output like:
Recovering journal [...] clearing orphaned inode [...]
The message…

Andrey W.
- 101
0
votes
0 answers
Recovering a file by mounting a Synology RAID1 disk in Ubuntu (mount, mdadm, and losetup issues)
I'm working with a Synology RAID1 system and deleted a file that wasn't yet backed up. To recover the file, and since an undelete approach seems to be impossible, my idea is to mount a single RAID1 disk in Ubuntu 20.04 LTS and search for it, but I'm…

jay.sf
- 101
- 3
0
votes
0 answers
mkfs + any solution for “could not read block” or disk replacing
we doing mkfs on the disk sda as the following
mkfs.ext4 -j -m 0 /dev/sda -F
mke2fs 1.42.9 (28-Dec-2013)
Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write
Filesystem label=
OS type: Linux
Block…

King David
- 549
- 6
- 20
0
votes
1 answer
directory listing hangs after directory was flooded with > 5 million files
A misconfigured logrotate produced a lot of files in a directory on my server. ls | wc -l showed 5,387,172 files and according to du -sh this summed up to about 8 GB. dmesg showed many errors like this:
[16718682.749947] EXT4-fs warning (device…

yankee
- 177
- 2
- 6
0
votes
1 answer
between ex4 and XFS which is better for large small files
Between EXT4 and XFS which file system is better when an application uses multiple threads to read/write large amount of small files on a SSD.
From what I read
In general, Ext3 or Ext4 is better if an application uses a single
read/write thread and…

kumar
- 309
- 2
- 8
- 22
0
votes
4 answers
What is the purpose of having a "/" and a "/home" partition in linux?
I'm doing a clean install of CentOS 8 minimal, and by default it suggests these paritions:
swap swap 4G
/boot ext3 512M
/ ext4 2014G
/home ext4 all
(this is with a pair of 4TB NVMe drives in software RAID 1)
I understand the need/benefit of…

Codemonkey
- 1,086
- 4
- 19
- 41
0
votes
1 answer
weird filesystem behavior (corruption?)
Something very weird I came across, any thoughts would be much appreciated:
Some software (httrack) created a directory structure. Using my user (which also ran the software), I cannot view the directory:
ls -ltra feed/
ls: cannot access 'feed/.':…

Joris
- 5,969
- 1
- 16
- 13
0
votes
2 answers
Monitor Linux Server filesystem health and suspicious activities
I run my own, small server here. The server runs on Ubuntu 18.04. There is one single HDD using LVM on a partition together with EXT4. LVM is used for taking snapshots. I also use Webmin with Virtualmin for administration.
During the past weeks, I…

C. Hediger
- 101
- 1
0
votes
0 answers
mdadm RAID 10 filesystem corruption -- recoverable?
PROBLEM: I had a degraded disk in my RAID 10 array which I created using mdadm. I first removed the disk, replaced it with a new one, but when I rebuilt, I got an error saying it couldn't detect the file system of the disk. I realized with fdisk…

user3787902
- 1
- 1