Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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]

0
votes
1answer
31 views

why do some directories have .uuid directory in a directory?

I have seen this quite a few times. In some random directories there is usually a .uuid file or directory therein. The directories are nothing special so as to speak. They are mostly random media ...
0
votes
0answers
6 views

journal_async_commit is not compatible with older kernels. What would you see in this case?

man ext4 mentions a mount option called journal_async_commit. Commit block can be written to disk without waiting for descriptor blocks. If enabled older kernels cannot mount the device. This ...
0
votes
1answer
38 views

move system partitions to different physical drive with different filesystem

My RHEL7 system is configured like this: Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 50G 18G 33G 36% / /dev/mapper/rhel-home 504G 147G 357G 30% /home /...
1
vote
0answers
29 views

find extents of each file recursively in a ext4 image file [closed]

I want to log the extents of each file recursively present in a ext4 image file. the physical location of files in ext4 image Any tool i can use for this? or any script? debugfs gives each file ...
1
vote
0answers
54 views

All ext4 files got deleted and the journal can't be found! Is there any way to recover it?

All of the files on my usb stick were deleted by accident (rm -r) but I'm having trouble recovering. When I try to run ext4magic it says "filesystem has no journal" and it mounts as ext2 only. I ...
0
votes
1answer
49 views

If a directory is put in lost+found after running fsck, will it contain all of the original contents?

Let's say I have the following directory structure, in an ext4 filesystem: a/b/{1..9} (in other words, a/b/1, a/b/2, ... a/b/9) Suppose I am writing to a/b, and then I lose power. fsck runs and ...
1
vote
1answer
37 views

Getting sector number from inode or address_space mapping

In am trying to understand how to calculate a sector number from an inode in the ext4 filesystem. Therefore, I am reading ext4_mpage_readpages function. About the function: During a read request, if ...
0
votes
2answers
45 views

Setting noatime via mount options vs no atime updates (A) file attribute

From man chattr When a file with the 'A' attribute set is accessed, its atime record is not modified. This avoids a certain amount of disk I/O for laptop systems. However when I am remounting ...
0
votes
1answer
24 views

Ext4 - Last write time

I'm currently looking at an issue with data loss and was using the tune2fs utility, and I was wondering what 'Last write time:' refers to. The volume is written to constantly and backups confirm that ...
1
vote
0answers
25 views

Automatically eject HDD on lock screen [duplicate]

I have an external HDD (/dev/sdc) with only one partition (ext4). This particularly hard drive stay connected in my computer all the time, but I don't want to remove it manually. I need a way to ...
0
votes
2answers
131 views

mount ext4 disk: cannot mount /dev/sdc read-only

I have an SSD disk with an ext4 filesystem on it: $ lsblk -f /dev/sdc NAME FSTYPE LABEL UUID MOUNTPOINT sdc ext4 142b28fd-c886-4182-892d-67fdc34b522a I am ...
2
votes
0answers
21 views

Are released blocks logged in the journal for ext4?

Suppose we have a simple case: ext4 file system with journaling a single file named file, which has no other hard links the inode for file has associated with it only 1 data block My understanding ...
0
votes
1answer
32 views

EXT4 CRC32C checksum algorithms are badly documented

So I'm making some kind of research on EXT4 checksums. I found this page and tried to calculate checksum by myself. I've started with Superblock since it is sounds pretty simple: "The entire ...
4
votes
1answer
229 views

Should I answer yes to “Clone multiply-claimed blocks<y>?” when running e2fsck?

