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
-4
votes
0answers
27 views

New to Linux and need help figuring out the step to this new project I'm working on [closed]

Im trying to learn new codes and get familiar with everything about Linux I just keep messing up from start to finish and I just don't know what I'm doing wrong. I would love if anybody could help ...
0
votes
1answer
18 views

Mounting new ext4 to /mnt and editing /etc/fstab file

I have a basic DOS/MBR partition scheme with the partitions /dev/sda1 /boot /dev/sda2 / /dev/sda swap /dev/sda6 /home I am needing to mount an ext4 partition to /mnt, edit the etc/fstab file and ...
0
votes
0answers
25 views

Cannot umount USB drive because it's “not mounted” despite being able to list its content

I've connected external USB drive to my raspberry pi. sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL UUID NAME FSTYPE SIZE MOUNTPOINT LABEL MODEL ...
0
votes
0answers
19 views

Raspberry Pi Ubuntu 20.10 External Hard Drive detected but not mounted

I want to mount an external hard drive into my raspberry pi, I want to do it in a way that get fixed to the same drive, so it is always in the same path, that's why I am editing /etc/fstab. I though ...
0
votes
1answer
21 views

What linux distro support Host Managed HDD by file system?

According to this Seagate presentation there are some ongoing (?) efforts targeted toward modification of ext4 file system introducing SMRFS -EXT4 - support of host managed hard drives. The goal is to ...
42
votes
2answers
6k views

Why does “ls” take extremely long in a small directory that used to be big? How to fix this?

I'm running Arch Linux, and use ext4 filesystems. When I run ls in a directory that is actually small now, but used to be huge - it hangs for a while. But the next time I run it, it's almost ...
0
votes
0answers
8 views

How to make sure if I rescued all the data from a corrupted ext4 partition?

Here's the history log of the partition: https://cloudvyzor.com/logpad/?query&database=sandbox-d306970d9822474714fbfa85aab4af94 sorted with unique entries: https://cloudvyzor.com/logpad/?query&...
0
votes
2answers
35 views

How useful is it to disable access time logging on SSD and are there disadvantages doing so?

As SSD drives have limited writes, I would like to know whether disabling access time logging still plays a significant role in 2021. Most websites I see on the subject are from 2015 and before, and ...
1
vote
0answers
40 views

e2fsck error - fsck.ext2: no such file or directory while trying to open /dev/root

I am working with embedded Linux build with Yocto. My goal is to enforce file checking during each system booting. I've modified the /etc/default/rcS file and I've set ENABLE_ROOTFS_FSCK=yes and ...
0
votes
0answers
22 views

Can't copy file with debugfs command

I'm playing around with debugfs command: # debugfs -w /dev/sda1 -R "write /etc/passwd /test" debugfs 1.45.5 (07-Jan-2020) Allocated inode: 24 But /test is not created: # cat /test cat: /...
0
votes
0answers
19 views

Would it be useful to convert NTFS to EXT4 with this system setup? [duplicate]

Consider the following system: Distribution: Devuan Beowulf. DRAM Memory: 16 GB. Linux kernel version: 5.10.0. Secondary storage: One SDD and one HDD. Used as a desktop, including software ...
1
vote
3answers
81 views

Please help me rescueing a failing hard drive

My both hard drives where all my data is stored are failing. My system insconstently refuses to load the disks and mount the partitions. I moved one hard drive to other computer where it is recognized ...
0
votes
0answers
17 views

An user is not permitted to write in directories it owns, on a external mounted ext4 partition. What could be the problem there? [duplicate]

I'm trying to get a user to be able to write in a directory on an external ext4 partition but I'm experiencing strange access problems, even though the user owns the directory and seems to be ...
0
votes
1answer
22 views

Block allocation in ext4 file system

Can someone explains what is defined as the "order of the request" in the buddy block allocation in ext4 file system? It was not possible to find a clear and definite answer. Is there a ...
-4
votes
1answer
65 views

Why is ext4 offered as the default filesystem if Theodore Ts'o said this about it?

Wikipedia says that In 2008, Ts'o [the designer of ext3 and ext4] stated that although ext4 has improved features such as being much faster than ext3, it is not a major advance, it uses old ...
0
votes
1answer
56 views

lsblk + file system type not appears from lsblk

we have VM machine with disks as sdb sdc sdd ,,, etc we create ext4 file system on sdb disk as the following mkfs.ext4 -j -m 0 /dev/sdb -F mke2fs 1.42.9 (28-Dec-2013) Discarding device blocks: done ...
1
vote
1answer
24 views

