Questions tagged [ext4]
ext4 (fourth extended filesystem) is a journalling file system for Linux, developed as the successor to ext3. Use this tag for question that are ext4 specific, generic file system related questions should use tag [filesystem]
1,020 questions
1
vote
1
answer
870
views
How to recover an EXT4 partition from a failed journal
I have a virtual disk that is 86T in size with only 41% used. Th
I have an 86T second drive connected to my virtual machine(VM) as /dev/vdb1. The volume is fine, but when I attempt to mount the ext4 ...
2
votes
0
answers
168
views
Unable to remount 5TB Hard Drive from JBOD
Unable to remount 5TB Hard Drive
Problem Description
I am using a Debian 12 Server with a RAID controller. The harddrives are all set up with their own Virtual drive in RAID0 JBOD. (so 8 Drives, each ...
0
votes
1
answer
135
views
Where is file path information stored?
Where is the file path infromation stored on ext4 file systems, within partitions?
Obviously, it's stored on the drive itself because the structure is on the device itself (i.e. folders stay folders ...
0
votes
2
answers
118
views
Check of "noauto" EXT4 FS at startup time : Conditions for declaring it clean
I have a couple of (clean) filesystems declared in my fstab with the noauto mount option set and fs_passno set to 2.
For whatever reason (power failure, kernel panic, hard reset…), those filesystems ...
1
vote
1
answer
62
views
Is it safe to write to file's extents directly while the FS is r/w?
Given any file on an ext4 filesystem, it is possible (using filefrag -v) to get the list of real offsets+lengths where that file is located on the underlying block device.
Is it safe to open the ...
0
votes
1
answer
641
views
reconstructing ext4 inode structure after folder deletion
My ext4 partition that had my whatsapp data had its entire folder deleted ( that is file / folder delete - no partition ).
As I understand inodes have the metadata tree for files including their ...
0
votes
1
answer
252
views
Inode limit reached with free space available
Let's assume I was very unlucky and ran out of inodes in my ext4 filesystem but left with enough free space.
Inode usage is 100%, but it has 50% disk free space.
How can I resolve it?
0
votes
2
answers
288
views
Setting up ext4 filesystem to accomodate 100,000,000 files iNode issues
I have a RHEL 9 with an ext4 fs
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1258291199 1258289152 600G 83 Linux
it has been requested it be ext4 with Inodes for ...
8
votes
2
answers
2k
views
How does EXT4 handle sudden lack of space in the underlying storage?
Usually, block device drivers report correct size of the device, and it is possible to actually use all the "available" blocks. So, the filesystem knows how much it can write to such device ...
0
votes
2
answers
8k
views
Need full access to ext4 file system from Windows 10
I am looking for a method to read/write an ext4 partition from a Windows 10. Both partitions are on the same physical hard drive on a dual boot system. That means, that NFS wouldn't be sufficient. Are ...
1
vote
2
answers
133
views
Each file gets one inode block
A question was given to us by a lecturer:
How many data blocks are needed to collect all the data in an EXT4
file system using inodes if the file size is 54 KB and there is a
block size of 4KB.
...
5
votes
2
answers
656
views
What can cause “multiply claimed blocks” on an ext4 drive?
“Multiply claimed blocks” is an error reported by fsck when blocks appear to belong to more than one file. This causes data corruption since both files change when one of the files are written.
But ...
2
votes
0
answers
37
views
"No space left on device" depending on alphanumeric filename, adding or removing a character works [duplicate]
I just encountered this most curious of errors:
$ touch 3a59199733b83a8dba88b48c3f3c6fac05699ea8f1dd5ef7540ee57d64896d6d
touch: cannot touch '...
5
votes
1
answer
2k
views
How many files in a directory is too many for ext4?
I wrote a Golang program to measure how long it takes to create 100 new files and read 100 existing files in a directory with 2k files vs a directory with 200k files:
// Create 200k files in one ...
0
votes
0
answers
126
views
Any performance benefits of large inode sizes (ext4)
We have a video editing server split into two partitions. One for video footage and one for projects. On the projects partition there is totally 7TB of data and 250,000 files. Of these, 50,000 of them ...
0
votes
0
answers
64
views
Fuzzy Search for filenames with synonyms and tags (auto generated)
Filesystem: Ext4
I create separate files for each topic.
I have thousands of files segregated into 2 or 3 levels of hierarchical broad categories. I would like to search for these files efficiently.
...
1
vote
2
answers
1k
views
SSD initially mounts correctly, but disappears from lsblk after a few days
I am a Linux beginner, and am having a problem with a drive which disappears from lsblk periodically, and am stuck with how to proceed. The drive is an 240GB external USB SSD.
Mounting the Drive Works
...
0
votes
1
answer
212
views
First 32GB of a 4TB ext4 filesystem overwritten. How to recover?
Due to an accident specifying a block device, the first 32GB of a 4TB ext4 filesystem on a SATA disk was overwritten by the dd command with the contents of a USB flash drive.
fdisk -l /dev/sda reports ...
0
votes
2
answers
338
views
Is using the SysRQ Emergency Remount an acceptable way to clone hard disk?
I'm using Linux (Ubuntu) and I was told that I can use the method described below to clone the system's hard drive to another one - to plug into a new machine. (Without booting from a Live CD)
It ...
2
votes
1
answer
3k
views
"structure needs cleaning", hardware failure?
The drive that my /home folder lives on is showing signs of failing,
and I'm trying to migrate to a new drive.
I purchased a 4TB SSD, formatted it with ext4, mounted it as an external drive with a ...
0
votes
1
answer
489
views
"Bad Jump in FAT partition" and "Bad number of sectors per cluster" right before ext4 offset
TL;DR partition table (?) potentially messed up by windows disk management on drive containing both NTFS data partition and EXT4 filesystem. Fairly certain zero or almost zero data was lost. testdisk ...
0
votes
0
answers
76
views
How to reclaim SSD space during formating
I've got a "1000GB SSD"
after creating partition (aligned to 2048) I'm down to
sdd 8:48 0 931.5G 0 disk
└─sdd1 8:49 0 931.5G 0 part
which is fine, because 1GB means 1000bytes ...
0
votes
1
answer
1k
views
How to resize partition in-between other partitions (CLI)?
How can I resize some partitions on a disk where there are other partitions before and after it?
I've found plenty of guides on the Internet about how to resize a partition (eg with parted), but they ...
0
votes
1
answer
122
views
Upgrading from ext3/4 to BTFS vs fresh install?
According to Debian
Ext2/3/4 filesystems are upgradeable to Btrfs; however, upstream recommends backing up the data, creating a pristine btrfs filesystem with wipefs -a and mkfs.btrfs, and restoring ...
1
vote
1
answer
103
views
Almost empty disk after some actions on arch
I have an arch linux with ext4 partition
I had a working system and decided to make some backups
Here's what I've did:
Installed timeshift
After opening it I've decided to install btrfs-progs (I was ...