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]

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Thread locked when copying large files (probably due to dm-crypt)

I have three disks setup with (order from lowest level to highest): GPT, dm-integrity, mdadm raid5, lvm, luks2, ext4. When running rsync to transfer files locally between different lvm logical volumes,...
0
votes
1answer
32 views

Do almost all ext4 filesystems have 4KiB blocks?

Many sources, such as https://www.commandlinux.com/man-page/man8/mkfs.ext4.8.html read: ...block-size is heuristically determined by the filesystem size... What is this heuristic? In which source ...
0
votes
1answer
22 views

How to recover an overwritten file from a mounted VeraCrypt encrypted disk?

When copy and pasting commands with a space at the end it automatically runs the command without requiring the user to press enter. This is why I overwrote a large text file with a cp ./newfile ./...
-2
votes
0answers
33 views

mounting a filesystem of type ext4

What command should I execute to mount a filesystem of type ext4? The device file used for the filesystem is /dev/sdd7. The mount point is /five/four/data.
1
vote
0answers
11 views

Prevent filesystem from synchronizing

I have an embedded system running Debian with a ext4 file system on eMMC. If the power goes down, the system has about 1 second to detect and sync the file system before voltage is below threshold and ...
0
votes
2answers
36 views

mount + mount: special device /dev/sdX does not exist

we have rhel server version 7.5 and from lsblk we can see only the following disks , and all disks are with ext4 filesystem lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda ...
0
votes
0answers
27 views

gparted/ext4 - Shrink partition to encrypted filesystem previous size after failed “move right” operation

After unsuccessfully try to "move right" large encrypted partition on my HDD, GParted show me this: If I click on Partition > Information I have this message : 176.57 GiB of unallocated ...
0
votes
1answer
27 views

Disk looks fine, but mount fails (bad option, bad superblock)

I've got a disk that's a bit of a mess right now, but I feel like I've got it into a state where it's working. Here's the original question about how the block size was wrong: https://superuser.com/...
0
votes
0answers
17 views

Buildroot hdimage(sdcard.img): part rootfs size (268435456) too small for rootfs.ext4 (1073741824)

So I wanted to make my buildroot environement and evrytime I step on this error: Blockquote INFO: cmd: "mkdir -p "/home/mehdi/buildroot/output/build/genimage.tmp"" (stderr): INFO:...
0
votes
1answer
40 views

How to fix ext4_free_inode corrupt filesystem?

