The mount count can give you a good idea of how many times the system has been rebooted.<br>It's probably a better way of figuring that out than looking at the output of 'last reboot'.<br><br>Thing is that, in either case, the count can get reset, so you need a way of determining <br>

when that has happened.<br><br>For the mount count of / , it gets reset whenever you do an fsck (usually at boot time)<br>When that happens, then you know that the system has been rebooted 'at least once' <br>since the last time you looked.  (the current mount count would be the probable count<br>

of the number of times the system has been rebooted).<br>Note that, if someone does, for example, a CDROM boot and mounts the normal root <br>filesystem, there would be no real way to distinguish that from a boot.  Similarly, if someone<br>

does multiple such mounts and then does an FSCK, you would see that as only one<br>'boot'.<br><br>wtmp (used for 'last') is good as far as it goes, but the file is cycled from time to time, <br>so you need to keep track of the most recent boot time the last  time you checked, and <br>

only count  more recent boots.   If someone gains root access, they can mess with the file, <br>but if an attacker gets root access they can change pretty much anything that you're dependant<br>on, anyways.. (i.e. you're hooped at that point if you've got a malicious root process).<div>
<div><span id="q_12199163891e2e66_1" class="h4">- Show quoted text -</span></div><div class="h5"><br>
<br><div class="gmail_quote">On Sat, May 30, 2009 at 12:11 AM, lakshmi pathi <span dir="ltr"><<a href="mailto:lakshmipathi.g@gmail.com" target="_blank">lakshmipathi.g@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
If I need to know ,how many times the system has been rebooted , Shall<br>
I use mount count value (tune2fs -l )?<br>
<br>
>From below it says, warning message will be displayed  when it equals<br>
the maximum mount count .<br>
What happens after that ,is mount count value reset back to 0 ?<br></blockquote></div><br clear="all"><br></div></div><font color="#888888">-- <br>Stephen Samuel <a href="http://www.bcgreen.com/" target="_blank">http://www.bcgreen.com</a>  Software, like love, <br>
778-861-7641                              grows when you give it away</font><br>