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]

Filter by
Sorted by
Tagged with
0
votes
0answers
298 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
105 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
568 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
91 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
221 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 ...
0
votes
0answers
1k views

How to take read all the partitions from eMMC dump

We have Beaglebone Black based custom board with 4GB eMMC and 256MB RAM. eMMC is partitioned as follows # parted --list Model: MMC MMC04G (sd/mmc) Disk /dev/mmcblk0: 3842MB Sector size (logical/...
0
votes
0answers
48 views

What directory is // [duplicate]

$ cd / /$ ls bin dev home initrd.img.old lib64 media opt root sbin sys usr vmlinuz boot etc initrd.img lib lost+found mnt proc run srv tmp var vmlinuz....
-1
votes
1answer
111 views

How to extend size of mounted ext4 /home gpt partition without loss of data?

I have GPT partitioning for my drive: $ sudo fdisk -l /dev/sda Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): ...
2
votes
2answers
456 views

Slow Write Speed(<2 MB/s) on Unencrypted and LUKS Encrypted ext4 filesystems using mdadm Software RAID1 Debian 8 Dell PowerEdge T330 Server

We have installed Debian 8 on a new Dell PowerEdge T330, there are two partitions, / and /var, in a RAID1 array using mdadm. During testing the primary applications: mysql and tomcat were stopped. We ...
0
votes
1answer
45 views

Used < size and no available space, even after reboot [duplicate]

Yesterday evening, I ran something that produced way more output data that I expected, filling the root ext4 partition as a result. I killed the offending process and started deleting unrelated data I ...
3
votes
0answers
519 views

ext4 mount: mount /dev/mmcblk0p2 on /SD failed: File exists?

If I try mounting the ext4 file system of /dev/mmcblk0p2 into the blank directories I just created: /SD and also /mnt/SD, then the command line answers with: mount: mount /dev/mmcblk0p2 on /SD failed:...
4
votes
2answers
2k views

Does “recovering journal” prove an unclean shutdown/unmount?

Can we confirm the log message "recovering journal" from fsck should be interpreted as indicating the filesystem was not cleanly unmounted / shut down the last time? Or, are there other possible ...
2
votes
1answer
132 views

Showing 0 (zero) disk space available even though there is free space

I have an ext4 volume that is 3.6T. According to df, the USED is less than SIZE with about 100GB free. However AVAIL shows 0. If I run gparted it shows the real amount of free space (100GB). If I ...
1
vote
1answer
115 views

How to list all recoverable deleted files and folders?

Is there a way to list all deleted files and folders which can be recovered in Linux? Is there a way to show the health of recoverability of those deleted files and folders?
4
votes
2answers
4k views

big data + what is the right filesystem ext4 or xfs?

We have Linux Redhat version 7.2 , with xfs file system. from /etc/fstab /dev/mapper/vgCLU_HDP-root / xfs defaults 0 0 UUID=7de1ab5c-b605-4b6f-bdf1-f1e8658fb9 /boot ...
0
votes
0answers
644 views

Zero Free Space on Centos 7 KVM

I have a number of Centos 7 KVM virtual machines running under proxmox. Is there a way to ZERO out all unallocated space with zeros? I have some that are EXT4 and some that are XFS. Reason I want ...
1
vote
0answers
93 views

LUKS/ext4 mapped drive sector count mismatch after resize2fs

After using e2resize and repartitioning an ext4 fs within a luks container, I'm getting some peculiar results: # e2fsck /dev/mapper/a e2fsck 1.44.1 (24-Mar-2018) The filesystem size (according to ...
5
votes
1answer
430 views

When do logical partitions happen to need 1MB gap at each side in gparted?

I had a similar problem with this one: Why can't I create a logical partition with gparted?, where a logical partition cannot be created/formatted. Only in my case I was in a live session and it still ...
1
vote
0answers
860 views

Ext4 with LUKS explorer for Windows

What is the easiest way to use an external drive with LUKS encryption and EXT4 file system in Windows ? Ext2read have support for LUKS ?
0
votes
1answer
345 views