I got a RPi4 with an external hard drive, it had a kernel panic ---[ end Kernel panic - not syncing: Attempted to kill init! I pulled the plug on it and on restart I'm getting a bunch of filesystem ...
0
votes
1answer
83 views

Ext4 flash memory error

I have a flash drive that was previously in the NTFS file system; But now I have this problem to change it to Ext4 (via gnome disks) I also have this problem when opening it
0
votes
1answer
72 views

Device does not contain a recognized partition table

I want to grow an ext4 volume on a host, but I noticed that there is no valid partition table to delete and remake: fdisk -u /dev/vdb /dev/vdb: device contains a valid 'ext4' signature; it is strongly ...
2
votes
0answers
79 views

Why are writes so slow on ext4?

I'm trying to work out why writing to ext4 partitions on my server is so slow. I noticed this issue when I reformatted my off-site backup drives from ExFAT to ext4. When these drives were formatted as ...
0
votes
2answers
88 views

Tell if a file is a “sparse file”

There is an existing question for "Finding all sparse files", and I think I could use it, but the scripts were too complex to understand. I don't think the GUI of Ubuntu file manager ...
4
votes
3answers
118 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 ...
0
votes
0answers
20 views

how to add more groups to mounts and files?

I was going to mount a windows share via mount.cifs and using dir_mode. mount -t cifs //server/share /mnt/ -o user=username,dom=domain,dir_mode=0755,uid=510,gid=610 This means only members of group ...
5
votes
3answers
831 views

Actual content of a symlink file

I searched but couldn't find anything - I am looking for a breakdown of the file structure of a symlink in bytes, in a ext filesystem. I have tried creating a symlink file and then using hexdump on ...
-1
votes
1answer
37 views

Does /dev, /run and /sys exist on HDD (if so what is there location if it can be meaningfully traced)?

At the time of Linux installation, i have mentioned only one filesystem (/dev/sda1 -> ext4 -> / ). But for dev, run, proc, sys - Linux is creating addition FS which is inferable from mount. $ ...
1
vote
0answers
21 views

Failure to fsck a still-working filesystem

I'm currently working with a large ext4 filesystem (15TB) on an LVM volume spanning multiple disks. Because the filesystem was nearly full, I added more disks to the volume group and extended the LV ...
0
votes
1answer
124 views

EXT4-fs error (device dm-0): ext4_lookup:1590

system info root@steveguan-1:~# uname -a Linux steveguan-1 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux root@steveguan-1:~# cat /etc/os-release NAME=&...
0
votes
0answers
141 views

Comparison of File system for 500 million of 50KB files for best write performance

linux kernel 5 (ubuntu 18.04) Use case is writing 100K files (50KB) in bursts, file system half 500million of files (per folder can be a small number if needed) and deleting old files all of the time. ...
0
votes
1answer
18 views

inode, list block pointers

The inode structure of some filesystems includes a list of pointers to the blocks used to store the file contents. This list should exist for ext2/3/4, as specified in the first comment to this ...
1
vote
1answer
57 views

ext4-fs and system-journald errors in Lenovo x1 extreme gen 1 that persists after fresh installation

I have been using pop os (currently I have the latest version based on Ubuntu 20.04) with my lenovo x1 extreme gen 1 very happily for a while (2-3 years) but recently ran into what is possibly a ssd ...
0
votes
1answer
25 views

How can lsof -p $pid be stalling when ls /proc/$pid/fd is not?

I have a situation where I observe that BackupPC stalls for a particular host. This host runs Debian 10 (and has e.g. Docker installed). During that situation, two rsync-related processes are running ...
0
votes
1answer
91 views

If we can share ext4 file system then why do we need NFS file system? [closed]

I understood that NFS is a file system which can be shared and accessed over network by Linux machine. And ext4 is another file system which is supported by Linux machines. I thought ext4 is a file ...
1
vote
1answer
58 views

Can a file disappear from an ext4 partition if an application was using it?

A Passwords file was in use by KeePassXC. After restart, file is gone. Normal operation is: File is open and when system gets rebooted, it closes it safely (so far). Keepassxc always always autosaves. ...
0
votes
0answers
28 views

rsync does not create hardlinks (sending files from OSX through raspberry pi to USB hard drive)

Synopsis: I use rsync to create snapshots of the home directory of my wife's Mac OSX to 2 different backup drives. When writing to Backup1, rsync correctly creates hardlinks to the previous snapshot, ...
1
vote
0answers
58 views

Ext4 All data deleted, can't recover

I don't know what I did, but I made a disaster and lost around 50000 family pictures. There was inside a raid1. ls return just 2 files: root@NAS:/srv/dev-disk-by-label-RAID1# ls aquota.group aquota....
0
votes
2answers
70 views

Ext4 and Linux - very large number of files in one directory - operations

I have a problem with a very large number of files in one directory. The file system is ext4. I reached the 2**32 file limit and couldn't even write any file on this partition. The problem is very big....
2
votes
2answers
78 views

How to generate small image of big ext4 partition?

I’m working on low level memory writing of linux filesystem for embedded purpose. I created the partition image using following procedure: Create an empty image file ex for 4GiB. dd if=/dev/null of=...
1
vote
1answer
193 views

How do I mount an ext4 partition created on a recent system, on a ten-year-old 2010 CentOS system?

I created an ext4 partition on Ubuntu 18.04.4 LTS in order to transfer a large amount of data to a production server. The server is running CentOS 6.10 with kernel 2.6.32. The Ext4 Howto states that &...
0
votes
1answer
29 views

How to format and use the extended partition

The output of df -h as below: Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 1.7M 794M 1% /run /dev/sda7 85G 6.2G 74G ...
0
votes
1answer
64 views

Sparse, bootable Linux images? [closed]

I've set up a new Linux workstation and would like to create a backup image in order to save time in case something breaks. This is the situation: Workstation: 512 GB SSD, 12 GB used, ext4 file ...
0
votes
2answers
48 views

Can VFS read/write operations be performed on an unformatted storage device in Linux?

As per my understanding, READ/WRITE etc are file system operations in linux. The file systems registers callbacks with the Kernel (VFS) and are in turn called by it when the particular FS is detected ...
1
vote
2answers
260 views

ext4 - Bad magic number in super-block

ext4 is failed me again! the most unstable fs tried to fix it by restoring block from backup, but without luck.. ↪ sudo fsck.ext4 -v /dev/sdd e2fsck 1.45.6 (20-Mar-2020) ext2fs_open2: Bad magic number ...
4
votes
1answer
299 views

“missing data block” when converting ext4 to btrfs

I am on a test VM where I am trying to convert a second disk to btrfs. The conversion fails with the error missing data block for bytenr 1048576 (see below). I couldn't find any information about the ...
1
vote
2answers
285 views

Nested directory depth limit in ext4

Is there any limit for the maximum nested directories in the ext4 filesystem? For example ISO-9660 filesystem AFAIK cannot have more than 7 level of sub-directories.
0
votes
1answer
75 views

Can I update a ext4 filesystem's file create timestamp from Windows Powershell over a network share?

I have a script I run from Windows Powershell and it can update a files modified, and last accessed timestamps. I run the script from a Windows 7 laptop but it can update file timestamps that reside ...
2
votes
0answers
189 views

How do I get a list of files deleted from ext4 filesystem …?

I recently accidentally deleted some files on an ext4 partition with rm -rf. I haven't overwritten the space, and have a copy of both the journal and the whole filesystem (via dd) from shortly after ...
1
vote
1answer
73 views

Do file systems affect the available storage space?

I have heard some group discussing file systems (btrfs vs ext4 and something like that) to use in Linux on computers with less disk space (like 32GB ideapad, notebook etc.). Does the filesystem choice ...
0
votes
1answer
41 views

How to recover / restore an “ext4” partition?

I have an ext4 formatted partition, namely /dev/sdc1. I did not format it but somehow parted reports this partition as an unknown file system. Is there a way to mark this partition as ext4 again ...
0
votes
0answers
19 views

How to access files which are hidden in both linux and windows?

I had to transfer a huge folder I had downloaded from Fedora to Windows. Since GNOME Files mount file systems in read-only mode by default, I had to mount it manually using the following code sudo ...
0
votes
1answer
70 views

kernel not mounting rootfs ext4

I have a machine that has an ext4 partition as the rootfs. The kernel is placed in another partition. After some time the kernel printed a panic because the rootfs was corrupted. After running fsck it ...
-1
votes
2answers
95 views

Copying or restoring crtime for files/directories on ext4fs filesystem

I wonder if there are ways to copy or restore crtime (creation time) for inodes/files/directories in Linux in 2020. I've accidentally deleted a folder while I still have a full disk backup, but ...
0
votes
1answer
25 views

Extending an extended partition with following unallocated disk space

There seem to be many scenarios, I read quite a few, but I caould not find a match for my problem. I have this gparted view on my system: I had sda6 swap sit right behind sda5; I moved that sawp ...
0
votes
0answers
70 views

ext4 xattr: “No data available” from Samba

I've recently installed a Samba4 server and I'm managing user permissions via Windows ACL, which stores access information into filesystem's xattr properties. Everything works, unfortunately I ...
0
votes
1answer
39 views

LUKS: find a deleted key(slot)

I have an external backup hard drive that is encrypted using LUKS. As I was re-organising my backups, I copied the data to another encrypted drive and did a kind of "quick wipe" on the original drive ...
0
votes
1answer
41 views

Recover large file which contains a few bad blocks

I have an SSD with LVM with one LV dedicated to a Win7 VM .vdi file of 80Gb. The underlying fs is ext4. After installing a new SSD and setting up the new LV's in migrating, the copy from the old SSD ...
0
votes
0answers
79 views

1T USB drive will not accept ext4 or xfs filessystem

I bought two 1T USB drives that I wanted to use for a backup media. They came default with exFAT on them and I can mount them with fuse drivers on Centos. But I would rather use a native filesystem ...
9
votes
2answers
150 views

Why does closing a file wait for sync when overwriting a file, but not when creating?

When running this script: #!/usr/bin/env python3 f = open("foo", "w") f.write("1"*10000000000) f.close() print("closed") I can observe the following process on my Ubuntu machine: The memory fills ...

1
2 3 4 5
15