Questions tagged [ext4]
The ext4 or fourth extended filesystem is a journaling file system for Linux, developed as the successor to ext3.
433
questions
1
vote
1
answer
54
views
how to test in bash which of the two symlinks is older (or newer)
Apparently, the bash tests -nt and -ot dereference links.
Let's consider the following files and links to them:
$ ls -lt --full-time f* | cut -d ' ' -f 6-
2023-04-24 02:05:01.083919712 +0200 f1l -> ...
0
votes
1
answer
27
views
ext4 disk modified by windows 10 and now lost all files on that drive [duplicate]
I had a 250GB SATA SSD and 500GB SATA SSD. I first used Ubuntu OS installed on the 250GB SSD and used the 500GB SSD to store my other files. Then I decided to dual boot Windows 10 to use Office ...
0
votes
0
answers
23
views
how to know if we need to replace the VMDK disk based on dmesg messages
we have RHEL 7.6 server ( VM machine ) , and we noticed about the following kernel messages.
[2422507.399218] EXT4-fs (sdd): error count since last fsck: 5
[2422507.399230] EXT4-fs (sdd): initial ...
1
vote
0
answers
102
views
Formatting/permanently mounting an nvme1n1 type drive on Ubuntu 22.04
I have an EC2 instance (Ubuntu 22.04), that I would like to add an additional 20 GB drive to. I used the AWS console to create a new 20GB drive, and attached to my instance.
When I do lsblk:
NAME ...
2
votes
1
answer
97
views
Why does the performance of a hard drive with ext4 vary over time?
I have a strange problem with a Western Digital HDD.
The performance of this drive varies pretty significantly over time. The observed range goes from ~50MB/s to more than 100 MB/s. The performance is ...
0
votes
0
answers
65
views
Partition unused space larger when mounted vs unmounted in GParted
Trying to resize partition using GParted to make it as small as possible before creating read-only image.
When mounted, unused space is 2.06GiB… when unmounted (right-clicking partition in GParted and ...
0
votes
2
answers
681
views
How to make Windows read ext4, zfs, etc. linux drives?
In linux packages like ntfs-3g enable linux systems to read and write to NTFS drives. However when I connect a drive that was previously used in linux to a Windows system, Windows does not recognize ...
0
votes
1
answer
55
views
How to convert NTFS to ext file system without loosing data in zeroin os
I was using windows 11 and switched to Zeroin OS
I have 2 hard disk on my pc
1- Agile 240 GB SSD
2 WD 2 TB HDD (It was having two partition on windows but now showing only one)
After switching from ...
1
vote
1
answer
67
views
Why copying the entire content of a Hard Disk to a similar Hard Disk of same capacity (5TB) results much extra (140GB+) free space
I bought WD Elements 2667 and my old Hard disk is WD my passport 2665. After copying the entire content of 2nd HDD to 1st HDD, resulted free space of 140GB+ in the new HDD. I checked the size of lost+...
0
votes
0
answers
13
views
I ran 'mkfs.ext4' on a LVM volume. Any possibility of data recovery? [duplicate]
I have a external storage device that I use for local network storage. It had a single LVM volume on it with some data on it this morning. I've been working on transferring the data off the LVM ...
0
votes
2
answers
346
views
Formatting a USB as EXT4 FileSystem format
How do i format a EXT4 Drive on windows cmd? i'm making a small script for my java program to run. it involves formatting a drive in et4.
Thanks in adavance.
0
votes
0
answers
57
views
LVM, EXT4, mount points etc. I'm not even sure how to determine what the issue might be
I have a media server that used to work: 4 disks, EXT4, as a single LVM with 5 shares.
Working through other tutorials, when I execute the "lsblk" command this is what I see:
NAME ...
0
votes
0
answers
170
views
How to corrupt Ext4 journal file
For a test on my box, I need to corrupt my Ext4 journal file. Is there a way for this? (not the Ext4 file system, I am looking for it's journal corruption)
1
vote
2
answers
807
views
rsync "File name too long (36)" error for filenames with UTF-8 characters
Trying to copy files from an NTFS-formatted HDD to an EXT4-formatted HDD, rsync fails to copy some of them having relatively long file names consisting of Asian (UTF-8) characters.
For example, there'...
1
vote
0
answers
23
views
How to determine how the data was set when creating the ext4 on the raid0 LVM
I am working on consistent snapshots verifications. We snapshotted the raw device attached (saying two drives sdb and sdc) to a host and want to check the data was preserved with the desired orders as ...
4
votes
2
answers
7k
views
How do I write to a USB drive formatted as ext4 in Windows 11?
I have an SD card formatted as ext4 for use with SteamOS and EmuDeck. I want to add files to this SD card from my Windows 11 PC using a SD to USB adapter. Most of the the ext4 programs I've found ...
0
votes
0
answers
62
views
Recovery of scp overwritten file
I had two 2GB txt files a.txt and b.txt that I wanted to copy to another directory using scp.
However I accidently didn't type the destination directory and typed the following commands
scp *.txt
and ...
0
votes
1
answer
97
views
Can rsync --remove-source-files to the same drive reduce fragmentation?
I know that rsync with --remove-source-files (which I use instead of mv so I can merge directory hierarchies) creates new inodes:
stat 2021_07_30_20_18_17.pdf~
rsync --remove-source-files ...
1
vote
1
answer
126
views
If SSD content is changed due to this kind of error, should you get new SSD?
This came up when I booted. When I did the manual fsck it told that it changed the content of the drive. Is there a way to know which file(s) is affected?
The system is running Ubuntu 20.04 and this ...
2
votes
1
answer
376
views
Restore Files Deleted with rm -rf on linux
I accidentally deleted two folders from my home directory and I want to recover them. I don't want to use testdisk or ext4magic (they just don't work for me and are really annoying). Also I have not ...
0
votes
0
answers
345
views
Error 2133571347 while opening filesystem ext4magic
I was trying to recover some deleted files and I was running
sudo ext4magic /dev/sda1 -f /home/xxx/deleted-file -r
and I am getting this:
Error 2133571347 while opening filesystem
Does anyone have ...
0
votes
0
answers
17
views
Can you mount ext4 partitions in Windows with read/write access as if they were native NTFS partitions? [duplicate]
Given ext4 is open source, is there a Windows extension that allows you to mount ext4 as a native Windows drive?
Much like FUSE allows us to mount drives under MacOS and Linux and have them appear ...
0
votes
1
answer
277
views
How to avoid non contiguous directories
This question came from this other question.
I'm currently seeing some performance issues in my disks, and the stats shown between 16-43% of directories non-contiguous, and 0.42-13% files non-...
0
votes
2
answers
653
views
Super slow Ext4 directory traverse
I'm currently working on a system that stores files in EXT4 partitions in large disk (10 TiB and 16 TiB ones). All disks are connected via SATA to an HBA (Dell PERC H310).
The file structure is like ...
1
vote
1
answer
2k
views
code=exited, status=1/FAILURE on mkfs.ext4 in Ubuntu
I stopped this service and now when I attempt to start it I get the following error:
Is there a way I can find out why the first process is failing?
systemctl status crmpicco-admin.service
● crmpicco-...
0
votes
1
answer
215
views
Need help recovering ext4 LVM partition
I have a VMware ESXi virtual machine running Ubuntu 18.04 with LVM configured partitions. I was trying to extend one of the logical volumes mount as / but mistakenly and foolishly deleted the LVM ...
2
votes
1
answer
301
views
How to recover data after "Safely remove drive" applied on ext4 drive under Windows?
The story
I have an external harddisk that has been formatted for use with Linux. Unfortunately I inserted this disk in a Windows computer. Immediately after that it became corrupted. I have used ...
1
vote
0
answers
111
views
File deletion on NTFS vs ext4
How does deletion of files on NTFS compare to deletion on ext4 in terms of basic methodology?
This may be too broad of a question, so alternatively, I was looking at the Veracrypt docs
On Windows, ...
0
votes
1
answer
867
views
Automated way to create EXT4 Partition on Windows 10
The Problem
Partitioning 32GB uSD cards with 2GB FAT32/~30GB EXT4 in a production environment (20 per day) performed by production technicians (people who need something that's simple as a single ...
2
votes
2
answers
1k
views
Malfunctioning hard drive. What can be interpreted from the “smartctl -a” output?
I was asked to replace a malfunctioning hard drive, which was used as recording device in a TV setup.
(2.5" HDD, simple USB interface, in a two part plastic casing)
As it has a USB type A cable ...
0
votes
0
answers
921
views
Are there recovery options for a SSD drive which is not detected anymore?
The SSD drive on my laptop is not detected anymore, resulting in a "no bootable device" error at startup. If possible, I would like to recover some of the files from the drive.
I use Linux ...
0
votes
1
answer
4k
views
Linux mounts ext4 external drive read only
My laptop has two operating systems, Windows 11 and Arch Linux.
I have a external 4TB HDD formatted to ext4.
When I go into Windows, I normally disconnect the external drive, but not always because I ...
0
votes
0
answers
1k
views
How to mount Android 10 vendor image file / how to mount ext4 .img in write mode?
I'm getting the exact same error as How to mount Android 10 vendor image file, that is, when I decompressed system.new.dat.br from an Android ROM to a system.img and when I try to mount with:
sudo ...
0
votes
0
answers
131
views
Creating automatic backups with rsync from ext4 file system to afps file system on another device (local network)
I shared an external hard drive (AFPS file format) on my macosx via local file sharing to my ubuntu server (ext4 file format). I would like to use rsync to automatically sync folders from the ext4 ...
3
votes
0
answers
5k
views
Whats the best way to read ext4 partitions in windows 10 (in the year 2022)? [duplicate]
There's plenty of articles out there (and questions/answers here on superuser) of how to do this, but I can't find any that aren't outdated.
1
vote
1
answer
318
views
How to remove an e4crypt key?
I want to encrypt a folder on an ext4 file system. This is how I have set up the encryption:
[root@test /]# e4crypt add_key
Enter passphrase (echo disabled):
Added key with descriptor [...
1
vote
1
answer
5k
views
Resizing Ubuntu partition with resize2fs
I have an AWS EC2 instance running on Ubuntu 16.04.
It has a 2TB ext4 partition which I am trying to resize to 6TB. I have updated the AWS volume to 6TB without difficulties.
On the instance I used ...
0
votes
1
answer
93
views
Files after copy via rsync-ssh all at least 1 MB in size
After rsyncing an 200 MB directory mostly containing a few KB php files, the directory is now over 70 GB on the target machine.
The disk usage of every file is now at least 1 MB.
du -hxd1 /path/to/...
0
votes
1
answer
256
views
Create ext4 image skipping free space
To backup an ext4 partition the easy way is just to use cat or dd:
cat /dev/sdXn > backup.img
dd if=/dev/sdXn of=backup.img
This of course is just a low level copy, so also the unused disk space ...
0
votes
1
answer
576
views
How do I recover files from ext4 with "discarded blocks" and rewritten superblock
I have resized an ext4 partition using parted, and found online that, to resize it without data loss, I need to run mke2fs -S /dev/sdxx -t ext4 ; fsck.ext4 /dev/sdxx -p. I took a look at the commands ...
2
votes
1
answer
114
views
Will restoring Windows 10 from restore image destroy Linux ext4 partitions?
Reinstalling various Linux systems I have affected the efi partition that was used by all systems of the same drive, including Windows.
Restoring Windows from a restore point doesn't work but I have a ...
0
votes
3
answers
1k
views
Is there a better way to transfer data from a non-Windows file system to Windows?
When designing our next-gen airborne LIDAR system, we intended to store our data on storage drives that were formatted with NTFS. This is the way our previous-gen systems work. Our systems run Linux ...
-1
votes
2
answers
2k
views
What causes a filesystem to get corrupted?
I just went through the following: When rebooting my Ubuntu PC, I got a message that welcomed me to emergency mode. Following the instructions from another stackoverflow post, I ended up running fsck....
1
vote
2
answers
8k
views
ext4 vs EXFAT: Storage size difference
I have 2 hard drives, one is EXT4 and one is EXFAT. Both are 8TB, and both contain the same files.
However, if I look at the amount of space being used in Gparted on Ubuntu, there is a big difference. ...
1
vote
1
answer
3k
views
FORMAT ext4 filesystem from Windows
I have a hard drive previously used with a Linux system, with an ext4 filesystem. I would like now to zero out the hard drive from a Windows system.
I understand I can do this using the FORMAT command,...
1
vote
1
answer
315
views
Is the middle dot (interpunct) accepted on modern filesystem like EXT4?
Is using the middle dot (aka. interpunct) accepted in folder names on modern filesystems like EXT4? I mean this character: https://www.middot.net
Wikipedia mentions the following for EXT4:
Allowed ...
0
votes
2
answers
971
views
Extract an ext4 filesystem image *without root access*
On occasion, one gets ext4 images from the internet, and one would like to extract them without root access.
I understand that with root access, one would do a loopback mount. Suppose one does not ...
0
votes
1
answer
3k
views
Proper/alternative method to recover lost directory (ext4)
Disk / Filesystem structure:
Seagate 1TB > LUKS > LVM2, Ext4
Scenario:
While running a script which uses youtube-dl to download a complete channel, disk become full and base directory ("/...
0
votes
1
answer
756
views
8TB Drive Cannot be Formatted into one 8TB partition
I acquired an 8TB 2.5" External HDD USB 3.0. It is a 'noname' brand, so I want to make that clear up front. In any event it comes with four 2TB individual drives showing up in gparted (sdb, sdc, ...
0
votes
1
answer
57
views
Backup ext4 on LUKS to an external drive if the size of the target drive is less than the size of the source drive
I have a few spare 1TB marked SSDs that I'd like to use for my primary NAND backup. I'd prefer to have dd for dumping everything as it is - but the tricky part is that my NAND has about 1.5 GB more ...