There are many methods to do this. Every partition has the superblock containing, among other vital information, details the last time the file system has been checked and when the next check is due.
sudo tune2fs -l "device" --> dumps superblock information
sudo tune2fs -c "count" "device" --> sets the mount count check to "count" . If set to 4 , fsck has to be run after 4 mounts
sudo tune2fs -C "count" "device" --> cheat, set the mount count to "count"
sudo tune2fs -i 4w "device" --> run fsck after 4 weeks.
I'm Technical Director of Blue Fountain Systems. I'm married to Akemi and have three children. We used to live in Japan but now we live back in the UK - something I have great trouble adapting to. Interests are Ubuntu, Python, Ruby, Postgres, drums. My old blog is currently here.
1 comments:
There are many methods to do this.
Every partition has the superblock containing, among other vital information, details the last time the file system has been checked and when the next check is due.
sudo tune2fs -l "device" --> dumps superblock information
sudo tune2fs -c "count" "device" --> sets the mount count check to "count" . If set to 4 , fsck has to be run after 4 mounts
sudo tune2fs -C "count" "device" --> cheat, set the mount count to "count"
sudo tune2fs -i 4w "device" --> run fsck after 4 weeks.
Post a Comment