Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I prevent ext2 from having it's metadata updated?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1231
Location: Sweden

PostPosted: Wed Apr 15, 2009 1:29 pm    Post subject: Can I prevent ext2 from having it's metadata updated? Reply with quote

When I do the below, you can see that "something" happens to the file.

Code:
April ~ # dd if=/dev/zero of=filesystem.bin bs=1024 count=$((64 * 1024)) 2> /dev/null
April ~ # mkfs.ext2 -F filesystem.bin &> /dev/null
April ~ # mkdir filesystem
April ~ # md5sum -b filesystem.bin
3bb094fb437027495755e9185850db1c *filesystem.bin
April ~ # mount -o loop,ro filesystem.bin filesystem; umount filesystem
April ~ # md5sum -b filesystem.bin
3bb094fb437027495755e9185850db1c *filesystem.bin
April ~ # mount -o loop,noatime,nodiratime,norelatime filesystem.bin filesystem; umount filesystem
April ~ # md5sum -b filesystem.bin
867c316d61165cc99638bfa656e1dbed *filesystem.bin
April ~ # mount -o loop,noatime,nodiratime,norelatime filesystem.bin filesystem; umount filesystem
April ~ # md5sum -b filesystem.bin
228af00f3b88ca36742140c24d53b3e5 *filesystem.bin
April ~ # mount -o loop,noatime,nodiratime,norelatime filesystem.bin filesystem; umount filesystem
April ~ # md5sum -b filesystem.bin
801209060cbc8ee2cf1ccdaff8674c35 *filesystem.bin


The last time of mount and the number of times the "disk" has been mounted gets updated. (Possibly more?) Is there a way of preventing this, without A) readonly and B) a kernel patch?

I know it's probably useless for practical purposes, I'm just asking for the heck of it. :)
Can it be done with another FS than ext2?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Wed Apr 15, 2009 1:38 pm    Post subject: Reply with quote

didn't i see this thread answered yesterday? :?

edit: yes, i did. nice dupe.

https://forums.gentoo.org/viewtopic-t-756029-highlight-ext2.html
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7209
Location: Pelotas, BR

PostPosted: Wed Apr 15, 2009 1:48 pm    Post subject: Reply with quote

Please stop crossposting. Moved to dups.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum