Questions tagged [journaling]

Journaling is how file-systems save metadata so that data can be recovered in the event of corruption.

Journaling is an area where a file-system logs its actions and other information, so that if it is interrupted (crash, power cut, etc.), the file-system can rebuild itself and finish up any uncompleted actions.

An example scenario on what types of errors journaling can solve is provided by Wikipedia:

For example, deleting a file on a Unix file system involves two steps:

  1. Removing its directory entry.
  2. Marking space for the file and its inode as free in the free space map.

If a crash occurs between steps 1 and 2, there will be an orphaned inode and hence a storage leak. On the other hand, if only step 2 is performed first before the crash, the not-yet-deleted file will be marked free and possibly be overwritten by something else.

A journaled filsystem, by comparison, would know that it has only done one of the above actions, and will do the other upon startup.

Most modern filesystems are journaled, most notably:

  • ext3 (default on most Linux distributions)
  • ReiserFS
  • XFS
  • JFS
  • NTFS (Windows NT and up standard filesystem)
  • HFS+ (the standard OSX filesystem)
32 questions
15
votes
2 answers

SSD: NTFS vs EXT4

Always when I read about SSD usage under Linux, the advice is to disable journalling in Ext4 (or use Ext2), since it's too bad for your SSD. But in all articles about SSD tweaks for Windows, I never see any mentions that you should disable NTFS…
Maestro
  • 603
  • 1
  • 6
  • 16
11
votes
2 answers

Dangers of deleting C:\$Extend\$UsnJrnl:$J:$DATA

Got a Vista laptop with Wubi Ubuntu installed (read: Ubuntu on virtual disks located on the NTFS partition). I only use Ubuntu, but the disk performance is so poor that I want to switch to a normal partition install. The problem is that the disk was…
8
votes
3 answers

Is there a way in Windows 7 to disable "journaling"?

Click for full size C:\$extend\$Usn.Jrnl:$J:$data Here is a picture finally. The large strip in the center of the top band is the largest chunk, in the other, grey areas are the various clusters with it. On the right, the big long grey line is…
Psycogeek
  • 9,139
7
votes
1 answer

Why journaling use so much space in mongodb?

I have a mongodb database that uses approximately 1GB of space. I was surprised when my server ran out of space, and then I realized that the journal uses 3GB. The documentation says that "Once MongoDB applies all the write operations in the…
lfagundes
  • 181
6
votes
5 answers

Why does a journal filesystem need to check disk?

After I got the BSOD on my Windows 7 computer, I restarted my computer to find it asking me to do a disk check. I did other things in the meantime but it seemed like it took a few minutes. If the filesystem is journalled (I left it to the default…
user3109
3
votes
1 answer

How to disable journaling on an HFS+ HDD in Ubuntu without using a Mac?

How to disable journaling on an HFS+ HDD in Ubuntu without using a Mac?
Patrick
  • 31
3
votes
1 answer

Why I cannot format a microSD to ext4?

I have a Toshiba Class 10 64GB microSD that I want to use in a tablet (Cyanogenmod 11) by formatting it ext4. So I did the usual thing (under Fedora 20): created a single Linux partition with sfdisk, then created the ext4 partition with mkfs.ext4…
3
votes
1 answer

On Mac OS X, how can I disable journaling on shutdown and reenable it on boot?

The why: I want to share a home partition with Ubuntu, but I don't want to give up journaling while booted into Mac OS X (Snow Leopard) if I don't have to. What I've figured out: The commands I want are diskutil disableJournal /Users and diskutil…
Alex R
  • 201
2
votes
0 answers

Filesystem to quickly get recent modifications

I've got relatively big filesystem (ext4) with lots of small files and I'd like to backup it. Making full backups often is not feasible to me so I want to have a way to make differential/incremental backups (differential preferred). But... this is…
liori
  • 3,348
2
votes
1 answer

How do I look at disk journals under OS X?

About 2000 files just turned up missing on my Mac, with no clues as to where they went or how they were deleted. I have disk journaling enabled, so I'd like to look at the journals. Hopefully, they'll be able to shed some light on the…
stalepretzel
  • 1,176
2
votes
1 answer

Filter by unit from journald of sftp-internal records

I have configured OpenSSHs SFTP server to detail logs (similar to xfer of FTP) to journald. As told here: https://wiki.archlinux.org/title/SFTP_chroot#Logging Now I get it logged - e.g. Mai 30 11:18:04 MYSRV1 internal-sftp[877469]: open…
chris01
  • 333
2
votes
1 answer

How to read "fsutil usn readjournal C:" output

There is a utility that can be run on the Microsoft Windows command line called fsutil. One of the commands that it accepts is fsutil usn readjournal along with several other arguments. Is there documentation on how to read the…
2
votes
2 answers

Is it possible to tail both file and journalctl using the same console?

I am looking for a solution for tailing not only multiple files in parallel but also the journalctl. Multitail seems to do a pretty good job but I don't know a way to make it work with journalctl.
sorin
  • 12,189
1
vote
1 answer

Journaled filesystem for virtual machine

I have been doing some virtualization and am now wondering if it is a good idea to use a journalled filesystem inside a virtual machine or not. Of course a journal makes things a bit slower, but would the journal of the hosting filesystem be able to…
LtWorf
  • 226
1
vote
2 answers

Is it safe to disable ext4 journaling on root and home partitions?

On my ArchLinux laptop I have / and an ecryptfs encrypted /home partition formatted with ext4. Both contains importand (backuped) data. Is it safe to disable ext4 journaling when partitions contains data? Will I experience data loss? I'll follow…
fradeve
  • 453
1
2 3