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 votes
0 answers
18 views

Problem with system

I have a Raspberry Pi 5 with Ubuntu server 23.10 on it. After starting raspberry and waiting a while, I get this message: [2691.397776] I/0 error. dev mmcblk0. sector 3780496 op 0x1: (WRITE) flags ...
Grazio's user avatar
  • 1
0 votes
0 answers
21 views

Buffer I/O error on dev sde2, logical block 9, lost sync page write

The interesting thing is this error message appears when I disconnect an USB flash drive that have a mounted filesystem in read-only mode (with mount -o ro). Why there is a "write" in the ...
Valentin Stoykov's user avatar
0 votes
1 answer
52 views

Setting timeshift backup to harddrive, getting "Device not found" error

I'm trying to set the backup location for timeshift to a new external hard drive I just bought. I formatted the drive w/ an ext4 filesystem w/ the command: sudo mkfs.ext4 /dev/sde I then ran the ...
gboy's user avatar
  • 101
0 votes
0 answers
252 views

EXT4-fs error + ubsan array index out of bound

Suddenly this message started appearing every time I start my computer. When it appears, I have to restart the computer. What's the problem? Thanks
xRobot's user avatar
  • 159
1 vote
0 answers
54 views

partclone - what am I doing wrong?

I'm writing some backup scripts for my machines. Up until now, I have enjoyed using partclone, but now I've hit a snag. On this machine there's a large MDADM RAID which contains one EXT4 partition. ...
ForDummies's user avatar
0 votes
0 answers
15 views

What is the field inside the struct ext4_inode responsible for providing pointers to where data is actually located on disk?

I've been reading the ext4 documentation on kernel.org and in the struct ext4_inode section it is show a field named i_block. It says "Block map or extent tree". Does this field contain ...
Kode1000's user avatar
0 votes
0 answers
126 views

I did mkfs.ext4 /dev/md0 without knowing it wipes the whole data

So guys I got panicked since my data gone, I tried the solution to use backup Superblock from this askubuntu page but still no luck. but when I tried sudo fsck.ext4 -vy /dev/md0 I got this message /...
IT_Sobad's user avatar
0 votes
1 answer
299 views

Input/output error without disk failure

1 month ago I ran a python program on my ubuntu server which downloaded videos and cut them into images. I used urlretrieve to download the files and then I used opencv to cut them into single frames: ...
janbmull's user avatar
0 votes
0 answers
96 views

Mount filesystem for a specific user at user login

I want to mount 2 existing ext4 filesystems for a specific user when the user logs in and ensure that they are dismounted when the user logs off. I am running on Ubuntu 22.04. The suggestions that I ...
Jonathan's user avatar
  • 1,280
2 votes
1 answer
76 views

run e2fsck on boot of a persistent live lubuntu made with mkusb

I'm trying to run e2fsck on boot of a persistent live lubuntu to fix 'corrupt filesystem' error of a writable system partition (ext4) and I want to automate this somehow (so ideally I do not want to ...
andrej's user avatar
  • 59
0 votes
1 answer
94 views

ext4 - Remove ability to encrypt disk even for root

I was wondering if this is possible: remove the ability to encrypt a disk/partition? It occured to me that it's a possible attack vector to encrypt the disk with a key if you manage to get root access....
KdgDev's user avatar
  • 265
2 votes
2 answers
1k views

PC crash, EXT4-fs error --ext4_find_entry inode reading directory iblock 0

OS: Ubuntu 22.04.3 LTS DISK: Samsung SSD 860 EVO 1TB My pc suddenly stopped working. It stops responding to commands, the icons (especially the ones to manage windows) disappear and are replaced by ...
Tiziano Pedrazzoli's user avatar
0 votes
0 answers
279 views

Fsck.ext4 Input/Output error while recovering journal of / dev/ sdb and fsck.ext4: unable to set superblock flag on dev/ sdb

I have installed Ubuntu on my external ssd it got shutdown while i am sudo upgrade Ubuntu then i reopen again it start giving error like i/o error, superblock,dev sdb , recovery journals . I have ...
Abhishek Rana's user avatar
0 votes
0 answers
29 views

Ubuntu directory permissions to share

Assume we have a path /path/to/usera/data, its owner is user_a and Now we want to share this dir to user_b with following steps: add a group datashare and add user_a user_b to it sudo groupadd ...
zhang's user avatar
  • 131
1 vote
1 answer
113 views

Does partitioning or formatting a partition on an external hdd on ubuntu erase the whole disk?

I have my external HDD formatted as ntfs for windows as i have dual boot and it has important data on it in addition i have plenty of empty space on it and wish to use part of it for Linux usage, so ...
Ahmed Salout's user avatar
0 votes
0 answers
728 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 ...
Valentin's user avatar
0 votes
0 answers
23 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 ...
Kokesh's user avatar
  • 101
2 votes
1 answer
5k 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 ...
Juan Rosello's user avatar
1 vote
0 answers
223 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 ...
Kyselejsyreček's user avatar
0 votes
1 answer
168 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 ...
Lerian Acosenossa's user avatar
2 votes
0 answers
380 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 ...
MRule's user avatar
  • 440
1 vote
0 answers
226 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/...
thekevinscott's user avatar
2 votes
0 answers
2k 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 ...
Kirill Krasnikov's user avatar
2 votes
0 answers
212 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,...
Arsen Zahray's user avatar
0 votes
2 answers
573 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 ...
WVXWV's user avatar
  • 305
0 votes
2 answers
316 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 ...
jrsv's user avatar
  • 1
0 votes
1 answer
340 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 ...
Navy's user avatar
  • 3
0 votes
0 answers
304 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 ...
abukaj's user avatar
  • 465
2 votes
3 answers
3k 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 ...
abukaj's user avatar
  • 465
0 votes
0 answers
249 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, ...
empe1337's user avatar
0 votes
1 answer
559 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 ...
LabHelp's user avatar
  • 11
0 votes
0 answers
817 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: ...
唐嘉敏's user avatar
0 votes
0 answers
234 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 ...
Ravi J's user avatar
  • 1
2 votes
0 answers
79 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 /...
Veysel Bekir Macit's user avatar
1 vote
0 answers
355 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 ...
tyoveremo's user avatar
0 votes
1 answer
199 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 ...
Manji24's user avatar
1 vote
1 answer
71 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 /...
Branlon's user avatar
  • 61
2 votes
1 answer
836 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 ...
3x5's user avatar
  • 545
0 votes
0 answers
2k 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 ...
FarisFG's user avatar
1 vote
0 answers
70 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 ...
JDMcMillian's user avatar
  • 1,492
3 votes
0 answers
1k 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 ...
zeugor's user avatar
  • 553
0 votes
1 answer
181 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 ...
FGBxRamel's user avatar
1 vote
0 answers
512 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 ...
M Szil's user avatar
  • 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 ...
guyd's user avatar
  • 955
0 votes
0 answers
1k 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 ...
bonebeagle's user avatar
0 votes
1 answer
2k 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) ...
lnee's user avatar
  • 806
0 votes
1 answer
246 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 ...
Sinipelto's user avatar
  • 137
0 votes
2 answers
566 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, ...
Aleksey Lobanov's user avatar
0 votes
0 answers
350 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. ...
Zenul_Abidin's user avatar
0 votes
1 answer
114 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 ...
pasmon 79's user avatar

1
2 3 4 5
15