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]
3
votes
1answer
32 views
Deleting old files is slow and 'kills' IO performance
I'm using find to prune old files, lots of them.. this takes minutes / hours to run and other server processes encounter IO performance issues.
find -mtime +100 -delete -print
I tried ionice but it ...
1
vote
1answer
32 views
What are the consequences of having many files in a directory in an ext4 filesystem?
My task is to store a list of JSONs on disk (without using any database) and I have these options:
Store them in a single, large file.
Store them in separate files, keyed by their IDs.
Personally I ...
-2
votes
0answers
29 views
Corrupt ext4 filesystem after e2image interrupted
I have a ~450 gigabyte ext4 filesystem, located at /dev/sda5 on my computer. The partition it resided in, however, was about a gigabyte bigger. So I used the command e2image -ra -p -O XXXX to move the ...
0
votes
0answers
10 views
Intentionally create a unprocessed orphan inode list on ext4
Well, is there a way to produce unprocessed orphan inode list on ext4?
i have already tried
dd if=/dev/zero of=/dev/my_ext4 seek=1000 bs=500K count=1
but dd corrupted my whole file-system.
i jsut ...
3
votes
0answers
37 views
Undeleteable 33GiB file on a 4GiB USB-Stick. fsck says “clean”, Error: “Operation not permitted”
I successfully installed a live debian 8.x on a 4G thumb-drive, like many times before. However, this time there is a 33GiB tee.1.gz file in /usr/share/man/man1/, which is much larger than a normal ...
1
vote
0answers
22 views
Syntax of `offset` option of `e2fsck`
In this answer the user @psusi shows a use of e2fsck that I could not find in the documentation: e2fsck /dev/sdc1?offset=2048.
I am trying to use it to check a device (manually failed and removed) ...
1
vote
1answer
26 views
How to dump the list of used inodes on a ext4 filesystem by using debugfs?
After a hard drive I/O failue and an attempt at fsck recovery on an ext4 partition, I've got a disk where the numbers of used inode is vastly different according to 'df -i' and according to 'find . | ...
0
votes
1answer
65 views
mount: mounting /dev/sda2 on /mnt/sda2 failed: Invalid argument
I'm following this tutorial: http://wiki.khairulazam.net/index.php?title=Wifi_Pineapple_Mark_V_on_TP-Link_MR3020 But I got stuck at step 9, somehow I'm not able to mount my usb.
Every time I try to ...
0
votes
0answers
13 views
Is it possible to get the start and end byte locations, relative to the device, for a file?
Assuming that /dev/sda1 has an ext4 filesystem. On that filesystem, there exists a file: /foobar.txt .
Is it possible to determine the byte range (or list of fragmented ranges) that /foobar.txt ...
2
votes
0answers
28 views
Mount ext4 formatted mircosd on Nvidia Shield TV
I have a rooted Shield TV but I can't figure out how to mount the microsd card.
I see that the file system is supported but I don't see where the device is listed.
Usually I would look for mmcblk or ...
3
votes
2answers
78 views
Launching Windows corrupts ext4 partitions
I have been using a Windows 10, Arch Linux and Ubuntu triple boot for the last year, without any problems. However, last week something weird started to happen. First, let me give the output of fdisk -...
0
votes
0answers
26 views
wired problem of ext4 filesystem: ext4_init_inode_table always has error, but e2fsck cannot fix it
I had a dumped ext4 partition image: mmcblk0p5
I can mount the image, but it always read-only. So I checked the dmesg, there is something like this:
EXT4-fs error (device loop0): ...
0
votes
1answer
39 views
Error mounting, exit status 32, Can't mount my ext4 data partition
I recently re-arranged my partitions and created a data partition so that I could access my files in both Windows and Linux Mint 19, without having to deal with NTFS. All went well until yesterday ...
4
votes
3answers
439 views
Why doesn't mount respect the ro option?
I have a server where a partition (/var) switched to read-only. So I try to reproduce this problem on another server with the following command.
mount -o remount,ro /var/ -f
When I check our ...
0
votes
0answers
9 views
fsck on root partition on BBB based custom board
We have BeagleBone Black based custom Embedded Linux Board.
It has Linux-3.12, 256MB RAM and 4GB eMMC with ext4 file system on it.
Sometimes we run into file system errors(rare but not impossible). ...
0
votes
0answers
10 views
Is it safe to use e4defrag on raid5 based ext4 partition?
I have an linux based software raid5 which contains an ext4 filesystem.
Is it safe to use e4defrag somfile to lower the fragmentation of some files or should e4defrag not be used on raid5 based ...
3
votes
1answer
41 views
How can I find the last sector used by an ext4 filesystem?
I need to identify the last sector used by an ext4 filesystem so that I can move it to another device.
The filesystem has been shrunk (with resize2fs) and is smaller than the partition that contains ...
0
votes
0answers
25 views
/etc/fstab entry to automount drive in either ext[234] or FAT formatting
I'm trying to make an entry in /etc/fstab that works with either EXT[234] or FAT formatted disks. If I do this
/dev/sda1 /mnt/usbstorage auto defaults,user 0 0
It works for any EXT formatted drive, ...
2
votes
1answer
19 views
Sizing a disk image/filesystem to hold exactly a certain set of files with near-zero free space
I need to construct, in code suitable for scripting/make/automation, a disk image (two partitions, a FAT filesystem and an ext4 filesystem, for UEFI/Syslinux USB Linux booting [OS installer], which ...
3
votes
0answers
61 views
Difference in space reserved for inodes in ext4 and XFS partitions
I am formatting a couple of 60G Logical Volumes (vg01-logs and vg01-monitoring) in one of our servers. These partitions will hold a large number of small files, so I want them with more than the ...
2
votes
0answers
38 views
Ext4-Error: Bit already cleared for inode
System:
Debian Wheezy Kernel 3.11.6
Atmel SAM9x25
Mono 3.2.8
SD card with ext4 partition
I got following message error when I booted my mono application:
root@net-231:/opt/programm# [ 6061.078125] ...
0
votes
2answers
88 views
How to create a partition table with btrfs?
I want to install Ubuntu 16.04.1 (the latest release at this moment) in my laptop and am thinking about the partition scheme and the filesystem of my new OS.
Firstly, the current partition table I ...
0
votes
2answers
48 views
Are hard links for directories possible on ext2/3/4 filesystems?
I've read that the command (and perhaps the system call, too) for creating hard links will not let one create hard links for directories. I also understand that hard links can pose problems for path-...
2
votes
2answers
100 views
limit the maximum size of file in ext4 filesystem
Ext4 has a maximum filesystem size of 1EB and maximum filesize of 16TB.
However is it possible to make the maximum filesize smaller at filesystem level ? For example I wouldn't like to allow to ...
0
votes
0answers
26 views
Recover formatted partition
TL;DR: ext4-disk with ~250GB of data -> Partitions deleted using fdisk -> New partition created using mkfs.ext4 -> Need to get back all files as intact as possible
A few days ago I copied ~250Gb of ...
1
vote
1answer
133 views
how do I check TRIM?
I have Linux installed on a Dell XPS 9343 with an Samsung PM851 SSD.
I recently read that many SSDs don't support TRIM operations.
So I'd like to check if discard option effectively works on my system....
1
vote
3answers
182 views
VMware: Why is zero-filling ext4 free space needed to shrink *.vmdk files?
On my Linux Mint 17.2 VMware guest, df -h was reporting my total disk usage steady at about 10GB total. I'm using this machine for Ruby on Rails development inside a Windows host running Workstation ...
1
vote
1answer
56 views
Btrfs snapshot to non-btrfs disk. Encryption, read acess
I want to try Btrfs. I've already found that you can make a snapshot of a live system but there are a few thing I haven't found answers for. Well, as I understand a snapshot basically a full copy in ...
1
vote
2answers
56 views
How to get read-write access (safe) to ext4 filesystem used by second OS running from virtualbox
I run Ubuntu 16 Desktop as host and on VirtualBox running Ubuntu 16 Server as guest which is using raw partition on another disk different from the one used by the host.
I am searching for a solution ...
10
votes
1answer
278 views
Does inode number determine what files were created earlier than others?
In an ext4 filesystem, suppose that file1 has inode number 1, and that file2 has inode number 2. Now, regardless of any crtime timestamp that might be available, is it wrong to assume that file1 was ...
1
vote
1answer
56 views
U-boot 2016.07: ext4fs_devread read outside partition
With the latest released U-Boot (2016.07) it suddenly started to produce cryptic error messages like this:
U-Boot> ext4load mmc 0:2 ${ramdisk_addr_r} /initramfs.uImage
invalid extent block
...
5
votes
1answer
102 views
Why does my file have multiple crtime entries?
Using ext4 filesystem I was able to read out the creation time of a file using the approach here. As a result I am indeed provided with a table featuring the crtime (creation time) of the inode(...
0
votes
0answers
35 views
extundelete can't see any deleted files
I'm using Linux Mint (MATE), with an ext4 filesystem.
In a classic friday afternoon moment I managed to delete 90% of my project folder for my main application - a huge amount of file data (probably ...
3
votes
3answers
381 views
inodes, consumed space comparison (xfs, btrfs,ext4)
Regarding the amount of space used by the inodes, does one of these file systems use less space?
I have an ext4 partition (LVM on a VM) with a large amount of small files, which I have to extend every ...
1
vote
1answer
49 views
Does Vim netrw plugin actually display the content of directory file?
netrw plugin in Vim allows one to see directory files. Fow example here I start Vim with vim .:
" ============================================================================
" Netrw Directory ...
1
vote
1answer
65 views
Short read while trying to open /dev/sda2
I just resized a .vdi from my host from 15.5G to 120G. I tried to resize the partition from the guest (ubuntu server) using resize2fs
root@ubuntu:~# sudo resize2fs /dev/sda2 115G
resize2fs 1.42.13 (...
2
votes
1answer
35 views
Register callback for newly inserted disk?
I'm not sure if my title is describing it correctly, but essentially, I was wondering if there was a way to register a callback with the system so that when a user attached an external drive my ...
3
votes
2answers
110 views
Share an ext4 filesystem between two RHEL servers, but only one will mount at a time
I have two RHEL 6 servers which share a physical connection to a SAN storage (i.e., so both servers can see this /dev/sdb when running fdisk -l).
My goal is not to have both servers access the ext4 ...
1
vote
1answer
39 views
overwrite ext4 partition data without previous erase
I have an ext4 partition containing rootfs.
I need to implement a system update (uboot) which just extracts and writes the new rootfs image. This probably works like dd-ing the image into MMC flash ...
0
votes
0answers
26 views
dump command - does it save extended attributed, ACLs and SELinux settings on ext4 filesystems?
I'd like to use dump(8) for dumping an ext4 filesystem for transport to another system. However, it is not clear from research that I have come across as to whether the dump/restore pair will ...
3
votes
1answer
157 views
What does mounting a filesystem with user_xattr do?
SELinux documentation for Debian says that user_xattr is not the same as extended attributes. So what is it?
0
votes
1answer
13 views
General ratio regarding FS <-> LV
Based on New FS size differs from LV size
We need a 4 GByte sized FS on top of an LV. OS: RHEL6, 64bit.
Question: How big LV is needed to have a 4096 MByte sized FS on it? Are there any percentages ...
1
vote
1answer
23 views
New FS size differs from LV size
I create a 4 GByte sized LV on a RHEL6 machine.
I created a 4 GByte sized EXT4 FS.
[root@server ~]# lvcreate -n newlvnamehere -L 4096M rootvg
Logical volume "newlvnamehere" created.
[root@server ...
0
votes
1answer
21 views
Problem in Videos playing
I am using Dell Inspiron 3542, when I tried to play videos, it is showing: mpeg-4 AAC decoder not installed. What is the solution?
Using PHP 7 on CentOS 64bit.
3
votes
1answer
171 views
Delete file with missing inode number
I had some bad sectors on my ext4 partition and using hdparm --write-sector I managed to reallocate them. However, I ended up in state where in one folder I have folder that has no inode assigned.
```...
1
vote
1answer
192 views
How to avoid the difference in options that were used for creation of ext4 partitions on different Linux distro?
I have some set of scripts that create qcow2 file with grub legacy (0.97) with special patch to boot from ext4 and ext4 file system for '/'.
When I run those scripts on Ubuntu 12.04/14.04 the VMs ...
0
votes
0answers
35 views
resize partition to get some space from EFI partition
I realized that I gave lot more space than required for EFI partition. Is it possible to get some space( 9G ) out of EFI partition into /dev/sda3?
This is my current partition:
[root@archpc ~]# ...
5
votes
1answer
66 views
Why is fragmentation level so huge in files that contain other filesystems?
I've just found out what sparse files are and wanted to conduct some experiments on them. On wiki you can read that the files can get fragmented easily. I wanted to check how bad that is. I created a ...
1
vote
1answer
100 views
Root cannot remove file on ext4
I have on ext4 disc the following file:
-r--r--r-- 1 root root 61440 20. pro 15.30 ldlinux.sys
But rm, chmod and mv says permission denied even for root. Any ideas what could be the problem?
FYI, ...
1
vote
0answers
27 views
Can skipping `fsck` on boot impact serial-port communication?
I have a bizarre serial-port (RS-232) communications issue (it appears that some data is being dropped, though I'm not sure if it's outgoing, incoming, or both) that I'm observing sporadically. I've ...