Resume interrupted duplicity backup without reading directory from scratch

I'm performing a full backup of a directory with duplicity 0.7.17. Slow I/O is the bottleneck (less than 20 MiB/s read) and the directory is large (~5 TiB). The full backup was interrupted before it ...
3
votes
0answers
896 views

How to stop jbd2 on unmounted filesystem

I need to resize2fs the root partition of an embedded device. Since it doesn't have an alternate boot option, I used an tmpfs, moved and restated everything until I finally was able to umount /dev/...
0
votes
1answer
79 views

What are ZFOD extents?

What I understand about it is its "Zero fill on demand" extent. That means file system doesn't allocate write data to the file but it just gives us ZFOD extent and when an application tries to read/...
0
votes
0answers
75 views

Recovery data from corrupted encrypted partition

I accidentally overwritten 3.4 gb (exactly first 3407725056 bytes) used dd command on my external 1TB disk with LUKS encryption. The disk was prepared exactly as described this tutorial: https://www....
1
vote
2answers
398 views

filesystems: recovering filenames from ext4 when there is no root inode or journal?

The root inode and journal have both been wiped from my ext4 filesystem accidentally when I zeroed the first few megabytes of my partition. My data, however, has all been successfully recovered with ...
0
votes
1answer
189 views

Is there a practical way to view ext file system on Windows?

I have a project which requires a lot of contact with ext file system. But the majority of tools is based on Windows. Thus is there any software or plugin for explorer which allow the access to ext on ...
0
votes
1answer
757 views

Automatically shrink an ext4 IMG file

I have an ext4 img file containing an Android system partition files. I mount it by using sudo mount -t ext4 -o loop,rw system.img system When I'm done editing the files and umount the file, I ...
0
votes
1answer
471 views

Is it okay to format my Toshiba Canvio Ready Portable Hard Drive to “ext4”?

Today I have bought a new Toshiba 1TB Canvio Ready USB 3.0 Portable External Hard Drive (Black). The specifications page of the portable hard drive says, it has been formated to NTFS file system and ...
2
votes
1answer
61 views

How exactly is ext2 upwards-compatible?

I read somewhere that an operating system which knows nothing about ext3 and ext4 (i.e. antique Linux version) is able to read/write to ext4, and it detects any ext4 file system as ext2. I am not ...
0
votes
1answer
2k views

Cannot extend partition beyond 2TB on AWS Ubuntu

a@b:~$ sudo growpart -v /dev/xvda 1 update-partition set to true resizing 1 on /dev/xvda using resize_sfdisk_dos 6291456000 sectors of 512. total size=3221225472000 bytes WARN: disk is larger than 2TB....
1
vote
1answer
347 views

How is free disk space on ext4 calculated?

I know there are tools like df which show the disk space remaining on disks but I could not find any info on how this tool actually gets this info. I would imagine the filesystem keeps track of this ...
2
votes
1answer
2k views

how to enable xattr support in Debian 9 (Stretch)

I have added user_xattr in ext4 but when I remount it doesn't show xattr & I installed attr & attr_dev # <file system> <mount point> <type> <options> <...
0
votes
1answer
318 views

Manually backup superblock - how to & does it make sense?

Background The first block of an ext4 filesystem is called the superblock - it contains essential metadata. There are backup copies of the superblock scattered throughout the filesystem; they can be ...
1
vote
1answer
94 views

formatted drive as ext4 in another PC. can't mount in another PC

so I have a single partition ext4 drive that I formatted in my Ubuntu desktop. I connected it to another PC running debian and I cannot mount it. Any ideas on how to fix it? some info: => sudo ...
2
votes
2answers
1k views

How to erase gpt partition table and how to make old partition forget mount information

We have Beaglbone black based custom board with 256MB RAM and 4GB eMMC. We have script to flash software on the board. Script erases gpt partition table using following commands #Delete primary gpt (...
1
vote
1answer
362 views

ext4 with corrupt filesystem structure

Something has corrupted my ext4 partition on my debian server. The server had an uptime of about 1700 days, and unfortunately the UPS did not have enough battery to last a whole day power outage. I ...
7
votes
1answer
8k views

