Questions tagged [ext4]
The ext4 or fourth extended filesystem is a journaling file system for Linux, developed as the successor to ext3.
414
questions
1
vote
0
answers
38
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
0
answers
22
views
How to convert .vmdk file into a raw ext4 disk image?
I want to learn some in-depth knowledge of the ext4 file system and I need to do some experiments. I could attach a physical hard drive to a VMware Workstation virtual machine and mkfs.ext4 the ...
0
votes
1
answer
46
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
90
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
70
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
203
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
137
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
37
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 ...
0
votes
0
answers
77
views
How to recover corrupted ext4 partition after in-place cryptsetup-reencrypt without resize?
I ran the following to encrypt an existing ext4 partition (spanning all 4TB of my external hard drive)
cryptsetup-reencrypt --new --type luks2 --reduce-device-size 32M /dev/sdb1
I didn't resize the ...
1
vote
0
answers
355
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.
0
votes
0
answers
59
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
227
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
0
answers
40
views
power failure while expanding - can't mount external harddrive with ext4 even after disk format. mount(2) system call failed: Structure needs cleaning
I had an external 2tb harddrive with NTFS installed. Because it had data in it I first shrank NTFS to 1 tb and made other half ext4. No problem so far.
After data transfer to ext4 from NTFS, I deleted ...
0
votes
0
answers
43
views
Is it possible to boot from ext4 drive on Mac?
I have a MacBook Air with an Intel chip, and I have as 64GB USB in ext4 format that runs Ubuntu 64-bit. Is there any way to boot from the ext4-formatted external USB other that reformatting to FAT and ...
0
votes
0
answers
47
views
ext4 issues after deleting files (dir_index)
I'm currently working with an ext4 filesystem on Ubuntu which has a large amount of files within it. About 11 Million.
As a result of the 32bit dir_index problem as detailed here i'm running into 'Out ...
0
votes
1
answer
28
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
0
answers
25
views
Recovering files from a messed up ext4 partition
I have a hard drive with an ext4 filesystem on a gpt. I managed to mess up the superblock and any of its backups through sheer stupidity. It's 500 gigs and it is pretty much full. Any help would be ...
0
votes
1
answer
21
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
127
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
43
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
255
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
177
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....
0
votes
2
answers
1k
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
377
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,...
0
votes
1
answer
91
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
0
answers
51
views
Linux is loop rebooting (kernel panic) because of an Io failure but badblocks detects nothing. How do I get the error from fs data for the warranty?
My Linux machine crash shortly after logging in even in minimal mode. By attempting to mount the filesystem the third time, I quickly spotted the issue when mounting the rootfs from another machine :
...
0
votes
1
answer
241
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
706
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
0
answers
71
views
mdadm RAID5 broken after disk failure
First of all, I made a bunch of mistakes and I think I'm just left with luck and guessing, but I hope I'm wrong or someone will point me in the right direction.
I have a RAID 5 array made out of 7 ...
0
votes
1
answer
167
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
23
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 ...
1
vote
1
answer
217
views
Add GPT to disk that has bare EXT4 file system without data loss
I have a few big spinning drives that I formatted as EXT4 without adding a GPT first. They work just fine on Linux obviously, but I need to move this drives to a FreeBSD box, and the mount plugin for ...
0
votes
1
answer
80
views
Is it safe to interrupt when "fallocate --dig-holes" is running?
I use fallocate --dig-holes on very large disk images to make it sparse in-place. I'm worried that this operation may not be atomic. My questions are,
Is my data guaranteed to be safe (holes are ...
1
vote
0
answers
54
views
Find corrupted files on a partially recovered ext4
I have hard disk that was damaged by impact when it was running. The disk had 6 partitions and some unallocated space too. After the impact, 3 partitions appear to be fine and I am able to read/write ...
1
vote
1
answer
45
views
Trying to understand how the deletion of hard links relate to the freeing up of values in the inode table?
When a hard link is deleted, the link is removed but the contents of the file itself continue to exist (that is, its space is not deallocated) until all links to the file are deleted.
My understanding ...
0
votes
0
answers
105
views
Can't format M.2 SSD as ext4
I'm not able to format my new M.2 as ext4 or xfs
I tried using the Kubuntu installer as well as GParted live CD with no luck
What could be the cause?
Drive info
0
votes
0
answers
74
views
Running Windows with an external ext4 drive caused the drive to become unreadable and now appears to be formatted with NTFS how do I recover my data
I used the Windows media creation tool to install Windows onto my USB. I installed Windows on a 120GB SSD in the system, along with that SSD is three other SSDs and two 12TB Western Digital Pro HDDs. ...
1
vote
1
answer
262
views
How is it possible for empty files to take zero bytes in Linux?
I've also asked a sibling question for Windows.
In Linux (I just tested):
The size of an empty folder is given as 4 KB (regardless of its name)
The size of an empty file is given as 0 bytes
However,...
0
votes
1
answer
35
views
How to group files into seperate folders by date modified?
I have a large quantity of files that I would like to group into folders by year, using date modified, for convince. I am using an ext4 filesystem on linux. Are there any scripts/tools that could help ...
1
vote
2
answers
321
views
My luks encrypted image unlocks but fails to mount
I have a LUKS image which I decrypt, mount and save important documents to. Until recently, this was running fine, on an Ubuntu 19 machine. I shut this machine down, while the image was mounted, ...
2
votes
2
answers
738
views
Should I format my external hard disks in EXT4 or NTFS or BTRFS? [closed]
I have four hard disks:
240GB SSD formatted as EXT4 for main OS.
3TB HDD formatted as NTFS for main files.
500GB HDD formatted as NTFS for luks containers.
4TB HDD formatted as NTFS for backuping all ...
2
votes
0
answers
2k
views
Mount Linux USB drive via WSL2
I'm following this guide from Microsoft describing how to mount an external Linux drive via WSL2.
I have 10.0.20279 N/A Build 20279 on an ARM64 machine. I inspect the available drives with this ...
0
votes
0
answers
214
views
EXT4 error loading journal in NAS server
My NAS server is recently refusing to mount an external USB drive:
root@MyCloudEX2Ultra root # mount -r -t ext4 /dev/sdc1 tmp/
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
...
0
votes
0
answers
96
views
Files on encrypted LUKS take up more space
I have 2 drives (both the same size). One of them just has a simple ext4 partition on it. The other drive is encrypted with LUKS, opened and also formatted with ext4.
However, when I copy files from ...
1
vote
1
answer
612
views
Resizing ext4 partition of a guest Ubuntu on vmdk on ESXi 6.0
I have rather old ESXi 6.0 that hosts a vm with Ubuntu. I need to increase the disk for it.
I don't have vmware-vdiskmanager as advised in https://kb.vmware.com/s/article/1004047
0
votes
1
answer
310
views
Can I open a file by its inode in a ext4 LUKS partition?
I have an ext4 LUKS partition where I "deleted" a file.
(I moved one into other: mv /media/HDD/file1.txt /media/HDD/file2.txt where both file1.txt and file2.txt already existed).
Files in ...
1
vote
1
answer
2k
views
Will long time ext4lazyinit damage the drive? Why initializing inode tables in ext4 (no need any kinda init in NTFS)? etc
I never pay attention on ext4lazyinit before. But today, after I format my 4TB external USB harddrive and the first mount, the led light keeps blinking without any writes and reads. I figured out that ...
0
votes
1
answer
170
views
system generally slow when hard disk is nearly full
I am using Ubuntu. I have a root partition and a separate, large ext4 data partition. The data partition has ~2GB free according to df and with that, things are fine.
I experience a repeatable ...
0
votes
0
answers
203
views
Create ext4 img in windows
I am trying to create an automated android x86 installer for my friend. I am creating img with dd. But I cant format it ro ext4. I found e2fsprog on a form but cant find a valid exucatible. How can I ...
1
vote
1
answer
625
views
Is it safe to convert EXT4 to BTRFS inplace?
Ubuntu 20.04 makes it very hard to create an encrypted installation with BTRFS file system. Thus, I have an encrypted installation running on ext4. For a number of reasons I would like to use BTRFS ...