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
2
votes
1 answer
When enabling ext4 large_dir, how can you tell it's used?
Problem: after enabling the ext4 large_dir option I want to know if it's used and/or whether I need to recreate directories for it to be used.
Detail: I have directories that on occasion can hold millions of files. I ran into:
[ma jan 11 01:37:22…

Halfgaar
- 8,084
- 6
- 45
- 86
2
votes
1 answer
fsck raid10 ext4 partition currupted, restore data
there is a volume in raid10 /dev/md3
it has a GPT partition /dev/md3p1 in ext4 with a size of 16TB.
I accidentally ran
fsck -y /dev/md3
causing the filesystem in /dev/md3p1 to get corrupted.
fsck -b superblock_number /dev/md3p1 with any superblock…

user607743
- 23
- 3
1
vote
0 answers
I've killed the processes that held the deleted files, but a filesystem is still full
I have a host that runs CentOS-6 with Linux 2.6.32-696.18.7.el6.x86_64 (yes, pretty old) and I ran out of disk space on the root filesystem.
The filesystem's size is 16G, du shows about 3G being used by files. Of course, I ran lsof +L1, found…

Volodymyr Melnyk
- 577
- 1
- 5
- 19
1
vote
1 answer
ext4 raid5 corrupt group descriptor
I have a raid5 NAS on Open Media Vault, with 3x 2To disks.
A few days ago I've inserted a spare disk from another raid.
I did not see it at the beginning, but I think that changed disks order.
Then I run cfdisk to make a new volume, maybe on the…

Barium Scoorge
- 135
- 1
- 6
1
vote
7 answers
Print unused bytes of logical volume
Imagine the physical volume was resize with:
pvresize /dev/sda2
And the logical volumne was resized with:
lvresize -l +100%FREE system/home
But this command was not done:
resize2fs /dev/mapper/system-home
Since the last command was forgotten,…

guettli
- 3,591
- 17
- 72
- 123
1
vote
1 answer
Bad magic number in super-block : Red Hat 6
I extended a disk on RHEL 6.9. I am getting superblock error when running resize2fs on the new disk.
This was the previous filesystem layout before resizing:
Disk /dev/sdc: 289.9 GB, 289910292480 bytes
255 heads, 63 sectors/track, 35246…

sawe
- 11
- 3
- 5
1
vote
1 answer
Hard drive with many hard links 'fills' almost overnight
I recently installed a cheap 2tb hard drive on a server for backing up files which are also backed up elsewhere. It's basically an overflow drive. The other drives on the server are configured as 1TB in a Raid 6 array. This single drive I configured…

fred2
- 97
- 9
1
vote
1 answer
KVM: Is it possible to detect guest disk was mounted RW?
Let's assume I have a KVM-based virtual machine.
There is a volume that contains the operating system and the data.
I know it is possible to access from host at least READ-ONLY the filesystem which is on guest.
If it is possible to access the guest…

Krzysztofa Krzysztof
- 141
- 7
1
vote
0 answers
Is it possible to relink an Inode in EXT4 with it's original filename
Ok, so foolish idiot here, trashes his postgresql data directory, right at the very moment when his backup routine is currently in the "delete old files" and "create new files" phase.
As a result, Iv'e destroyed my backup AND simultaneously done an…

shawty
- 293
- 4
- 15
1
vote
1 answer
File system, that handles over 2 million files
I'm going to store files in one folder in my server. The amount of files will exceed 2 million. Each file size will have range between 5MB - 100MB.
What kind of file system can handle well that amount of data?
I know that XFS can handle very large…

Mr.D
- 115
- 1
- 6
1
vote
0 answers
Tried to recover a Ext4 Superblock to a CEPH disk
We have a server with Proxmox installed with Debian, it's an dedicated server (sda). The VM's are being backed up every night on a CEPH disk (sdb). After an reboot of the dedicated, the ext4 drive from the dedicated server had a broken…

Roy Zon
- 11
- 1
1
vote
1 answer
Is there any way to mount an EXT4 file system with errors?
I may have been somewhat foolish, but kept putting off the warning signs about the impending failure of my EXT4-on-LVM Ubuntu machine (like the partition remounting itself R/O, SMART errors, etc.) and one day, the FSCK shows "filesystem still has…

JonTheNiceGuy
- 893
- 7
- 12
1
vote
0 answers
I got a power loss and my directory became a file (ext4, ssd), what to do?
After a power loss 1 directory (maybe more, I don't know) just became a file on my SSD (ext4 fs):
-rw------- 1 postgres postgres 16K May 15 20:06 stolon
It was a directory! How could it happen?
And can I make it great directory again?

Sergey
- 714
- 2
- 6
- 21
1
vote
1 answer
Is GNU tar incremental backup reliable if ext4 is mounted with noatime?
My system is running on SSD on top of LVM logical volume, formatted to ext4. I'm using noatime option at my fstab for this partition.
I'm going to do incremental backups of system partition using LVM snapshot feature and GNU tar.
As I see in…

Dmitriusan
- 367
- 3
- 15
1
vote
4 answers
why does a file sometimes appear empty when being written to by another process
We have a situation where files are uploaded to a folder by FTP and then served by nginx. We've found that if the GET request immediately follows the modification of the file nginx returns files with 0 bytes.
In trying to debug this problem I…

Russell
- 1,158
- 3
- 9
- 8