Do you know how to customize fstab on Nemesis? How you do that?
I have just tested a changes cheatcode and a modded fstab.....its overwritten.
Thanks for discovering where it is over written
Yes we have no way to use a changes cheatcode and a mod of /etc/fstab to achieve what you want.
It looks like you may have to consider 3 options.
option one use a "rc.local" type script as detailed in the tutorial
option 2 ...manually boot up a live cd or bootable linux usb stick
umount the relevant partition if its auto mounted and fsck it.
option 3 mod the "over writer" script its self....altho I have not tried it
looking at it now reveals
# we don't care about loop* and ram* devices
KERNEL=="[!lr]*", SUBSYSTEM=="block", RUN+="/usr/local/sbin/udev-fstab-update %r/%k"
I shall see if I can add a line to umount a non / partition and fsck it and report back by edit
edit 1
first I have an umount local script already. Next I manually fscked /dev/sda1 and then ran this command to get my last checked timestamp
Code: Select all
dumpe2fs -h /dev/sda1
snip
Last checked: Sun Feb 7 11:10:07 2016
first attempt to use a modifed run udev rule failed on reboot....so I will now see if about just using the "rc.local" way
edit 2
Looks like tune2fs might be what we after?
http://linux.die.net/man/8/tune2fs
as I don't want to test for 20 mounts let me report back after trying this
Code: Select all
tune2fs /dev/sda1 -c 1
tune2fs 1.42.13 (17-May-2015)
Setting maximal mount count to 1
and I can check with the dump command
edit 3
I removed my umount command for the rc.local and have no forced fsck command in there either did a number of reboots and result not good
Code: Select all
Last mount time: Sun Feb 7 11:32:16 2016
Last write time: Sun Feb 7 11:32:16 2016
Mount count: 4
Maximum mount count: 1
Last checked: Sun Feb 7 11:10:07 2016
Check interval: 0 (<none>)
As you can tell sda1 was mounted after 11:10 but is not showing a later check time.
I will stop edits of this post and have to think about it.