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
1answer
442 views

Backup Files on ext4 to external NTFS drive

Would there be any problems in copying files on my Linux system with ext4 filesystem to an external drive that is formatted in NTFS? I'm reinstalling my OS and intend to copy these files back to my ...
0
votes
0answers
34 views
+50

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
2answers
23 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
0answers
34 views

XFS or EXT4 which is better [on hold]

We are migrating our servers from RHEL 5 to RHEL 7, we are planning to go with XFS file system which is the default one in RHEL 7. Need to decide which one is a better option. Below link says that ...
1
vote
1answer
34 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
23 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
28 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 ...
0
votes
2answers
76 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
1answer
33 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, ...
1
vote
0answers
28 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
27 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 ...
1
vote
1answer
37 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
2answers
244 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 ...
0
votes
0answers
7 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
70 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 ...
11
votes
4answers
9k views

External hard drive permissions - ext4

I have an external USB 3 disk drive (2TB capacity) that is most likely going to be moved from machine to machine. The disk has a GUID partition table and an ext4 partition. I am unable to write to the ...
0
votes
1answer
57 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 ...
2
votes
1answer
39 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 ...
0
votes
2answers
28 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 ...
-1
votes
1answer
61 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 ...
4
votes
4answers
5k views

How do I find the offset of an ext4 filesystem?

I have a failing hard drive that is unable to write or read the first sectors of the disk. It just gives I/O errors and that is all there is. There are other areas on the disk that seem (mostly) fine. ...
3
votes
1answer
12k views

Creating an ext4 partition fails with “invalid blocks count”

Environment: - Virtual machine on VMWare ESX 4.0 - OS: fully up to date RHEL 5.8 After adding a new (virtual) disk I want to create an ext4 partition on LVM on this disk. Steps taken so far: $ sudo ...
0
votes
1answer
51 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 ...
0
votes
2answers
71 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 ...
1
vote
1answer
24 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 ...
28
votes
4answers
79k views

Recovering ext4 superblocks

Recently, my external hard drive enclosure failed (the hard drive itself powers up in another enclosure). However, as a result, it appears its EXT4 file system is corrupt. The drive has a single ...
1
vote
1answer
36 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
26 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 ...
15
votes
3answers
19k views

Can overwritten files be recovered?

I am not talking about recovering deleted files, but overwritten files. Namely by the following methods: # move mv new_file old_file # copy cp new_file old_file # edit vi existing_file > D > ...
2
votes
2answers
114 views

Why debugfs doesn't show crtime in nanoseconds?

I am using: debugfs -R 'stat <7473635>' /dev/sda7 to get the file creation time (crtime). Inode: 7473635 Type: regular Mode: 0664 Flags: 0x80000 Generation: 1874934325 Version: ...
1
vote
1answer
311 views

find the cause of file corruption when copying files to a network share on an Ubuntu machine

I am copying files from my SD card to my Ubuntu server via Windows 7 using a network drive. The problem is that sometimes, 2 files out of 150, are corrupted during transfer. See here 2 example files ...
6
votes
1answer
1k views

how to make malware file readable with “No read permission on file” on linux ext-4?

There is an ongoing campaign of sending virus/trojans in e-mail messages faked as being from HSBC Bank, Lloyds TSB, Amazon etc. The trojan/virus is sent in a application/zip attachment. I've saved ...
11
votes
1answer
12k views

How can I mount filesystems with > 4KB block sizes?

I have a 3TB hard disk pulled out of a WD Mybook Live NAS. The partition table is as follows: Model: ATA WDC WD30EZRS-11J (scsi) Disk /dev/sdb: 3001GB Sector size (logical/physical): 512B/4096B ...
3
votes
3answers
54 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 ...
64
votes
8answers
64k views

How do I know if a partition is ext2, ext3, or ext4?

I just formatted stuff. One disk I format as ext2. The other I want to format as ext4. I want to test how they perform. Now, how do I know the kind of file system in a partition?
1
vote
1answer
29 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 ...
2
votes
2answers
1k views

ext4 corruption found in superblock, but filesystem can be mounted

After a crash, I've got an Ext4 filesystem (on an LVM LV) that gives the following error when running fsck.ext4 -nf: e2fsck 1.42.12 (29-Aug-2014) Corruption found in superblock. (blocks_count = 0). ...
4
votes
1answer
302 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
42 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 ...
24
votes
7answers
99k views

Tell fs to free space from deleted files NOW

Is there a way to tell the kernel to give back the free disk space now? Like a write to something in /proc/ ? Using Ubuntu 11.10 with ext4. This is probably an old and very repeated theme. After ...
11
votes
1answer
3k views

Why is this empty directory 3.5MB?

I've just read this question: What does size of a directory mean in output of 'ls -l' command? ...which doesn't quite answer my question. Basically, I'm moving files onto a NAS. The folders ...
4
votes
1answer
280 views

File containing ext filesystem

Let's suppose I create a file, map it to /dev/loop0, and create a LUKS partition inside dd if=/dev/zero of=myfile bs=1M count=1000 losetup /dev/loop0 myfile cryptsetup -c aes-cbc-essiv:sha256 -s 256 ...
7
votes
7answers
4k views

Sync writes very slow. Ubuntu 10.10, 32 bits, ext4

I am running ActiveMQ on my Macbook Pro that runs Ubuntu 10.10, 32 bits with an ext4 partition. Linux iker-laptop 2.6.35-23-generic-pae #40-Ubuntu SMP Wed Nov 17 22:32:51 UTC 2010 i686 GNU/Linux If ...
0
votes
0answers
54 views

Files Just Go Missing On ext4 Partition (within TrueCrypt Volume)

There are spooky things happening on one of my external hard drives. It's a 3 TB hard drive with: one big partition taking up basically all the storage space there is, and a pretty small partition ...
3
votes
0answers
70 views

tune2fs - how much space to reserve on large ext4 filesystem

I am aware that there are several questions concerning how much space to reserve on a filesystem using tune2fs -m, but some of the advice is contradictory, some seems to be relevant only to the ...
3
votes
1answer
41 views

Can I create a file on ext4 with a depth > 1 for testing purposes?

In order to test an analysis tool, I need a file where the depth (eh.eh_depth) is greater than 1. I've tried a couple of things: A large file (1GiB) Creating hundreds of smaller files (1MiB), ...
3
votes
1answer
47 views

Decrypt a portion of a corrupted drive

I have a hard drive that got corrupted after a doing an MTP mounting of a cell phone. It was created under Fedora Core 20 using defaults. Originally, I thought I did it as an ext4 partition. I ...
1
vote
0answers
187 views

ext4 & jbd2 dirty metadata

I have an embedded system based on the RiotBoard, I have the main file system on the MMC set as read-only, and an 8gb usb flash drive for writeable storage. rootfs is debian, linux kernel version ...
1
vote
1answer
145 views

Why is OS constantly writing to disk (ext4) on a Ubuntu 14.04 machine? Is it normal?

I'm quite sure it didn't happen before I started using LUKS and LVM on my disk (2 or 3 weeks ago), but now root user is constantly (every 2-3 seconds) writing (not reading, just writing) on disk and I ...
2
votes
1answer
37 views

Any way to help “visualize” the superblock, filesystem, group descriptors, etc

I've been reading a lot about filesystems, trying to learn all I can in depth, but I'm having trouble really visualizing some of it, especially when it comes to things like the superblock, group ...