( uid_7086 | 2013. 11. 21., cs – 22:43 )

root@testmachine:~# diff x.img z.img
root@testmachine:~# mount -o ro,loop x.img /mnt
root@testmachine:~# diff x.img z.img
root@testmachine:~# umount /mnt
root@testmachine:~# diff x.img z.img
root@testmachine:~# mount -o rw,loop x.img /mnt
root@testmachine:~# diff x.img z.img
Binary files x.img and z.img differ
root@testmachine:~# umount /mnt
root@testmachine:~# diff x.img z.img
Binary files x.img and z.img differ

Mondjuk ez csak annyit mutat, hogy a ro opció hatására egyetlen bit sem változik.

update: közben kicsit utánanéztem...
Az ext2 superblock az eszköz 1024. bájtjánál (offset 1024) kezdődik és 1024 byte hosszú.

Ennek megfelelően:
root@testmachine:~# cmp x.img z.img -bl
1073 117 O 207 M-^G
1074 165 u 164 t
1077 4 ^D 3 ^C
root@testmachine:~# mount -o rw,loop x.img /mnt
root@testmachine:~# cmp x.img z.img -bl
1073 41 ! 207 M-^G
1074 173 { 164 t
1077 5 ^E 3 ^C
1083 0 ^@ 1 ^A
root@testmachine:~# umount /mnt
root@testmachine:~# cmp x.img z.img -bl
1073 56 . 207 M-^G
1074 173 { 164 t
1077 5 ^E 3 ^C

Ha ro mountolod, akkor nem változik a superblock. Ha rw, akkor módosul a s_mtime, s_mnt_count, s_state mező (mount time, mount count, fs state), majd umount után a s_state értéke visszaíródik a mount előtti állapotra.

Aki tudja, csinálja, aki nem tudja, tanítja... Hm... igazgatónak talán még jó lennék. :)