Poor I/O utilisation with rsync, RAID6 and ext4

I noticed poor I/O utilization when rsync'ing from an external HDD (connected with USB 3.0) to a RAID6 (4 HDDs) with ext4. iostat shows that reading from the USB HDD happens for most part at 110 MB/s (...
-1
votes
2answers
28 views

Is it safe to run tune2fs -l /dev/device on a mounted filesystem?

Is it safe to run tune2fs -l /dev/device on a mounted filesystem? That is, listing the current values (I'm trying to do this to see if the filesystem is marked as clean). If it's ok, is there a ...
0
votes
0answers
20 views

How does an ext4 superblock become corrupt?

Recently we needed to restore an ext4 filesystem from backup after it failed. Running fsck on the failed device indicated "Superblock has an invalid journal". This is a VM and virtual ...
0
votes
0answers
21 views

Directory changed into a regular file upon a UI drag/drop, now how do I change it back?

I'm on Ubuntu 16.04LTS with the latest Linux kernel 4.4.0-206-generic from Canonical (which could be bugged), and I've never seen anything like this before! Somehow, simply dragging and dropping a ...
0
votes
1answer
27 views

Moving a mounted ext4 filesystem between physical disks

Is there a way to move an ext4 filesystem between physical disks transparently for the applications, i.e. while preserving file descriptors? There's no LVM nor hardware RAID, unfortunately. I was ...
0
votes
0answers
26 views

Unable to recover data from ext4 with TestDisk

Using TestDisk, I was able to successfully recover deleted files from my FAT32 USB Drive, but I'm not able to do the same with my ext4 Linux Mint partition. As you can see in the above screenshot, I ...
0
votes
1answer
28 views

How can I have it so, that when hardlinks which are not the original, are editted, that they would first be copied then editted?

This is something I imagine I might have to submit a patch or feature request for, but I'd like to know if it is possible to create a hardlink to a file, that when that hardlink which was not the ...
0
votes
1answer
35 views

ext4 does not recognise journal device on boot

I have a system with a somewhat large md RAID5 which is presently running ext4fs. The filesystem is running with an external journal, which is on another md (a RAID1). If I add the journal device with ...
3
votes
1answer
187 views

Does Debian GNU/Hurd support ext4 filesystem?

I have downloaded Debian GNU/Hurd disk image. However, while the virtual machine was running, my PC crash along with the virtual machine. I tried to start the virtual machine, but many things were not ...
1
vote
0answers
51 views

How can I restore a deleted directory entry on an ext4 file system?

I was in the process of doing a fsck on an ext4 filesystem on my NAS, where it hit a hard error and quit (unfortunately I've since lost the error message). When I remounted the volume right after to ...
0
votes
1answer
24 views

Create ext4 img from diff

I'm trying to create an update image from an ext4 filesystem which should only consists of the changed files. So basically I have a Debian distro with an ext4 root file system. I want to create a base ...
0
votes
0answers
96 views

SegFault when using ext4magic - trying to recover an older version of a file replaced by a corrupt backup

Problem: ext4magic and debugfs fail to undelete some files from a data hard drive image. I hit segmentation faults and lack of understanding of how to proceed. extundelete and tsk_recover successfully ...
0
votes
1answer
69 views

How much space can I save on ext4 by replacing 1000 identical 1-byte files with 999 hard-links and 1 file?

I have an ext4 formatted disk with thousands of files that are generated automatically and are needed. A few thousand of them are only one byte long, some two bytes. All files in both groups of tiny ...
0
votes
1answer
66 views

How to erase/wipe all ext4 metadata, not just the filesystem signature 53 ef?

I want to make zero all bits of a partition where an ext4 filesystem structure existed (superblocks, metadata, journal, etc), not just the filesystem signature deleted by wipefs. I can quickly zero ...
0
votes
1answer
30 views

Avoid damaged block in ext4

I am running $ uname -a Linux myhostname 4.14.15-041415-generic #201801231530 SMP Tue Jan 23 20:33:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ...
0
votes
1answer
83 views

How to enable transparent drive compression for Ext4 partition used by Debian, Ubuntu and Linux Mint?

The following transparent drive compressions of other operating systems are known: MSDOS 6.22 Doublespace (configured by autoexec.bat or config.sys) Win XP/7: Drive Compression (configured p.e. by ...
0
votes
1answer
35 views

Is there a file system out there that supports custom file size limit?

I'm aware that EXT4 has a max_dir_size_kb mount option to set up the max size of each directory. It doesn't have a similar option to specify the max size of individual files, though. Is somebody aware ...
1
vote
0answers
80 views

diff doesn't return anything, but total size is different?

Usually I like to use a following diff command setup to recursively compare 2 directory structures: diff --brief --recursive dir/one dir/two However on my last attempt it returned nothing, so I ...
0
votes
1answer
60 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 ...
0
votes
0answers
16 views

Finding a way to check whether a file has been rotated

In one of my projects which involves searching into logfiles on Linux, I need to find out how to check whether a logfile has been rotated, usually using the logrotate Linux utility. Due to legacy ...
0
votes
0answers
14 views

LVM operation hangs forever and cannot be killed on QNAP TS-412 with Debian

I have ran into a problem with my LVM. I have 4 drives in RAID 10, each is 14 TB, and on top of that there is LVM. The machine is 32-bit QNAP TS-412 running Debian 10. When installing the system, I ...
0
votes
1answer
102 views

mkfs.ext4 crash with with nvme

I just bought an NVME Team group MP33 SSD hard drive. When I format the partition with NTFS or FAT32 it works fine but when I try to format the root partition with ext4, my computer crashes for two to ...
1
vote
0answers
61 views

Question marks in ls metadata output?

I was monitoring a directory containing downloads from Google Chrome with ls -la and got this in the output: -????????? ? ? ? ? ? 'Unconfirmed 784300.crdownload' I've never ...
0
votes
1answer
33 views

Root file system reported as being 100% without adding any file

I have a 35G mount as my root file system, and until now, it was reporting 1% usage. I was using an SD card for my storage and today I got a new one. I'm mounting my /swap partition on that, so I ...
0
votes
0answers
33 views

Why mounting the root filsystem as readonly does not prevent it from changing?

I'm making some experiment with dm-verity and an ext4 filesystem. Basically, what I want is just to have an ext4 filesystem in read-only that never changes. I've tried: Adding ro,noatime in fstab ...
0
votes
2answers
76 views

Ignore bad sector on ext4 file system without formatting?

UDisk shows the assessment on my disk Disk is OK, 19 bad sectors (24° C / 75° F) This number has remained unchanged for one years long, so I guess my disk is not going to fail, but bad sectors cause ...
27
votes
1answer
4k views

Filesystem copied to new server is 60% bigger - why

I'm migrating a server from an Ubuntu Server 18.02 instance ("saturn") to a newly-built Debian Buster 10 system ("enceladus"). I have copied a complete filesystem across the ...
0
votes
0answers
47 views

Ubuntu 20.04 - Low transfer speed to NTFS external disk

I recently bought 3 external hard drives that seem to have the same problem: When I transfer files from my computer (formatted in ext4) to these external hard drives (formatted in ntfs), the transfer ...
1
vote
0answers
44 views

Corrupted ext3 when accessing with ext4 subsystem

I have been facing issues when accessing multiple HDDs with ext3 using the ext4 kernel subsystem. # tune2fs -l /dev/sdj1 tune2fs 1.41.12 (17-May-2010) Filesystem volume name: <none> Last ...
0
votes
0answers
77 views

Understanding the output of debugfs stat - what is ETB0?

In order to find out whether a file is using any bad blocks, I want to compare the extents listed in the output of debugfs' stat command to the list of bad blocks of a device (as suggested in the ...
0
votes
0answers
18 views

Determine which files are located in a physical area of an ext4 partition [duplicate]

I managed to create an image of a 1000 GB ext4 partition on a dying HDD using ddrescue. The image is almost complete: only an area of about ~34 MB could not be read surprisingly close to the "...
0
votes
1answer
27 views

How do I set different default permissions for files vs folders using setfacl?

I have a folder /stuff that is owned by root:stuff with setgid set so all new folders' have group set to stuff. I want it so: New files have rw-rw----: User: read and write Group: read and write ...
0
votes
0answers
58 views

How to set the default group, file permissions, and folder permissions, for an ext4 mount point?

I have an ext4 disk/partition on my machine and I want to make it so, by default: All files/folders have the group set to groupA All files have: user permissions rw group permissions rw so folks in ...
0
votes
0answers
17 views

Ordered mode behavior in journaling file system

In the following article, it says "ordered mode is metadata journaling only but writes the data before journaling the metadata." Does this mean the data is physically written to disk before ...

1
2 3 4 5
16