Re: file system mount and umount timestamps?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



gerrynix <gerrynix <at> yahoo.com> writes:

> 
> gerrynix <gerrynix <at> yahoo.com> writes:
> Â
> > I getÂ'last mounted' time from the super block using 'tune2fs -l' although
> > there are likely other ways such as dumpe2fs. . . I have not found how to 
> > determine 
> > the 'last umount' timestamp. I suppose it registers somewhere. I've dug and 
> > googled but have 'nada' for my efforts. Any ideas/knowledge are welcomed. . 
> > Thnx
> 
> If you are really in need of "anything", then you can use shell alias,
> function,
> script, etc and thru mount/umount substitution, inclusion of 'date' output, 
> and
> saving the result somewhere (e.g. /var/log/mount.log), to achieve it.
> JB
> 
> Well yes JB. That works out fine.ÂHowever, I specifically seek a native Linux 
> command, or location of kernel or filesystem register where the info is 
> stored. 
> I believe there's no way the timestamp is not stored.ÂI needÂto avoid kludgy 
> solutions whenever possible.ÂMany thanks.
> 
> ailing list
> users <at> lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> 

I understand.
One more thing - I do not know what shell you use, but bash has an ability to
store entry's time stamp in its history file, that can be made pretty much
protected by you (man bash; HISTTIMEFORMAT).

You can also examine the source code of mount/umount in
$ rpm -qf /bin/mount
util-linux-ng-2.18-4.6.fc14.i686
to discover if time stamp is indeed stored somewhere.

JB


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux