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]

1
vote
1answer
249 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
83 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
52 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: ...
3
votes
3answers
1k 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
75 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
74 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
1answer
193 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
94 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
327 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
51 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
61 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
88 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
164 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
48 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
63 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
572 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
603 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
82 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
279 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
188 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
250 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
367 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
314 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 ...
2
votes
2answers
675 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
116 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
31 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 ...
22
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
70 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
255 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
861 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
415 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 ...
8
votes
3answers
600 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 ...
1
vote
1answer
642 views

Journal has aborted ext4

Hi in my CentOS guest in VirtualBox I just realized, that my FS is mounted as readonly. From dmesg I got: [ 1725.767566] EXT4-fs error (device sda1) in ext4_ext_remove_space:3028: Journal has ...
0
votes
1answer
36 views

What would happen if you zeroed out a certain group of blocks in the EXT4 filesystem?

Basically, the EXT4 filesystem has chunks of data in size of 128MiB (by default), and this chunk is called a "group" or "group of blocks", which basically looks like this on the disk: The bigger the ...
1
vote
2answers
41 views

How can I move a directory (and all sub files/directories) but move items in alphabetical order?

When I run the following: mv -v foo /mnt/bar The directory foo and all it's sub contents is moved into the directory /mnt/bar. The order that files are moved appears to be directory order (ls -U). ...
2
votes
0answers
205 views

debugfs occasionally fails to read inode data

I need to get date and time when a file was created. The file is stored at ext4 filesystem so the information is available in the i-node and I use debugfs to read this information: # debugfs -R "stat ...
1
vote
0answers
42 views

Ext4: Prevent “Last mounted” to be stored

The Superblock of a filesystem has information when a filesystem was last mounted. You can get this information with debugfs show_super_stats e.g. Last mounted on: / ... Last mount time: ...
1
vote
1answer
247 views

Why is mount failing silently for me?

I'm trying to mount a device but without success. The strange thing is that the mount command succeeds and return exit code 0, but the device is not mounted. Any idea on why this happens or how to ...
0
votes
1answer
293 views

Linux ext4 partition keeps converting all files to read-only mode

I have installed Linux deepin os on my laptop which I have been using for the past 6 months now, the past two weeks,the computer slows down and when I save a file, I get and error Read-only file ...
1
vote
1answer
134 views

Why inode number is zero for writeback mechanism in linux kernel

I'm researching linux kernel. Right now only for v3.10.61, it's just proof of concept. I need to pass-through some hints to hardware about what kind of data in particular WRITE\READ operation. E.g. ...
1
vote
2answers
1k views

How to shrink a partition below the minimum size reported by resize2fs?

I want to shrink a 250GB ext4 partition down to 200GB with resize2fs. The df tool says the partition is about 40% filled up. So, I guess I can, at least, shrink the partition to that level. Yet, ...
0
votes
1answer
865 views

extundelete - How to solve 'Block bitmap checksum does not match bitmap when trying to examine filesystem'?

The OS is Ubuntu 17.10 and I've been trying to recover(undelete) with extundelete. (The File System is ext4.) This didn't work. So, I tried with extundelete /dev/mapper/ubuntu--vg-root --restore-...
2
votes
1answer
294 views

Can I enable barriers for ext4 under LVM?

I'm on Ubuntu 18.04 and if I issue: $ cat /proc/mounts I don't see barrier=1 next to my main filesystem (under LVM). Does this mean barriers are not enabled? I read that while there were issues with ...
0
votes
0answers
292 views

Zero Disk Space

I have a Centos 7 server with ext4 running as a KVM and I want to zero the free disk space. This is so when I backup the KVM the compressed image size is reduced. I saw this command etc. dd if=/dev/...
0
votes
1answer
94 views

Unable to Mount… EXT4: First Meta block group too large

EXT4-fs (dm-46): first meta block group too large: 1152 (group descriptor block count 1096) I have a filesystem, which is ext4, on a machine with 4.17.2-1.el7.elrepo.x86_64. The logical volume is 8....
2
votes
1answer
502 views

is there a way to atomically move file and directory from tempfs to ext4 partition on eMMC

We have beaglebone black based custom board with 256MB RAM and 4GB eMMC. Board runs Linux kernel 4.9 we are running into a situation where we create a file in tempfs and then after validation, we ...
0
votes
1answer
74 views

automount USB stick ext4 on Fedora XFCE

I have USB stick with two partitions VFAT and ext4. When I plug in stick, VFAT partition is RW automounted but ext4 partition is RO for user because is mounted under root:root # df -T /dev/sdc5 ext4 ...
2
votes
1answer
80 views

Share folder/files between multiple users on ext4 disk

Here's the situation - I have a 1TB drive mounted at /data. There are multiple local users on the desktop. All of them are in the localusers group I have a virtualbox VM with a 50 GB VDI dsik ...
0
votes
1answer
209 views

Problem resizing ext4 root partition on Centos6x64

My Centos6x64 VM came has a ~500G disk xvda. Initially, 8G was allocated to xvda1 and mounted on /. The remainder of the 500G disk space in xvda was not yet allocated. So i decided to make this ...