How to make an ext4 formatted usb drive with full RW permissions for any linux machine?

I want to format my USB stick to ext4 and just use as I would any other typical non-linux format drive (FAT32, exFAT, NTFS). That is to say, I want to be able to plug the usb stick into any of my ...
1
vote
2answers
86 views

How to identify relevant parts of an ext4 partition

Background: I need to clone ext4 partitions from an eMMC using uboot (and if neccessary custom bare metal code). I copied the whole thing using mmc read and found that most of the partition is empty, ...
3
votes
2answers
708 views

Why is 67108864 the maximum bytes-per-inode ratio? Why is there a max?

Formatting a disk for purely large video files, I calculated what I thought was an appropriate bytes-per-inode value, in order to maximise usable disk space. I was greeted, however, with: mkfs.ext4: ...
0
votes
1answer
129 views

ext4 mounted on / and tmp consuming disk space

I am using an Ubuntu 16.04 LTS. I ran into an unusual problem with my disk usage. Some of my applications were aborted with the message on the terminal stating "not enough disk space available". The ...
2
votes
1answer
165 views

How to defragment files in size less than 100MB only in ext4 filesystem

I have a very basic idea: I would like to defragment files in size less than 100MB only in ext4 filesystem. Since there is no option for that in the defragmentation tool (e4defrag), any ideas how I ...
0
votes
1answer
326 views

Can Ubuntu use an EXT4 hard drive through a USB-SATA dock?

I have a linux system with two 3T EXT4 formatted data hard drives in addition to a system SSD. They are not formally raided, I just rsync from one to the other from time to time to keep two copies of ...
0
votes
1answer
2k views

SSD partition aligned

I need to prepare the file system of an SSD disk in a way that a Database Administrator pointed me to, which would be a way optimized SSD to work. I have a disk: SSD: Samsung 500 GB SATA III 6Gb/s - ...
7
votes
2answers
1k views

rmdir failed to remove empty directory

I have a problem with removing empty dir, strace shows error: rmdir("empty_dir") = -1 ENOTEMPTY (Directory not empty) And ls -la empty_dir shows nothing. So i connected to the fs (ext4) with debugfs ...
2
votes
0answers
1k views

EXT4 app2sd link2sd partition repair with bad superblock . Partition cannot be mounted on Android but will mount RW w/ su on Linux Live

I have a 128gb micro sd formatted as ext4 10gb for app2sd 2nd ext4 partition ( p2 ) on my Android 6 phone . All my apps ( 80%) stay on that ext4 partition . Now app2sd cant load this partition - "...
4
votes
1answer
259 views

Moving millions of small files results in “out of space” error

I't trying to move around 4.5 million files (size ranges from 100 - 1000 bytes) from one partition to other. The total size of the folder is ~2.4 GB First I tried to zip it and move the zipped file ...
0
votes
1answer
473 views

“VFS: Can't find ext4 filesystem” on ZFS disk

I am getting many of these messages on one of my systems: [ 348.515157] EXT4-fs (vda9): VFS: Can't find ext4 filesystem [ 348.517587] EXT4-fs (vda9): VFS: Can't find ext4 filesystem [ 348.519944] ...
2
votes
1answer
79 views

Recover file system after overwriting first sectors

I have accidentally overwritten the first few GB of my external hard drive with dd. Previously the file system had a NTFS file system of about 3TB and at the end an 1 TB ext4 file system containing my ...
4
votes
0answers
409 views

Trouble mounting 5Tb external USB device

I purchased a Seagate Backup Plus 5 TB USB 3.0 Portable 2.5" drive as I've recently maxed out the 1TB drive I have connected to my RPi2 running ArchLinuxARM and serving up music around the home (...
2
votes
0answers
163 views

Are there any known ext4 issues that could randomly cause files to become zero-bytes in length?

My company produces Android devices running Linux 3.4 and we have seen that sometimes but rarely a file on the ext4 emmc file system will suddenly become zero-length. Normally I would suspect an ...