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
4
votes
2
answers
120
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
29
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 ...
3
votes
1
answer
3k
views
ext4 mount: mount /dev/mmcblk0p2 on /SD failed: File exists?
If I try mounting the ext4 file system of /dev/mmcblk0p2 into the blank directories I just created: /SD and also /mnt/SD, then the command line answers with:
sudo mount /dev/mmcblk0p2 /SD
mount: mount ...
1
vote
1
answer
3k
views
Mounting a VHDX ext4 partition in linux
I'm wondering how terrible an idea the following is or is not...
I want to share an ext4 fs between WSL2 and linux using a fixed-size .vhdx image created in windows (residing on NTFS partition). ...
1
vote
0
answers
87
views
Power failure while appending to ext4 file results in spurious zeros
I have an embedded device which appends data to an ext4 file in data = ordered mode until its power is cut off. To my surprise, I've noticed that this occasionally results in zeros being appended to ...
3
votes
1
answer
2k
views
How to find orphan directory entries in a ext4 disk
This comes from a long story of trying to recovering a TrueCrypt volume from a hardware failure (thanks, WD). I ended up with an unencrypted 3TB image that had the files that I want to recover.
...
0
votes
1
answer
2k
views
btrfs with ext4 backup - Is this a sensible configuration?
I have two 4TB hard drives, which I intend to use for storing media (music, movies, etc.), and backups of my laptop. The plan is to have one which is regularly accessed, for both accessing the media ...
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 ...
3
votes
2
answers
3k
views
Find command very slow in directory with tons of files and subdirectories
For about a week I've been waiting for the following command to complete
find -type d -empty -print -delete >> empty-folder-deletion-log.txt
but it is still going and it seems like it has a lot ...
2
votes
1
answer
119
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
1
answer
12k
views
extundelete - How to solve 'Block bitmap checksum does not match bitmap when trying to examine filesystem'?
The OS is Ubuntu 17.10 and I've been trying to recover(undelete) with extundelete.
(The File System is ext4.)
This didn't work. So, I tried with
extundelete /dev/mapper/ubuntu--vg-root --restore-file ...
3
votes
1
answer
115
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),...
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 ...
6
votes
4
answers
7k
views
Why case-insensitive option in ext4 was needed?
I was reading about Linux 5.2 patch note released at last year, I noticed that they started to optional support for case-insensitive names in ext4 file system.
So... what I am wondering is the reason ...
1
vote
2
answers
151
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 ...
3
votes
3
answers
937
views
How to determine, with certainty, the filesystem type of a partition from the outputs of the Linux "file -s" command?
My problem is to decode the output of the command file -s /dev/sdX on my system (where /dev/sdX is the device file associated to a USB key).
Below I'll show the output of the command file -s /dev/sdX ...
2
votes
2
answers
1k
views
"xfs_copy" equivalent for ext4?
I love xfs_copy's ability to clone an XFS file system from disk to disk. Is there an equivalent tool to clone an ext4 file system?
I've tried dump/restore, but it requires the destination file system ...
2
votes
1
answer
123
views
Why does inode usage go from 1% to 100% on a single file creation?
Inode usage go from 1 to 100% on a single file creation in a raid array on Debian.
First, clean boot, then:
sudo cryptsetup luksOpen /dev/RaidVG/LVMVol CVol
sudo mount /dev/mapper/CVol /mnt/raid/
...
0
votes
0
answers
54
views
ubuntu system freeze while diff reading, SysRq REISUB not working
I've experienced total system freeze while checking if files where copied correctly by
diff -rq [INTERNAL HDD] [USB HDD]
This happened twice, always while running the diff. On the second occasion I ...
10
votes
2
answers
9k
views
Change file "Birth date" for ext4 files?
Is it possible to change a file "Birth date" (according to the stat file "Birth" field)?
I can change the modification/access time with touch -t 200109110846 file, but can't find the corresponding ...
5
votes
3
answers
9k
views
How to mount lvm partitions with duplicate names
I have replaced my hard drive with an SSD and have installed Fedora on it exactly the same as my HDD. I'm attempting to read the data from the hard drive, but since both of the LVM partitions have ...
7
votes
2
answers
3k
views
How can I find the last sector used by an ext4 filesystem?
I need to identify the last sector used by an ext4 filesystem so that I can move it to another device.
The filesystem has been shrunk (with resize2fs) and is smaller than the partition that contains ...
1
vote
1
answer
409
views
procedure for mdadm in-place RAID5 to RAID6 upgrade
I have a debian host configured as a NAS using 6 disks in a RAID 5 setup. The current configuration is as follows:
# mdadm -D /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Mar ...