I recently have a partition corrupted and I can't mount it. It is a jfs filesystem. I did a fsck.jfs and fsck.jfs -ftrying to fix the partition but it failed. At the end I tried to mount it with read-only and I successfully mounted it and able to copy the data out.
My question is, why does it work when we mount it with read-only ? What is so special in the mounting operation when it is only mounting read-only ? I am curious to know the detail technical part of how the kernel works that makes the read-only mounting works but no the read-write mounting. Thanks.
dmesg.)