Stack Exchange Network

Stack Exchange network consists of 174 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]

-1
votes
0answers
11 views

Recovering SD Card

I had raspbian running on my pi for some times. From yesterday, when booting i can read this on the screen : "end kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(179,2)" I ...
6
votes
1answer
46 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
0answers
27 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
52 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
19 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
25 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
35 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
40 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
26 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
54 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
15 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
86 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
59 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
35 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
48 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
95 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
52 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
27 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
261 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
61 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
46 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
53 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
34 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
73 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
20 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
30 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
30 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
60 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 ...
0
votes
1answer
30 views

What FS can reclaim unused blocks to VirtualBox when dynamically allocated image is used?

I like to use dynamically allocated images in VirtualBox. It is preferred way if you like to distribute you image (remember Vagrant?). What Linux FS can reclaim unused blocks to VirtualBox when ...
0
votes
1answer
24 views

How do I format a hard drive EXT4 with lowest possible inode disk usage (for 1 Dir and 1 Massive File)?

I am trying to prepare a hard drive for burst mining on linux and want to maximize the hard drive space available for the plot file. So for this I need to set the inodes to the minimum possible that ...
2
votes
1answer
447 views

Dropbox is not letting me move its storage off the (small) eMMC

I'm having problems with a fresh install of LMDE on an acer Travelmate (TMB117 M C587) that has a 32gb eMMC drive and a 1tb hdd. specifically, I can't move dropbox's storage off the eMMC onto the 1tb ...
4
votes
1answer
491 views

Am I hammering my SSD by keeping a symlink on it?

Instead of configuring my Nextcloud (Linux/Nginx/PGsql/PHP) server to look for a folder on my spinning hard drive mounted at /mnt/HDDfs/, I Sym-Linked /var/Nextcloud_Data so it points to /mnt/HDDfs/...
2
votes
1answer
34 views

How to recover when ext4 superblock's inode count is reset to 0

We tried to resize a 15TB ext4 partition to 16TB and accidentally managed to hit an old (and fixed in newer releases) off-by-one bug of ext4_resize_fs() which causes inode count to reset to 0 thanks ...
0
votes
1answer
89 views

Is ext4 filesystem safe? [closed]

I recently had couple of accidents with my disks formatted to etx4. To be honest, I believe the failure was on my side, because one of them was due to incorrect [manual] unmounting of flash card, and ...
0
votes
1answer
64 views

Can I get rid of “ext4-rsv-conversion” process?

uname -a gives: Linux devuan 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1 (2018-04-29) x86_64 GNU/Linux All filesystems on all disks in this box are ext3 (~15T worth over six disks) ps -A gives: ... 14684 ? ...
3
votes
1answer
116 views

lvmcache and ext4 data=journal => overkill?

We are running lvmcache (24TB raid5 hdd data, 64GB raid1 ssd cache+meta) and we are using external journal with data=journal for the ext4 fs on that raid5 and have the journal on the same ssd raid1 (...
1
vote
2answers
161 views

mkfs.ext4: invalid blocks offset=X on device device.img

My goal is to create a regular file and within it make a partition and file systems (literally a virtual hard drive) and finally mount it, so I did: sudo dd if=/dev/zero of=imagem-zero.img count=...
3
votes
2answers
152 views

How to kill/terminate running e4defrag without damaging my data?

If I kill a running e4defrag, is there a risk of data loss/corruption? Is there a safe way to interrupt it? For example: running e4defrag on large partition (such as the root directory) or large file ...
0
votes
0answers
148 views

How to change the block size of a partition during a Debian installation?

I cannot find any option to change the block size or set an exact inode count for my partitions through the available UI options, so I switched to tty2 during the installation and set up all of my ...
0
votes
0answers
34 views

Formating the wrong partition on Linux Debian

I have, mistakenly, deleted "/dev/mmcblk0p5". I connected to my server(Debian 9) via browser with a new feature I had installed "open media vault" to create/manage a NAS, then I saw two patitions in ...
2
votes
2answers
313 views

ext4-fs: bad geometry: block count exceeds size of device

I have 2TB disk that I use in notebook. This disk was formatted as ext4 and It works fine in notebook, but when I attach it to desktop (via sata-usb adapter), I am unable to mount it due to following ...
3
votes
2answers
73 views

Why is it slower to write the same data to a *larger* pre-allocated file?

I am writing 4 * 4KB blocks to a file. It is consistently around 50% slower if I have used fallocate() to pre-allocate the file with 9 blocks, instead of only pre-allocating the 4 blocks. Why? There ...
-1
votes
1answer
22 views

Cross-platform Filesystem and ACLs for installation on Raspberry Pi

I am deploying NextCloud on my Raspberry Pi. I am stuck on what I know is an inefficient way to design and run a system. Currently the configuration sits on an external drive with ext4 file system. I ...
19
votes
2answers
2k views

What happens when I kill 'cp'? Is it safe and does it have any consequences?

What are the consequences for a ext4 filesystem when I terminate a copying cp command by typing Ctrl + C while it is running? Does the filesystem get corrupted? Is the partition's space occupied by ...
1
vote
1answer
32 views

Inode Timestamp Plus/Minus Interpretation

What does +0200 mean after the Access/Modify/Change timestamps? File: task-system.md Size: 197 Blocks: 24 IO Block: 4096 regular file Device: 33h/51d Inode: 14155787 Links: ...
1
vote
1answer
115 views

Superblock replicas in ext4

I am trying to find the association between block groups and superblocks in an ext4 filesystem I was unable to find much of documentation online, except this link that hints that Because of the ...
2
votes
1answer
414 views

Some documentation for the “ext4-rsv-conver” process?

$ pgrep -a -f ext4-rsv-conver 153 ext4-rsv-conver 161 ext4-rsv-conver 7451 ext4-rsv-conver $ dpkg -S ext4-rsv-conver dpkg-query: no path found matching pattern *ext4-rsv-conver* Also I can't find ...
2
votes
3answers
208 views

Random EXT4 FS errors

I'm having a wired problem in my laptop. It works fine but almost every hour the screen freezes. When I force the shutdown and start it again, I see problems similar to this: The only solution I ...
6
votes
3answers
428 views

How can I make btrfs pretend to be ext4?

Dropbox have just announced that their Linux client will only support ext4 in the future. I currently use Dropbox on a btrfs partition (without any issues). Apparently xattr support is essential. Both ...