When running e2fsck -cck /dev/mapper/xxx I am prompted with has 487 multiply-claimed block(s), shared with 84 file(s): ... (inode #221446306, mod time Tue Feb 20 19:48:38 2018) ... (...
0
votes
0answers
44 views

How are ext4fs checksums being calculated?

I've been studying ext4 file system contents and stumbled upon this paragraph: https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Checksums It says how blocks of data for different structures ...
1
vote
2answers
54 views

Error when move or delete file on ext4 in dpkg info directory

There is a troublemaking empty file (md5sums of kernel 4.19.1) left on my ubuntu system, with has strange owner/group/date/attributes How to fix or workaround this defect file? $ uname -a Linux ...
-4
votes
2answers
75 views

Windows removed files copied from Linux and ext4 filesystem

I have an external hard drive with a ntfs filesystem. I have used it to backup the files under my /home (an ext4 filesystem). I choose NTFS only because it is said to be portable between Windows and ...
-1
votes
2answers
210 views

How can an image file be created for a directory?

How can an image file be created for a directory? For example: https://unix.stackexchange.com/a/90794/674 shows that genisoimage can create an iso image file for a directory. I only know that an ...
6
votes
2answers
652 views

Why is the size of a directory either 0 or 4096? [duplicate]

$ ls -l total 28 drwxrwxrwx 1 t t 4096 May 8 2018 dir1 drwxrwxrwx 1 t t 0 Mar 12 2015 dir2 drwxrwxrwx 1 t t 4096 Jan 17 2014 dir3 drwxrwxrwx 1 t t 4096 Jun 12 2017 dir4 drwxrwxrwx 1 t t ...
-2
votes
2answers
164 views

How can I make `fsck` actually check the healthiness of my disk, partitions, filesystems, and LVs?

I want to check the healthiness of my disk, partitions, filesystems, and LVs. So I run fsck. I heard to use fsck on a filesystem, I need to boot into a live Lubuntu from a bootable flash drive and ...
1
vote
1answer
42 views

How can I find out the used size of an umounted filesystem?

Is there a way to find out the used size of an umounted filesystem? I want to resize the ext4 / filesystem, so I boot into a live Lubuntu using a Lubuntu bootable flash drive. Since the / filesystem ...
1
vote
0answers
241 views

Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes

My laptop has Lubuntu 18.04 installed, and I boot into a live Lubuntu via a bootable flash drive, and then examine the partitions and filesystems. Is the following warning some serious problem to ...
0
votes
2answers
35 views

Recommended format for backup extension drive

I have a 2TB seagate extension drive formatted to NTFS. I have been using it for read and write purposes in Windows and read only in Linux. Now that I have decided to get rid of windows, I need to ...
0
votes
1answer
275 views

How to use zerofree on a whole disk?

My VirtualBox filesystem looks like: # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 29799396 5467616 22795012 20% / devtmpfs 1929980 0 1929980 0% /...
2
votes
1answer
103 views

Can ext4 filesystem withstand a bad sector (unreadable)?

If a hdd bad sector happens in the metadata for /home/user/me on an ext4 fs would that mean data loss for all subdirectories? Background: I know that many users are satisfied with the ext4 ...
0
votes
1answer
50 views

Shared Hard Drive?

I'd like to set up one external hard drive that would serve as the backup drive for two different laptops, both running Linux. I understand this is problematic b/c each machine will have its own set ...
0
votes
1answer
61 views

Does parted have the same functionality as gparted for shrinking an ext4 partition?

I've been Googling about, and it seems the answer is 'no' from anecdotal reports for gparted. However does this apply to parted as well? I'm not talking about risk factors here involved by inputting ...
0
votes
2answers
239 views

How do inode numbers from ls -i relate to inodes on disk

I'm trying to understand how inode numbers (as displayed by ls -i) work with ext4 partitions. I'm trying to understand whether they are a construct of the linux kernel and mapped to inodes on disk, ...
-2
votes
2answers
233 views

Why can't Windows read Linux filesystems? [closed]

When playing with filesystems and partition, I realized that when I created a ext file system on my USB drive and plug it to Windows, I am forced to format it. On the other end, when building a FAT ...
0
votes
0answers
49 views

Recover accidentally deleted custom files

I accidentally deleted important custom (not known-or-commercial) files from my scientific researches on image processing. I created the files by collecting raw digital signals from an image sensor. ...
2
votes
0answers
98 views

processes hanging when trying to access a file

I'm running Ubuntu 16.04.5 and the ext4 filesystem, and I have a file which causes processes to hang when they read it. For example: $ cat /path/to/file.txt and then from a separate terminal: $ ...
0
votes
4answers
87 views

Automate multiple password enties to decrypted LUKS + Ext4 USB stick

I have a USB stick encrypted with LUKS + Ext4. I have forgotten the password... However, I know which words will be included in the password and have a list of all permutations of those words. ...
2
votes
2answers
113 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
1answer
118 views

Why directory with large amounts of entries does not shrink in size after entries are removed?

Close vote notice: While the linked duplicate asks same question, the comments and the only answer do not provide an answer which draws from authoritative source. The answer on my question by Thomas ...
1
vote
1answer
208 views

SD Card Recovery without data loss or corruption

I have a 128 GB Micro SD Card that I formatted as ext4 and used in a Chromebook for an Ubuntu Chroot Environment. I used it for quite some time that way. At some point, I either deleted everything off ...
2
votes
1answer
140 views

Why do some filesystems perform better at storing large files?

I read about the XFS filesystem and found that it is good at storing large files. Why are some filesystems (XFS) good at storing large files and others (ext4/ext3) are not? Is it because of the ...
0
votes
1answer
703 views

Ext4 Error and disk remounted read-only

Sometimes I have an error ext4 and my disk becomes read-only. I can fix it with a reboot and fcsk /dev/sda2 but it keeps coming back... Here are some dmesg : [ 3160.692730] perf: interrupt took too ...
1
vote
0answers
119 views

Running MongoDB as service on Arch Linux

I'm trying to get mongoDB run under Arch. However, I'm only able to start it as root or using systemctl with the default path. What I'm trying to do is to change the default data path from /data/db ...
1
vote
2answers
84 views

Root reserved blocks

While I did Ubuntu netinst, the question came into my head. The question is: is reserved 5% kind of run-time? I mean, when doing something like sudo apt install - this 5% is beign used by root at this ...
1
vote
2answers
47 views

50GB /dev/sdb is filled with more than 250GB of files?

I migrated my vmware vcenter(26GB) over NFS on to /dev/sdb(50GB). [root@centos7~]# df -hT /dev/sdb Filesystem Type Size Used Avail Use% Mounted on /dev/sdb ext4 50G 26G 21G 56% /...
2
votes
0answers
236 views

ext4 jbd2 and I/O priority

I want to delete a huge directory with over 6 million files across over 4000 directories, totaling about 26GB of data. As I knew this was going to take a while I used ionice to set the I/O priority ...
3
votes
1answer
57 views

does Linux kernel alter unmounted ext4 partitions?

When the 4.9 Linux kernel boots and recognizes the presence of and MMC partition, does it alter the partition in any way if the partition is not mounted? I pre-calculated the sha256 of a "filesystem....
1
vote
0answers
36 views

Live resize of root partition in case of “LUKS on LVM” [duplicate]

Having read about the pros and cons of "LUKS on LVM" vs "LVM on LUKS" I came to the conclusion that "LUKS on LVM" does not provide live resize. But why? And is this even true as of todays ...
1
vote
2answers
597 views

Is it possible to disable ext4 case sensitivity?

With NTFS you can enable or disable case sensitivity. Is there a way to do it with ext4 in Linux?
-1
votes
2answers
135 views

Does gparted make good use of badblocks lists?

Suppose there's a hard drive /dev/sda, and both that: /dev/sda1 is a single ext4 partition taking up the whole disk, and it's mostly empty of data. dumpe2fs -b /dev/sda1 outputs the badblocks ...
0
votes
1answer
48 views

What is the actual sequence of steps during rm -Rf on a very large folder?

Let's say I run rm -Rf on a very large folder with many files and folders of different size, user permissions etc. I would like to know, does the rm command first accumulate the list of files to ...
0
votes
1answer
153 views

Reformat lvm to ext4 and change mountpoint

I need the space of sda on either / or a specific mount like /data. How can I repartition / change the current layout to match the needed desire? sda 8:0 0 2.7T 0 disk ├...
1
vote
1answer
231 views

Mount an ext4 partition in another PC(Windows) at the same network in my Ubuntu Live?

Is there any way to mount an ext4 partition in another PC, running Windows, at the same network in my Ubuntu Live? My HD just died earlier today and I needed to use Live Distros until I get a new one....
3
votes
2answers
78 views

Is it possible to expect copies of files from ext4 to ntfs filesystems can work equally well as the original?

I am reading about how symlinks created on linux filesystem not work well when copied to NTFS filesystem at https://ubuntuforums.org/showthread.php?t=1497914. Is it possible to copy files of any ...
0
votes
1answer
48 views

Missing HDD space

I have a 4 TB drive and I am missing some space. It has one partition of 7814035086 sectors: $ sudo gdisk -l /dev/sdc GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: protective BSD: ...