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
9
votes
2
answers
538
views
How to resize ext4 without adding more inodes?
On this filesystem, there are enough inodes already, I only need more filesystem size:
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/spinning-backup ...
1
vote
1
answer
43
views
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?
My ext4 disk was failing. I made a disk image.
I tried e2fsck and ...
9
votes
2
answers
2k
views
Which Linux file system should I use for compatibility with Windows programs?
I'm new to Linux, yet am now committing to Linux, probably formatting HDDs to run the ext4 file-system, for (almost) all work. I need to keep one Windows machine running an NTFS file-system for a few ...
1
vote
0
answers
34
views
How to add user to group in docker bind?
I have a docker container with a bind to a the local fs.
../htdocs:/var/www/html
The docker container creates folders and files in /var/www/html with apparent userid 33 and groupid 33. Both do not ...
0
votes
0
answers
37
views
Does ext4 allow partial update of unwritten to written extents in O_DIRECT case
O_DIRECT allows writes on a file to proceed with i_rwsem in read mode.
Let's say I have allocated 100 fs blocks(4K) for a file with posix_fallocate(). This now becomes an unwritten extent for the file....
6
votes
2
answers
1k
views
How to quickly wipe ext4 superblocks on a NVMe SSD? Secure erase?
Based on this question: How to erase/wipe all ext4 metadata, not just the filesystem signature 53 ef?
My SSD is under warranty and I shall hand it over today, so excuse me for the hurry now.
It ...
2
votes
1
answer
127
views
Is it possible to recover deleted files from a qcow2 disk in Proxmox using extundelete or ext4magic?
I’m running a Proxmox VM with a qcow2 disk (Ubuntu guest, ext4 filesystem). I tried to recover a recently deleted file using extundelete and ext4magic, but both tools failed to find the file, even ...
4
votes
2
answers
1k
views
How much disk space is occupied by a filesystem's metadata?
My disk is partitioned like this:
# fdisk -l /dev/nvme0n1
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 411647 409600 200M EFI System
/dev/nvme0n1p2 ...
1
vote
2
answers
179
views
Does badblock "fix" blocks on an SD card?
I have an old 16GB SD card that started giving I/O errors, known it's gone bad, I dumped all the content to an image file to see what I could restore, and the Disk manager alerted me that 16.1MB were ...
3
votes
1
answer
118
views
Is it a good idea to have inode size of 2048 bytes + inline_data on an ext4 filesystem?
I only recently "discovered" the inline_data feature of ext4, although it seems to have been around for 10+ years.
I ran a few statistics on various of my systems (desktop/notebook + server),...
0
votes
1
answer
118
views
ext4 block allocation
I'm trying to understand how ext4 does some things. I have a small ext4 partition with block size 1024 (not the default 4096). I create a directory there and delete lost+found, just to get it out of ...
2
votes
1
answer
411
views
“Bad magic number in super-block” after a dd of Mobian (Debian) image
General overview
I try to install the Mobian OS on my Pinephone thought the dd’s method as described in the official Debian documentation. Basically, I have to make a dd from an image to a partition ...
-5
votes
1
answer
82
views
Why does the Use% shown by the df command not reflect the correct value? [closed]
On our RHEL 7.9 systems, we have noticed some strange behavior.
Each machine has 4 disks, each with an 8TB capacity, but we are only using about 1.9TB on a partition.
What doesn’t make sense is that ...
1
vote
2
answers
159
views
Files that end with a period are inaccessible on an exFAT drive
I have a backup that was copied from Linux (ext4) to an exFAT filesystem.
File and directory names that end with a period are inaccessible.
I can (partly) list them, but ls behaves strangely.
It ...
0
votes
0
answers
89
views
Not able to modify inode metadata
I am working on a ext4 file-system tool that aims to delete files such that they are not recoverable later on. My goal is to clear the inode metadata of a deleted file, but despite my efforts, the ...