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]

learn more… | top users | synonyms

1
vote
0answers
23 views

Differences in permission handling of an NTFS filesystem and an EXT4 filesystem mounted in linux [closed]

What is the difference between permission handling of an NTFS mounted filesystem in linux and an EXT4 filesystem? See How to make an ext4 file writable on mounting by a user (not root) and How do I ...
3
votes
1answer
39 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
22 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
19 views

What exactly is the metadata in a journaling filesystem like ext3 or ext4? [duplicate]

I was going through this link on filesystem journaling, but nowhere it is mentioned what exactly is a metadata. In some other links, it vaguely says it is data about files and directories. Could ...
0
votes
0answers
35 views

Does changing your OS (fedora>OpenSuse) or FS (ext4>btrfs) “break” rsync?

I am using a rather simple script to do incremental backups of my laptop to my external HDD's, where the core line is probably the following: rsync -arbuv --delete --progress -exclude-from=/backup-...
0
votes
0answers
17 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
31 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
10 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
14 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
14 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
62 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
50 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
18 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
50 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
53 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
23 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 ...
1
vote
0answers
24 views

selinux on squashfs with overlayfs

Is it possible to use SELinux on a system with a squashfs root with an overlayfs overlay for read-write operations? On funtoo (gentoo), I booted with SELinux enabled in permissive mode to see what ...
1
vote
0answers
37 views

what's the best filesystem for small files on mdadm RAID10? [closed]

I need to setup a RAID on my Linux server and I am looking for advise about which filesystem I shall use. These are the type of files I am going to be writing/storing into my system. File size ...
2
votes
1answer
47 views

'cd' complexity on ext4

In order to store attachments, a /path/to/atts/ directory will have numerous child-directories (product IDs) created (from 1 to ~10,000 or maybe more in the future), and in each of this subdir, 1 to ~...
3
votes
1answer
60 views

Partition Errors and Remounts Read-Only when Accessing Specific File

I have a pretty basic system running Ubuntu 16.04 (this question is not specific to Ubuntu, but rather ext4 partitions), 1 HDD, running a few partitions: sda1 - EXT4 - 100G - / sda2 - EXT4 - 723....
1
vote
0answers
29 views

Reclaiming disk space in Ubuntu

In VMWare the hard disks took 13.6 GB, But with df, only 5.8 GB is occupied I don't quite get it. This Virtual Machine has no snapshots, and I already clicked on refresh button in VMWare Fusion ...
1
vote
1answer
27 views

Is it reasonable to use a journaling FS on a filesystem image that is stored on a filsystem that already provides journaling?

I need a filesystem image to put 150k files there, so they should be easily relocatable, i.e. mounted as a folder, when in use, unmounted and copied somewhere when needed. Due to the large number of ...
0
votes
0answers
223 views

Recovering accidentally deleted ext4 partition on DM-0 LVM2 volume spanning across physical drives

I have a setup with some LVM volumes, with following configurations. I accidentally formatted the LV "lvmedia" using the disks program in gnome(I know this was extremely stupid and frustrating) I ...
3
votes
1answer
60 views

How to read/change SELinux context on mounted ext4 image from non-SELinux system?

I have a Linux system (Arch Linux) without SELinux support. I would not like to configure such support on my system. Now, I have an ext4 volume image which is known to have some SELinux context set on ...
1
vote
1answer
86 views

Ext4 corrupted and unrecoverable after LVM resizing + power failure

I have a completely standard, single hard drive Fedora 23 desktop. The dual-boot installer set up the Linux partition as LVM, with root, swap and home logical volumes; root and home were both ext4. ...
1
vote
0answers
34 views

How to move an ext4 journal

I have an ext4 filesystem on an USB stick and after using it for some time I would like to move the journal to some other blocks, so that the stick lives longer. The journal is described by inode 8, ...
2
votes
1answer
200 views

mkfs.ext4 command not found in Debian (Jessie)

I have just installed Debian 8.4 (Jessie, MATE desktop). For some reason the following command is not recognized: mkfs.ext4 -L hdd_misha /dev/sdb1 The error I get: bash: mkfs.ext4: command not ...
3
votes
1answer
148 views

Recover formated ext4 partition with file structure

I'm trying to recover from an accidental format of ext4 1TB HDD. I tried virtually all linux tools (extundelete, ext3grep, ext4magic, testdisk, photorec, and others). Some that worked: testdisk, ...
1
vote
0answers
34 views

External USB drive fsck fails on boot

Yesterday I tried setting the fsck flag on fstab to 2 for the external USB HDD I use in my Raspberry Pi, so that it would be checked on boot, like: proc /proc ...
2
votes
1answer
163 views

Why is EXT4 filesystem mounted with both relatime and lazytime

I'm running Debian/Testing, with kernel 4.4: # uname -a Linux shaula 4.4.0-1-amd64 #1 SMP Debian 4.4.6-1 (2016-03-17) x86_64 GNU/Linux So I want to use the lazytime mount option, which is why I put ...
2
votes
1answer
67 views

Is it safe to mount same ext4 filesystem at different mount points?

I know there is option "--bind" for multiple mount operation to handle such case. But ext4 can be directly mounted at different mount points, without option "--bind". So, I wonder whether it is safe ...
2
votes
1answer
65 views

