Questions tagged [ext4]
Use this tag for all questions about the ext4 (fourth extended) file system, which has been the default file system in Ubuntu since 2009.
703
questions
0
votes
0
answers
213
views
Ubuntu 20.04: “EXT4-fs (sdb2): VFS: Can’t find ext4 file system”-error
I am quite new to Linux and have recently started to use Ubuntu. At first it worked, but for the last three days, every time I started my computer I get in emergency mode and this error message ...
0
votes
0
answers
21
views
Moving single partition system to smaller SSD
I've got a thin client running Ubuntu server without GUI, with single hdd. Need to move everything to smaller SSD.
Can I do it using PV to USB enclosure containing the new ssd on the system itself? Or ...
0
votes
1
answer
1k
views
Issue with ext4.vhdx using WSL2 in Windows 11
I had and issue with WSL installing a package, so I decided to uninstall Ubuntu 22.04 to fresh install again. I did the mistake to delete manually some files and then I had some issues to reinstall ...
1
vote
0
answers
157
views
Is it safe to mount a Linux partition mounted using WSL2 in hibernated Windows 11?
WSL2 comes with support for mounting Linux partitions from non-removable drives in updated Windows 10 and Windows 11. When creating an ext2/3/4 partition, for example, on an internal drive, this ...
0
votes
1
answer
54
views
Is it ok to run fsck intead of e2fsck for a read only badblocks correction?
I have a hard drive with a failing block that points to inode 8 of the first partition, this falls in exactly on the journal. So I tried to run e2fsck -cpvk but the problem is that i forgot to write ...
0
votes
0
answers
63
views
Bad magic number: which command to verify filesystem health?
Drives 1 and 2 are bootable (not live) 64GB USB flash drives on which I have installed Ubuntu 22.04.1 LTS. I boot the computer using Drive 1, to study the health of Drive 2 (/dev/sdb).
Drive 2 is ...
2
votes
0
answers
108
views
recovering journal / Failed command: WRITE FPDMA QUEUED / COMRESET failed errno=-16 / fsck gives bad superblock
I'm running (or rather, was running) Ubuntu
The machine seemed fine yesterday; This morning, it was unresponsive
It's a tower, so there were no mechanical disturbances in the meantime (the only ...
0
votes
0
answers
80
views
After formatting USB drive, "Failed to take ownership"
I've used the GUI Disks to format a USB drive just purchased as ext4. After formatting, I get the message:
Failed to take ownership of newly created filesystem: Cannot mount /dev/sda1 at /run/udisks2/...
1
vote
0
answers
847
views
Repair broken ext4 partition with wrong superblock checksum
A few weeks ago I gave my laptop to the service to replace the keyboard.
There were two operating systems on the computer: windows 10 and linux (ubuntu 20.04).
The folder /home of my Ubuntu system was ...
2
votes
0
answers
94
views
How do I enable journal_async_commit?
I'm trying to enable journal_async_commit in fstab file.
Here is what the relevant entry looks like:
# /dev/nvme0n1p2
UUID=c4340389-c77d-473e-8867-39b677a49f96 / ext4 rw,lazytime,...
0
votes
2
answers
89
views
How can I expand filesystem partition (ext4) ubuntu?
I need help in expanding a filesystem partition. I am now on dual boot Windows 10 (SSD) + Ubuntu 22.04 (HDD). I noticed that Ubuntu was installed on HDD as be seen below:
I accidentally moved 50GB of ...
0
votes
2
answers
129
views
UbuntuStudio 22.04 initramfs error in USB FAT32 live session
I am trying to install UbuntuStudio 22.04 in my machine. The problem is that the image file that needs to be copied into the USB stick is 4.2 GBs. This appears to be causing the initramfs problem as ...
0
votes
1
answer
101
views
Why is the size of a symlink equal to the size of it's path string?
I've read a different question regarding this where the answer was that a symlink stores the name and target + a few bytes for other metadata.
Using "ls -l dir" on ext4, why does the symlink ...
0
votes
0
answers
135
views
Output of e4defrag
e4defrag - the only defragmentation tool I know for Linux - outputs a lot of information not covered by its manual. I assume that if a command outputs something, it is important thus I would like to ...
2
votes
3
answers
2k
views
How can I completely defragment ext4 filesystem
I want all my files in an ext4 filesystem not fragmented because of reasons. Sadly e4defrag (advised here: How to defrag an ext4 filesystem) fails to defragment several files. What are my ...
0
votes
0
answers
86
views
EXT4 file, read and write inside ext4
I'm trying to modify .apk file inside ext4 file. I used mount to mount ext4 file and chmod to gain write permissions. If I mount, chmod, dont make anything else, chmod back to original permiossions, ...
0
votes
1
answer
176
views
used dd to copy a partition from one hard drive to another and it broke the partition
So I have two hard drives. Hard drive A (HDDA) had a version of windows 7 that suffered a Windows Explorer error that caused it to go through a constant reboot cycle and caused us to lose access to ...
0
votes
0
answers
377
views
ubuntu crashed with EXT4-fs error and icons become gray boxes
I'm new in askubuntu so i hope this question is suitable. After installing Ubuntu 22.04, I found my system crashed sometimes, especially after visiting my videos on browser.
Here is the error log:
...
0
votes
0
answers
65
views
"Failed to create file system. The ext4 file system creation in partition #1 of SCSI7 (0,0,0)(sdc) failed."
Good evening,
I would like to install ubuntu-22.04.1-desktop-amd64 on a 128 GB SD card(It should be possible right?)
I got an error:
"Failed to create file system.
The ext4 file system creation ...
0
votes
0
answers
70
views
Ext4: How to Recover a single permanently deleted file
On /dev/sda6 (non primary) partition, I have a dir called /bean. I usually download some videos from Google photos there - which are in zip format called Photos-001.zip. I then copy those to an ...
1
vote
0
answers
45
views
ssd does not start after suspend
I have a ssd on my ubuntu 22.04.
it has luks for /home folder. like it seems:
Filesystem Size Used Avail Use% Mounted on
tmpfs 1,6G 3,3M 1,6G 1% /run
/...
1
vote
0
answers
124
views
Ubuntu showing "No space left on device" but I still have space
I have Ubuntu installed on a Lenovo laptop with three partitions. The first partition is formatted with an ext4 file system and mounted at root /. It has 248GB of storage allocated to it. The second ...
0
votes
1
answer
63
views
16tb disks listing as 15.1tb after ext4 formatting
I have a few 16tb disks that were NTFS, and I have recently reformatted to ext4. The size of the disks shows at as 15.1tb if I format in ext4, but if I reformat into ntfs, I get the full 16tb. All ...
1
vote
1
answer
58
views
System hang-up while installing LTS 20.04 64 bit via USB-Flash over Win10 on HP-ENVY desktop
System hangs-up while installing LTS 20.04 64bit via USB-Flash over Win10 on HP-ENVY desktop. (Minimum install)
Been running for over 12 hours, stuck on the following...
Creating ext4 file system for /...
2
votes
1
answer
396
views
Two new, 256GB microSD cards. Both have problems mounting as ext4
I bought a 256GB MicroSD card from Walmart recently, branded as 'Onn' which I suppose is a Walmart generic brand. I was able to format it as ext4, and then I tried to rsync to the card — which froze ...
0
votes
0
answers
888
views
Does creating ext4 file system takes a really long time or is it my drive that is broken right now?
I'm trying to install Ubuntu on my external drive which has 1TB of storage. I parititioned it to be 104GB so that it wouldn't take that long to process. When I tried installling it, it takes probably ...
1
vote
0
answers
66
views
How do you undelete files from within multiple levels of deleted folder on EXT4 and keep the original file tree structure? [duplicate]
I was making some room n my file server by moving the data to the desktop. The desktop had a catastrophic failure and now i'm trying to recover the files from the fileserver.
Trying to undelete close ...
3
votes
0
answers
835
views
root ownership after mounting a drive with ext4 format
I have formatted with ext4 format by GParted:
(1) an USB flash drive and
(2) an external hard drive.
So far so good, but now they have root ownership and non edit permissions.
I can update the ...
0
votes
1
answer
115
views
Partition in another partition too small
So I've got a problem with a partition in a partition. Disk hierarchy:
My disk (nvme0n1) is partitioned into 3 parts.
/boot/efi 512M (nvme0n1p1)
/boot 1G (nvme0n1p2)
no name (nvme0n1p3)
nvme0n1p3 ...
1
vote
0
answers
283
views
Problem dealing with corrupt file and mdadm
I'm running ubuntu server 20.04 with 4x 4TB drives in a RAID5 array using mdadm to provide a non-root, ext4 partition. I have a few rsync scripts to backup key folders and one of them generated an ...
14
votes
2
answers
2k
views
Dropbox on a dual-boot machine
I have a dual boot laptop- Ubuntu 20.04 and Windows 10, both located on same HD, different partitions, and a third one, meant to be for common use.
To avoid putting my Dropbox folder on each OS, I ...
0
votes
0
answers
607
views
Unable to reformat SD-card to ext4
edit: I solved the problem by using a USB drive instead
OS: ubuntu 20.04 (headless)
Hardware: Beaglebone Black
My beaglebone black (BBB) has too little space to install some software I need. Therefore ...
0
votes
1
answer
733
views
How to list files in a unmounted ext4 file without mouinting it
So say if I did mkfs.ext4 on a 1 GB file to make an ext4 file system then mounted it and add the file cat.ls unmounted it and sent it to B computer that did not have sudo (note I will not use fuse) ...
0
votes
1
answer
144
views
Is it possible to rearrange and recreate a single disk partition in a raw image file?
Host: Ubuntu 20.04.4 LTS
Current status: Raw image file has 2 partitions, p1: boot and p2: rootfs.
Disk original.img.bak: 3.25 GiB, 3487742976 bytes, 6811998 sectors
Units: sectors of 1 * 512 = 512 ...
0
votes
2
answers
405
views
Thinkpad T14 AMD gen2 ext4-fs error
Hello I bought new Thinkpad T14 AMD with Ryzen 5850U and unable to properly use Ubuntu on it.
My steps:
Shrink existing Windows 10
Install Ubuntu in one single partition (ext4, no ecryption, swap, ...
0
votes
0
answers
221
views
Preventing ext4 metadata corruption during shutdown
Recently, I have started getting the "Read-Only File System" error when shutting down the system (Xubuntu 20.04 LTS running on an HP laptop). Rebooting does not trigger these corruptions. ...
0
votes
1
answer
83
views
Transfer I/O to RAM on ssd based linux
I have kubuntu 20.04 lts on my ext4 installed on ssd. There are processes lattedock and jdb2/ constantly writing on ssd.
How can i safely mount these processes on RAM to avoid I/O on ssd, where i ...
0
votes
1
answer
216
views
ext4 FS image gets corrupted on first mount
I"m in the process of replacing my M.2 SSD with a new and larger one. I want to save an image of my existing partitions before I take out my old SSD so that I can refer to it when setting up my ...
5
votes
1
answer
716
views
Xubuntu 20.04 default file system is ext2/ext3 and not ext4?
I installed Xubuntu 20.04 on a 2T SSD drive. To my surprise, it installed the old ext2/ext3 file system instead of ext4. Why is that?
$ lsb_release -a
No LSB modules are available.
Distributor ID: ...
0
votes
1
answer
28
views
Do I need to check readonly disks on boot?
Every x startups, fsck will scan the disks for errors. This takes a very long time for large Disks.
Suppose I made a harddisk read-only with the command sudo tune2fs -O read-only /dev/sdXY.
Are those ...
2
votes
1
answer
491
views
Make file system/partition Read-Only for archiving purposes
I have found a couple of questions relating to file systems which are in Read-Only mode after failure and how to make them writable again.
I want to achieve the exact opposite.
I have 3.5" Hard ...
0
votes
0
answers
171
views
when booting ubuntu EXT04FS
when booting Ubuntu (after checking graphic card - clean)
has this error message
In Ubuntu 20.04
164.000 EXT4-fs (sdb1) : VFS:can`t find ext4 filesystem
200.000 EXT4-fs (sdb1) : VFS:can`t find ...
0
votes
0
answers
74
views
Unable to transfer files from Windows (NTFS) to Ubuntu (EXT4) directly
I'm attempting to mount Windows (NTFS) on Ubuntu (EXT4) so that I can move files directly across. With the following command, I mounted with the correct permissions:
sudo mount -o remount,rw '/media/...
7
votes
1
answer
3k
views
Why does Ubuntu use ext4 by default?
Note: I'm not asking how to use a different filesystem. I'm asking for the reasoning behind the choice of ext4.
Ubuntu (21.10) uses ext4 by default. But, there are a great many other filesystems that ...
0
votes
1
answer
362
views
How to get a newly created EXT4 filesystem to finish writing the index node immediatly?
I newly created an ext4 1TB partition, but I could not spin down the Hard disk on which the partition is mounted without unmounting first because the disk is having some activity every about 2s. I did ...
0
votes
0
answers
68
views
Identifying case insensitive file and folder conflicts
I'm making a backup of an EXT4 system on an exfat partition. The EXT4 system has identical names with different cases, for instance Video, and VIDEO. Is there any way to find and identify all the ...
0
votes
2
answers
883
views
Installing a new 4tb hdd not knowing to go for e.g. ext4 or NTFS as a format, some advice please
To keep it short and sweet: just bought a 4tb disk to replace a broken one. Not sure to use a linux format a.i. ext4 or NTFS. I will mainly use the disk to store music and films and some (Win-)...
0
votes
0
answers
150
views
Help to choose right file system type to create
I need help about a file system creation on Ubuntu server 21.10 installed on a virtual machine hosted on vmware environment.
In particular I'm like to know which kind of FS I should use for my ...
0
votes
0
answers
568
views
Mount a full disk / memory image that contains multiple partitions formatted in FAT32, EXT3 and EXT4 (Android type)
I have made a full memory backup of my rooted Android phone and I would like to be able to mount the images of the Internal Memory and the SD Card in Ubuntu. The Internal Memory has many different ...
1
vote
1
answer
811
views
Ext4 fast_commit feature
Since 5.10 kernel there is a new feature called fast_commit. In arch wiki https://wiki.archlinux.org/title/ext4 you can read that it can be enabled in existing filesystem with:
tune2fs -O fast_commit /...