Re: file system mount and umount timestamps?

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

 





On 15 December 2010 17:46, mike cloaked <mike.cloaked@xxxxxxxxx> wrote:

I could not find any direct way to get at the last umount time but I
wonder if this is recorded in the /var/log/messages file ?


For ext4 (and presumable ext2 and ext3 as well) the unmount time is not recorded explicitly.  However, if a file system was last mounted read-write and it currently unmounted then the "Last write time" shown by dumpe2fs will show the unmount time.   (This is because the file system is updated to mark the file system clean and, of course, this updates the last write time.)   Nothing is updated if the file system is mounted read-only, including the last mount time.

Note that information about when a file system was last mounted or unmounted stored outside the file system is essentially worthless.  When I was checking what happened to the last mount time and last write time I was using an external disk.  If the last mount and unmount times were recorded locally then there would be no way of knowing whether the file system had been mounted elsewhere.  Internal disks can be mounted using live dvds.

I haven't looked to see what information is available for other file systems.

jch
-- 
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