Questions tagged [journaling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
48 views

How to keep the kernel from accessing the journal on an ext4 partition?

I hope that this is not a duplicate question. I have seen several similar questions, where the answer was to blacklist the respective device or partition. But in my case, I can't do that (see below). ...
user avatar
  • 2,233
1 vote
0 answers
29 views

EXT4 journal=data and mmap

Does enabling data=journal for ext4 make any difference when using mmap() to update a file? The ext4 man page says: journal All data is committed into the journal prior to being written into the main ...
user avatar
  • 150
0 votes
0 answers
59 views

Ensuring EXT4/BTRFS/other_journal_file_system guarantee backups even in power outages

I'm using RSYNC to do periodic backups of my data into an external hard disk formatted in EXT4. I'm using the "hard link option", thus files that haven't changed from the previous backup are ...
user avatar
1 vote
1 answer
152 views

ext4 does not recognise journal device on boot

I have a system with a somewhat large md RAID5 which is presently running ext4fs. The filesystem is running with an external journal, which is on another md (a RAID1). If I add the journal device with ...
user avatar
  • 111
1 vote
1 answer
1k views

In what ways is the COW filesystem an improvement over the Journaling Filesystem?

I don't think an informative answer exists on u&l or otherwise, which mentions why COW filesystems are a leg-up over any of the three modes of journaling. How does the former provide both superior ...
user avatar
0 votes
0 answers
164 views

Create/delete files without changing directory's modified date

I want to remove a number of files, without touching the containing directories' modified date. I know I can simply stat the directory in question first, take a note of the modified time, and then ...
user avatar
  • 151
2 votes
2 answers
2k views

Does Linux provide file system journaling with Btrfs?

NTFS provides something called journal. I think it is a record of actions like file rename/move/deletes done by any application. Can I get the similar journal or log on Linux + BTRFS? One BTRFS ...
user avatar
2 votes
0 answers
451 views

USB SSD not mounted but cannot format (LUKS format)

I am trying to encrypt a USB SSD attached to my tiny server with LUKS. The SSD is NOT mounted but still cannot format it. (sda1 is my external drive) sudo cryptsetup --verbose --verify-passphrase ...
user avatar
0 votes
1 answer
216 views

Ext filesystem: what happens if a journal is replayed after a crash

I read some things about the ext filesystem journaling, including the man pages, but still do not fully grasp the mechanism. What exactly happens with data and metadata when replaying a journal with ...
user avatar
  • 2,444
2 votes
1 answer
286 views

is the Linux NTFS implementation journaled?

I read somewhere that Linux NTFS implementation, in my specific case Raspbian (base on Debian), is not journaled but I didn't find confirm that it is true if it is true there is a way to have it ...
user avatar
  • 21
2 votes
0 answers
93 views

Are released blocks logged in the journal for ext4?

Suppose we have a simple case: ext4 file system with journaling a single file named file, which has no other hard links the inode for file has associated with it only 1 data block My understanding ...
user avatar
2 votes
1 answer
863 views

disk %util reaches 100% constantly when avgrq-sz is small

On my system with 4.9.86 kernel I have noticed weird behaviour with my disk (HDD with 5400 rpm), the %util goes 100% for quite some time constantly (for 5 minutes or so), I do see the avrg-rq size is ...
user avatar
  • 21
3 votes
1 answer
2k views

Difference between journaled and plain quota

I am trying to set up quotas on a filesystem and I am getting the famous message: quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to ...
user avatar
  • 2,265
11 votes
0 answers
4k views

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/...
user avatar
  • 12.1k
3 votes
1 answer
3k views

Prevent syslogs from being logged under journalctl

I have a simple Python snippet managed by a systemd service which logs to the rsysogd daemon where I've defined a configuration file to put it to a syslog server with a format I've defined. This is ...
user avatar
  • 11.8k
1 vote
1 answer
942 views

How to journal command after sudo?

How to configure Linux to journal all command entered by a user after they use sudo su - or sudo su - username ?
user avatar
  • 11
2 votes
1 answer
3k views

Disable and enable ext4 journaling ?

If I disable the journaling function of an EXT4-filesystem using the command tune2fs -O ^has_journal /dev/sda and enable it after the next start, will the data saved on the harddisk remain unaffected ...
user avatar
8 votes
1 answer
9k views

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 ...
user avatar
  • 177
2 votes
0 answers
535 views

Ext4-Error: Bit already cleared for inode

System: Debian Wheezy Kernel 3.11.6 Atmel SAM9x25 Mono 3.2.8 SD card with ext4 partition I got following message error when I booted my mono application: root@net-231:/opt/programm# [ 6061.078125] ...
user avatar
1 vote
1 answer
82 views

How to recover after messing with hard drive during mid-session sleep? [closed]

I need help recovering from a stupid mistake. I was using an old laptop hard drive to evaluate a Linux distro (PCLinuxOS), and have invested some time in customizing it or I would just start over. ...
user avatar
  • 553
5 votes
3 answers
2k views

"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 ...
user avatar
  • 1,185
2 votes
0 answers
3k views

ext4 & jbd2 dirty metadata

I have an embedded system based on the RiotBoard, I have the main file system on the MMC set as read-only, and an 8gb usb flash drive for writeable storage. rootfs is debian, linux kernel version 4.3....
user avatar
2 votes
1 answer
3k views

Why is OS constantly writing to disk (ext4) on a Ubuntu 14.04 machine? Is it normal?

I'm quite sure it didn't happen before I started using LUKS and LVM on my disk (2 or 3 weeks ago), but now root user is constantly (every 2-3 seconds) writing (not reading, just writing) on disk and I ...
user avatar
1 vote
0 answers
150 views

Is there a program like searchmonkey/Everything that previews images or webms?

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 ...
user avatar
3 votes
0 answers
2k views

EXT4 Journaling - Problem

Basically my root (/) ext4 partition keeps being mounted as read-only when I apply internal journaling feature. I understand that this should be default, but today I had been trying to apply external ...
user avatar
1 vote
0 answers
312 views

Ext3 Journaling Question on inode and disk layout

I have the following questions about Journaling and JBD(journaling block device): Why Journal Inode number comes as 8 when we do ./dumpe2fs? Where on disk partition do we store journaled blocks? ...
user avatar
  • 211
3 votes
2 answers
1k views

Unable to mount root filesystem rw with journal

Trying to understand the whole journalling setup and from what I've read and tried, it's eluding me somehow. The root filesystem is ext3. Examining it via tune2fs -l /dev/root shows that '...
user avatar
  • 475
9 votes
2 answers
6k views

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 ...
user avatar
  • 93
6 votes
1 answer
4k views

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 ...
user avatar
  • 211
3 votes
1 answer
235 views

Many transient files on journaled filesystem?

Writing and deleting many files quickly I'm going to write many temporary files per second, over a sustained period. Each will be deleted after some milliseconds. Say we have an image processing ...
user avatar
33 votes
2 answers
3k views

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 ...
user avatar
  • 8,518
4 votes
1 answer
8k views

ext4 filesystems frequently corrupting

We have occasional power outages in our environment which seems to cause data corruption on our Ubuntu machines with ext4 filesystems. To my understanding ext4's default is to use data=ordered ...
user avatar
4 votes
2 answers
13k views

How to clean journals in ext3/ext4 filesystem? [closed]

Some preamble: I'm taking bitwise copy of disk devices (via dd command) from twin hosts (i.e. with the same virtualized hardware layout and software packages, but with different history of usage). To ...
user avatar
  • 637
4 votes
0 answers
1k views

jbd2 journal constant i/o

iotop reports a constant i/o about 3% of [jbd2/vda1-8], I think this is the journal manager for ext4. my fstab is: UUID=X / ext4 defaults,noatime,nodiratime 1 1 tmpfs /dev/shm ...
user avatar
8 votes
2 answers
4k views

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: ...
user avatar
  • 4,640
2 votes
1 answer
852 views

Minimizing "idle" writes on a file system

Leaving out many details, I need to create a read/write file system on a device with the following main goals: Eliminate all writes while data is not being explicitly written. Reduce all indirect ...
user avatar
  • 1,271
15 votes
3 answers
12k views

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 ...
user avatar
1 vote
1 answer
896 views

why kjournald uses writes so much?

Total DISK READ: 1056.26 K/s | Total DISK WRITE: 9.20 M/s TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND 1055 be/4 root 0.00 B 11.64 M 0.00 % 1.99 % [...
user avatar
  • 9,879
2 votes
1 answer
7k views

Which drive had a "journal commit I/O error"?

I received a message: kernel:[123456.789012] journal commit I/O error Which disk drive had the journal error?
user avatar
3 votes
1 answer
167 views

To use -c0 -i0 in file-systems with journal

I've several partitions with ext4. Now, I would want if it makes sense to use tune2fs with flags -c0 (max-mount-counts) and -i0 (interval-between-checks) in the partitions with a journal file-system ...
user avatar
  • 1,601
2 votes
2 answers
5k views

Keep ext4 journal on another system, how much space would be necessary?

I'm going to move journal to another partition, but I don't know how to correctly caculate the size needed for journal? I'm running ext4 file system with 15GB capacity.
user avatar
  • 51.3k
5 votes
1 answer
23k views

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 ...
user avatar
  • 2,908
61 votes
12 answers
47k views

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 ...
user avatar
  • 4,791
4 votes
1 answer
8k views

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? ...
user avatar
  • 2,230
4 votes
3 answers
649 views

Is ext2 suitable for daily use on a desktop or laptop?

Is a journaling filesystem needed in today's desktop world? A good OS doesn't kernel panic every month, and if we are using a laptop, then there aren't any power outages, so why shouldn't we use ...
user avatar
  • 36.7k
7 votes
2 answers
1k views

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 ...
user avatar
29 votes
5 answers
17k views

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 ...
user avatar
  • 6,100