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
23 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
133 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
39 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
42 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
57 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
75 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 ...
5
votes
2answers
602 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
70 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 ...
-3
votes
0answers
23 views

What commands can check the healthiness of partitions, LVs, and filesystems, and repair any problems if possible? [duplicate]

I have just created some LVs, and have attempted to move / and /home to different LVs, and modified mount point in /etc/fstab. Now I try to reboot, but Lubuntu seems stuck at shutdown forever. So I ...
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
72 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
32 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
72 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
52 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
46 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
50 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
104 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
125 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
43 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
44 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
76 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
53 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
94 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
90 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
73 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
0answers
290 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
71 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
52 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
43 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
119 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
56 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
22 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
263 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
94 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
39 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
86 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
193 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
60 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
41 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: ...
2
votes
3answers
664 views

BTRFS Raid 1 vs. MDADM Raid 1

I'm currently in the process of setting up a NAS system mainly for backing up my computer and probably also for streaming media files to my devices. For these purposes, I decided to use ...
0
votes
1answer
64 views

Small files take up ridiculous amounts of space [closed]

I've setup a little server with Ubuntu. It has 2 SSDs configured in RAID1 using EXT4. The server has a lot of websites on it: WordPress, Magento and the likes, which amount to a lot of small files. ...
0
votes
1answer
58 views

ext4 partition is broken during resizing with gparted

I installed Fedora 28. But I resized the partition that contained Fedora (/dev/sda7) wrongly using GParted and now I can't boot my system. (Note the partition format is ext4)
3
votes
0answers
109 views

How does Linux make sure to reclaim useless “buffers”, from caching the ext4 journal writes, before anything else (e.g. before swapping at all)

My laptop tends to run with about 256MB counted as "Buffers" - in /proc/meminfo and free -w -h - out of about 8GB of RAM. I'm interested in memory usage. I sometimes get into trouble using too much. ...
0
votes
2answers
56 views

What can cause a difference of 3 gigabytes on two identical trees?

I've just copied a dir tree to another disk with cp -a. This tree is ~70GB big with millions of files, and diff was taking forever to finish, so I was looking for other methods to compare the dirs. ...
0
votes
1answer
62 views

Does a filesystem check initiated from /etc/fstab auto-repair?

We have a Raspberry Pi located at a location where it may experience frequent power loss. I'm trying to make it scan, and repair (if necessary) a filesystem every time it boots up, in case the power ...
3
votes
1answer
147 views

Best options for 4 million files on ext4

I'm going to put 4 million files into an EXT4 partition. I have about 700 files in each dir, the average file size is 38kb, total size is 169 gigabyte. What are the best options in terms of block ...
0
votes
0answers
37 views

fsck says that i_blocks is double the size it should be

I've got lines like this in my ext4 /home partition (no backups, stupid stupid me, though I don't think there's any data loss): Inode 6031335, i_blocks is 16, should be 8. Fix(y)? yes Should I be ...
1
vote
1answer
45 views

How to use ext4 inline_data to store empty directories?

How can I use ext4's inline_data feature to store empty directories? It seems like inline_data works only with small files, or the directories store a lot of data.
0
votes
1answer
57 views

Where is the file creation time (birth) stored in linux?

Using debugfs -R 'stat <inode_nr> ' /dev/sda1 returns a result where there is a field crtime which i believe represents the creation date of a file pointed to by inode numbered inode_nr. I use ...
0
votes
1answer
111 views

Backing up Linux to a Windows file system for later restoration

I need to backup / copy the files of my Linux installation to an external drive, so that I can restore them onto the new, larger disk. The destination disk for the restoration is twice as large, and ...