Questions tagged [journaling]

52 questions
65
votes
13 answers

Is there a file search engine like "Everything" in Linux?

On Windows there a nice file search engine called Everything, which is (unlike find) very fast and (unlike locate) always returns up to date results. AFAIK it works by filling a database from the NTFS journal (it doesn't work with other…
maaartinus
  • 4,979
  • 7
  • 30
  • 29
33
votes
2 answers

Why did powering down my machine after a bad `rm` save my files?

Classical situation: I ran a bad rm and realized immediately afterwards that I had removed the wrong files. (Nothing critical and I had tolerably recent backups, but still annoying.) Knowing that further disk activity was my enemy if I wanted to…
a3nm
  • 8,978
  • 5
  • 28
  • 36
29
votes
5 answers

Do journaling filesystems guarantee against corruption after a power failure?

I am asking this question on behalf of another user who raised the issue in the Ubuntu chat room. Do journaling filesystems guarantee that no corruption will occur if a power failure occurs? If this answer depends on the filesystem, please indicate…
Nathan Osman
  • 6,170
  • 10
  • 40
  • 51
15
votes
3 answers

What mount option to use for ext3 file system to minimise data loss or corruption?

I have an embedded setup using an initramfs for the root file system but using a custom ext3 partition mounted on a compact flash IDE drive. Because data integrity in the face of power loss is the most important factor in the entire setup, I have…
mathematician1975
  • 1,453
  • 2
  • 24
  • 43
12
votes
1 answer

How to stop jbd2 on unmounted filesystem

I need to resize2fs the root partition of an embedded device. Since it doesn't have an alternate boot option, I used an tmpfs, moved and restated everything until I finally was able to umount /dev/mmcblk0p1. But bad luck: $ umount /dev/mmcblk0p1…
Philippos
  • 13,237
  • 2
  • 37
  • 76
11
votes
1 answer

Difference between nointegrity, noatime & relatime

What is the difference between nointegrity, noatime and relatime? And what is the best option for a SSD? I am using ext4 as my filesystem. And why disabling journaling on my system, data loss can occur? Can I use for example nointergrity & noatime…
Daniel
  • 307
  • 1
  • 2
  • 10
10
votes
2 answers

Pulling log messages for a particular log in systemd journal?

I was wondering if it is possible to pull log messages for a particular log with systemd's journal logging. For example, when I open a log in C, openlog('slog', LOG_CONS | LOG_PID, LOG_LOCAL1), to pull just messages logged under 'slog' or LOCAL1?…
anacy
  • 103
  • 1
  • 4
8
votes
2 answers

what does a "deleted file" entry look like in the journal

I hope I've got this right: A file's inode contains data such as inode number, time of last modification, ownership etc. – and also the entry: »deletion time«. Which made me curious: Deleting a file means removing it's inode number, thus marking the…
erch
  • 4,890
  • 17
  • 49
  • 81
7
votes
3 answers

How dangerous is to disable the EXT4 journaling?

I'm verry new to Linux. I have a Raspberry Pi 4 device with Raspberry Pi OS Lite. I use this with 4 HDDs conected to USB as a NAS. The hard drives were formatted in NTFS because I used them in Windows until now. But I noticed that the transfer goes…
7
votes
2 answers

With full data journaling, why does data appear in the directory immediately?

I've got a question regarding full data journaling on ext3 filesystems. The man page states the following: data=journal All data is committed into the journal prior to being written into the main filesystem. It seems to me that that means that a…
pluckyDuck
  • 463
  • 1
  • 4
  • 7
6
votes
1 answer

Can I find out if a given ext4 block is in the inode table, and if so, can I pick it out of a journal with no header by hand?

So en route from my old laptop to a new one my old laptop's hard drive got some physical damage. badblocks reports 64 bad sectors. I had a two-month-old Ubuntu GNOME setup with a split / and /home partitions. From what I can tell, a few sectors in /…
andlabs
  • 211
  • 2
  • 8
5
votes
1 answer

disabling journal vs data=writeback in ext4 file system

What is the difference between disabling journal on ext4 file system using: tune2fs -O ^has_journal /dev/sda1 and using data=writeback when mounting? I thought ext4 - journal = ext2. means when we remove journal from a ext4 file system, it is…
Majid Azimi
  • 3,018
  • 6
  • 31
  • 37
5
votes
3 answers

"write-once archive": ext2 vs ext4^has_journal vs

summary Suppose one is setting up an external drive to be a "write-once archive": one intends to reformat it, copy some files that will (hopefully) never be updated, then set it aside until I need to read something (which could be a long while or…
TomRoche
  • 1,275
  • 3
  • 15
  • 29
4
votes
1 answer

MDADM: Unable to grow raid-6 with journal?

In the past, I expanded/reshaped raid-6 arrays multiple times with mdadm. Today I've added 2 disks to new raid-6 array, and was not able to reshape it. It was different this time: now with journal and under WSL2 / Ubuntu. Is there a workaround or I…
BarsMonster
  • 206
  • 1
  • 5
4
votes
1 answer

huge .sujournal file on FreeBSD

I am running out of space and when I checked, I found that I have # pwd /usr # ls -l .sujournal -r-------- 1 root wheel 33554432 Dec 31 1969 .sujournal I wanted to ask should/can I remove it? Any implications of that?
hari
  • 2,400
  • 4
  • 21
  • 22
1
2 3 4