Why this switch will effectively format disk to ext2 instead of ext4?

I'm new to linux, I'm formatting a disk with following command switches, I can format the disk to ext4. sudo mke2fs -F -E lazy_itable_init=0,lazy_journal_init=0,discard -t ext4 -b 4096 ... However, ...
0
votes
2answers
614 views

cp: cannot create directory 'ABC.DEF/G/H': Structure needs cleaning

What does it mean "Structure needs cleaning" ? I've never seen such error code before - and man cp is not that helpful. It has happened to me on ext4. I was trying to copy directory using: cp -arv ...
2
votes
2answers
275 views

why Inode file size is different than actual size

I noticed one log file having less size than what's mentioned in inode. $ ls -lhtr /var/log/test/fk-3p-kafka/kafkaServer-gc.log -rw-r--r-- 1 fk-3p-kafka fk-3p 11G Apr 10 18:27 /var/log/test/fk-3p-...
0
votes
0answers
12 views

Why is EXT4 on LUKS on MD-RAID6 not detected by openSUSE's YaST

For maximum control over the storage configuration I've got two MD-RAID6 devices pre-configured as follows from openSUSE's Rescue system before rebooting the computer into openSUSE's installation ...
1
vote
2answers
138 views

Does Debian use GB or GiB for it's partition manager during installation?

I'd like to create a 5GB (1000) as one partition during the install of Debian. However, I'm not sure if if the partition manager uses Gib or GB. The version of Debian to be installed is 8.4 using the ...
0
votes
1answer
132 views

Filesystem errors when restoring many files

I had an external hard drive that I mounted internally. It came formatted with NTFS, and I wanted to move to ext4. So I copied everything I wanted to keep onto other drives, created a brand new ...
0
votes
2answers
48 views

Is it safe to shrink beginning of partition?

I have got paritions that look like this: And I would like to shrink /sda2 (home) for 2gb to right to make space to resize sda1 into 12GB. Is it safe to do it with gparted from live cd? Will I not ...
3
votes
1answer
50 views

Dynamically resizable partition in a file.. possible?

I ran into the ecryptfs bug where files with long filenames don't get written (because of the prefix that ecryptfs adds to the original filenames, thus extending their length). So I was wondering if ...
-1
votes
1answer
96 views

Retrieve data from “erased” home partition while installing win7

I had a computer with a windows 7 and I installed lubuntu 14.04 on another partition (I think I shrinked the windows NTFS partition first). I installed lubuntu this way: -> NTFS boot -> NTFS ...
0
votes
1answer
62 views

Recurring ext4 “bad header invalid magic” errors on a healty drive

I'm getting frequent and recurring ext4 "bad header invalid magic" errors on an apparently healthy, brand new (few months old) external USB drive (WD MyBook 1230) connected to a Raspberry Pi running ...
1
vote
1answer
50 views

How to mount HDD extracted from singledrive-ZyXEL NAS

Gparted Information and Warning: <i>Filesystem volume name: <none> Last mounted on: /i-data/f128dac5 Filesystem UUID: c2f55399-a8ab-400b-a144-d605ceb58c9d Filesystem ...
1
vote
1answer
54 views

Recover files inside a folder which was replaced by an empty one. (openSUSE, Ext4)

Is there a way to restore a folder or better the containing files and folders of the folder which was replaced by a empty one with the same name? FileSystem: Ext4 OS: openSUSE 42.1 If it is ...
0
votes
2answers
45 views

rsync to USB flash drive always transferring all data

When rsyncing a directory to a freshly plugged-in external USB flash drive, via rsync -av /source/ /dest/ all files get transferred (i.e. rewritten) despite no changes in the files. Note that ...
0
votes
2answers
75 views

Boot delay errors?

I continuously get these messages upon boot: [ 17.806441] EXT4-fs (sda1): re-mounted. Opts: (null) [ 157.196550] postgres (1297): /proc/1297/oom_adj is deprecated, please use /proc/1297/...
1
vote
2answers
30 views

Recover lost ntfs partition?

I made a live USB of ubuntu to install it on my hp pavilion running win 10. Was planning to do dual boot, but accidentally reformatted my main ntfs partition into an ext4. Is there any way I can ...
3
votes
3answers
99 views

“write-once archive”: ext2 vs ext4^has_journal vs

summary Suppose one is setting up an external drive to be a "write-once archive": one intends to reformat it, copy some files that will (hopefully) never be updated, then set it aside until I need to ...
1
vote
1answer
49 views

Is it safe to reencrypt unencrypted mdadm array with LUKS?

I would like to convert my raid6 mdadm into encrypted LUKS. Right now raid6 consists of "/dev/sdX1" which are raid partitions. /dev/md0 doesn't have a partition - it is pure ext4 FS. Is it safe to ...
4
votes
1answer
769 views

Formatting an sdcard with mkfs hangs indefinitely

I am trying to format an sdcard following this guide. I am able to successfully create the partition table, but attempting to format the Linux partition with mkfs yields the following output: mke2fs ...
3
votes
1answer
53 views

If I grow an ext4 partition, will it increase the number of inodes available?

If I create a small filesystem, and grow it when I need to, will the number of inodes increase proportionally? I want to use Docker with the overlay storage driver. This can be very inode hungry ...