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
8
votes
2 answers
Can Btrfs use SSD for metadata and leave bulk data on HDD?
is it possible for Btrfs to use SSD for metadata only & leave bulk data on less costly storage such as HDD? I refered to this page Using_Btrfs_with_Multiple_Devices and can not find a solution.
Thanks!

zJay
- 181
- 3
8
votes
4 answers
Rsync size is difference from source to destination
I'm using rsync with the options
-r for recursive
-l copy symlinks as symlinks
-t preserve modification time
-D preserve devices and specials
-v verbose
--prune-empty-dirs
The source FS is ext4 and the destination is XFS. I've copied few hundred…

lbanz
- 1,609
- 5
- 20
- 30
8
votes
1 answer
How do you create large, growable, shared filesystems on Linux at AWS?
What are acceptable/reasonable/best ways to provide large, growable, shared storage at AWS, exposed as a single filesystem?
We're currently making 1TB EBS volumes ~biweekly and NFS exporting with no_subtree_check and nohide. In this setup, distinct…

Reece
- 181
- 2
8
votes
2 answers
Ext4 partition bigger than 2TB?
Is there a way to make partition bigger than 2 TB on ext4 file system ?? Im trying to do that on debian but get message Partition size can not exceed 2TB ...

B14D3
- 5,188
- 15
- 64
- 83
8
votes
3 answers
On linux, what does it mean when a directory has size 0 instead of 4096?
Here's a strange thing I haven't seen before -- a directory whose size is reported by ls as 0 instead of 4096, and I can't create any files within it.
# ls -ld lib home
drwxr-xr-x. 2 root root 0 Feb 7 03:10 home <-- it has zero…

kdt
- 1,400
- 3
- 22
- 34
8
votes
3 answers
changing filesystem format from xfs to ext4 without losing data
I have a fresh Lucid Lynx (Ubuntu 10.04) running on a laptop. where I defined the filesystems as:
mount point / on ext4 (46 Gb)
mount point /home on jfs (63 GB)
swap as 3 Gb
I left the machine over night to do some task, without AC power supply.…

A.Rashad
- 293
- 1
- 5
- 18
8
votes
1 answer
Linux/ext4/sqlite: Can touching a file while it's being written to cause a race condition?
For context: I need to be able to reliably update the timestamp on some sqlite DB files which get intermittent updates on an ext4 filesystem.
Can using the touch command (to update the last modification time) fail when the database is being written…

Hart Simha
- 1,203
- 8
- 7
7
votes
5 answers
How to write a sparse Linux (EXT4) disk image without writing gigabytes of zeros?
I have a 64 GB Linux disk image with ~50 GB of unused space across the partitions. The file is sparse, so it only takes ~14 GB on disk.
But if I dd the image, it writes the full 64 GB, which takes quite a while.
Is there any way I can do the…

hackerattacker2019
- 71
- 1
- 3
7
votes
1 answer
Ubuntu server ext4 hitting 65000 subdirectory limit
I have a Ubuntu 14.04 server that is failing to create a new directory beyond the 65,000 directory. I have run a tune2fs -l and can see that the dir_nlink flag is set. Does anyone know what else can be checked to allow this to occur? I have many…

gregjkm
- 71
- 2
7
votes
1 answer
df report incorrect free space for a filesystem (ext4)
I am facing an issue with wrong fs space reported by df.
We are talking about bare metal Ubuntu 14.04 server, with the / partition managed by LVM.
Size reported by df is different from the size reported by fs super-block. Also calculating size from…

Tom Lime
- 201
- 1
- 2
- 8
7
votes
1 answer
What does the mkfs.ext4 -G option do?
On Microsoft's Best Practices for running Linux on Hyper-V page it is recommended to use ext4 and not ext3 and "specify the number of groups to be 4096" using mkfs.ext4 –G 4096 /dev/sdX1. What is this doing exactly?
The man page says the blocks per…

Sacha K
- 377
- 4
- 18
7
votes
1 answer
Failing to mount root from ramdisk while PXE boot
I have a working TFTP/DHCP PXE boot environment where I've already booted some images successful. Now I built an CentOS 6.5 diskless image and this one is failing booting with the following error:
No filesystem could mount root, tried: …

marcap
- 71
- 3
7
votes
2 answers
ext4 filesystem corruption -- maybe hardware error?
I'm getting these errors in dmesg after about half an hour after I turn on the computer:
[ 1355.677957] EXT4-fs error (device sda2): htree_dirblock_to_tree: inode #1318420: (comm updatedb.mlocat) bad entry in directory: directory entry across…

pts
- 435
- 1
- 5
- 16
7
votes
3 answers
Convert an ext4 partition to ext3 without formatting the HDD
I would like to convert an ext4 partition to ext3 partition without formatting the HDD.
Is this possible and recommended?

Max
- 3,523
- 16
- 53
- 71
6
votes
3 answers
mkfs -O ^64bit,^metadata_csum -t ext4 in 2019
Thomas Krenn recommends creating ext4 partitions like:
https://www.thomas-krenn.com/de/wiki/FSCK_Best_Practices
mkfs -O ^64bit,^metadata_csum -t ext4
what does this mean?
does this have anything to do with the y2038…

canoodle
- 193
- 1
- 4