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
Re-creating a filesystem on runtime (need more inodes)
I have a machine at a datacenter with 3HDDs and running Debian Wheezy, at one of them I have an ext4 filesystem mounted on /data that has ran out of inodes (I've chosen an inappropriate inode size at install/had more tiny files than…

Rodrigo
- 267
- 3
- 12
2
votes
2 answers
How to convert an HFS+ drive to EXT4 while retaining data?
Is there any direct way to convert an HFS+ drive to EXT4 and if so how?
Was thinking maybe gParted?
If not, I'll just copy contents off, reformat, copy back on. Just trying to avoid moving 2TB of data.

jb510
- 212
- 1
- 4
- 9
2
votes
1 answer
ext4: Online resize not detected
On a RedHat 6 server, we ran into an issue with online resizing of an ext4 filesystem.
With only /dev/sda we had 13GB available in the volume group, but needed 20GB more on one logical volume which was 36GB. Added /dev/sdb to the volume group, and…

sastorsl
- 362
- 2
- 15
2
votes
1 answer
Why would disk reads be heavier than writes with a simple java app that creates many small files?
I've got a very simple java 7 app that reads from a proprietary file format (Hadoop sequencefile) sitting on disk xvdb and creates millions of 2-20kb files on disk xvdf.
ByteBuffer byteBuffer = ByteBuffer.wrap(imageBinary, 0,…

davidparks21
- 928
- 1
- 12
- 27
2
votes
1 answer
CentOS OpenVZ kernel panic when mounting ext4 truecrypt volume in nokernelcrypto mode
I am experiencing kernel panic when trying to mount a ext4 filesystem which itself resides on a truecrypt volume mounted using -m nokernelcrypto option.
The system is CentOS 6.3, OpenVZ Kernel 2.6.32-042stab074.10
The disk is a virtual disk (a…

Anton
- 21
- 1
2
votes
1 answer
Kernel Errors Present: EXT4-fs
Logwatch is giving me the following error:
WARNING: Kernel Errors Present
EXT4-fs (sda1): error count: 4 ...: 1 Time(s)
EXT4-fs (sda1): initial error at 1350482172: e ...: 1 Time(s)
EXT4-fs (sda1): last error at 1350941030: e ...: 1 Time(s)
and…

audiomason
- 745
- 3
- 8
- 11
2
votes
3 answers
How to diagnose erratic disk behavior?
I have a web site with users lighttpd and CGI scripts.
After upgrading to Fedora 11 (ext4) the disc access became erratic.
The timing of python -c 'import cgi' varies between 0.1 to almost 10 seconds:
How can I diagnose the problem? (Tools,…

Miki Tebeka
- 158
- 5
2
votes
2 answers
fstab filesystem editing
UUID=f5be9b96-da41-49fd-a8e2-dbbf37f5cd7d / ext4 defaults,usrquota 1 1
UUID=31a1c8d1-18ee-4c97-a0b9-b92599247112 /boot ext4 defaults 1 2
UUID=1fc6e1e3-bb0e-46bd-9de8-b8a11ca69ab9 /home …

Nikki Wilson
- 101
- 1
- 7
2
votes
1 answer
recreating ext4 journal: reboot required?
Most docs on disabling/creating the ext4 journal for root involve a reboot. If we:
turn off the journal via tune2fs
fsck the filesystem
turn the journal back on via tune2fs
fsck the filesystem
then reboot
Will that effectively re-create the…

user152471
- 21
- 2
2
votes
3 answers
Ext4 kernel panic
I'm getting such kernel panics:
EXT4-fs error (device md2): ext4_ext_find_extent: bad header/extent in inode #97911179: invalid magic - magic 5f69, entries 28769, max 26988(0), depth 24939(0)
----------- [cut here ] --------- [please bite here ]…

Spacedust
- 568
- 5
- 13
- 28
2
votes
2 answers
Optimal directory structure for keeping millions of files on an ext4 system
I need to keep millions of files on an ext4 system.
I understand that having a structure with multiple subdirectories is the general accepted solution. I wonder what would be the optimal approach in terms of number of dirs/subdirs.
For example I…

Alex Flo
- 1,761
- 3
- 18
- 23
2
votes
0 answers
ext4 loopback device, Buffer I/O Error on reboot
I am trying to mount a loopback device on my ext4 formatted ssd drive.
I get these errors when I reboot on Linux kernel 2.6.38.8
Buffer I/O error on device loop1, logical block 0
Here is what I do:
# dd if=/dev/zero of=/mnt/s/lodev bs=4096…

cvb
- 21
- 2
2
votes
2 answers
Limit total size of a directory in linux
I have a service daemon that creates a lot of temp files. Recently my server died, because a malicious user managed to flood /tmp and fill up the disk. I have taken some measures to actively clean up the temp dir, but additionally I would like to…

Jeroen Ooms
- 2,239
- 8
- 34
- 51
2
votes
2 answers
Does dm-crypt support journaling filesystem transactional guarantees?
I'm considering using ext4 on encrypted LVM (which uses LUKS and dm-crypt). Will the transactional guarantees in ext4's journaling be preserved?
Bonus: where may I find authoritative information on this (besides the source)?

Yang
- 1,665
- 6
- 21
- 35
2
votes
1 answer
Proper way to remap a partition to a new disk?
I currently run a webserver running Debian. I have a 1GB disk with a single ext4 partition mapped to / and an 8GB disk with a single ext4 partition mapped to /var/www.
The 1GB disk is at 70% full without a DB installed. Once I put on psql, my /var…

Pentos
- 23
- 1
- 3