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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
88 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
38 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
22 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
55 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 ...
  • 402
0 votes
0 answers
34 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
292 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
35 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
42 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 ...
  • 195
0 votes
2 answers
61 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 ...
  • 1
0 votes
1 answer
35 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 ...
  • 3
0 votes
0 answers
77 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 ...
  • 399
2 votes
3 answers
1k 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 ...
  • 399
0 votes
0 answers
41 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
60 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 ...
  • 11
0 votes
0 answers
152 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
53 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 ...
  • 1
0 votes
0 answers
38 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
0 votes
0 answers
33 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
69 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
40 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 ...
0 votes
0 answers
227 views

ran out of inode, can i resize?, how to set correctly?

I ran out of inodes and needed to delete a bunch of files to keep my Ubuntu 20.04 server up and running. Now I would like to prepare a fix, but I'm getting confused about what I am reading. tecmint....
  • 107
1 vote
1 answer
50 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 /...
  • 61
2 votes
1 answer
253 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 ...
  • 515
0 votes
0 answers
558 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 ...
2 votes
0 answers
60 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
706 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 ...
  • 401
0 votes
1 answer
87 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
205 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 ...
  • 31
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 ...
  • 943
0 votes
0 answers
510 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
464 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) ...
  • 727
0 votes
1 answer
119 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
336 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
173 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
71 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
177 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 ...
  • 183
0 votes
0 answers
111 views

Corrupted Synology "Version" File During DSM Downgrade Attempt (Edit ext4 drive in Ubuntu?)

While trying to downgrade from DSM 7 back to DSM 6, I SSH'd into drive with root privileges and modified the "version" file incorrectly (vi /etc.defaults/VERSION). When I restart the NAS and ...
5 votes
1 answer
608 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
27 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
417 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
142 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 ...
  • 1
0 votes
0 answers
61 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/...
5 votes
1 answer
2k 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 ...
  • 2,595
0 votes
0 answers
55 views

Move a Ubuntu data disk to a new Ubuntu computer

I have a data only internal hdd formatted ext4 in a Ubuntu 18.04 desktop. How do I take it out of that machine and permanently mount it, sata not usb, with full read/write access in a different Ubuntu ...
0 votes
1 answer
277 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 ...
  • 363
0 votes
0 answers
59 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 ...
  • 28k
0 votes
2 answers
725 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-)...
  • 89
0 votes
0 answers
130 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 ...
  • 11
0 votes
0 answers
519 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
659 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 /...
  • 4,267

1
2 3 4 5
15