Re: School me on server hard drive management. (Hot swap, SATA channels, LVM, backup, etc.)

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

 



On 29 September 2011 23:46, linux guy <linuxguy123@xxxxxxxxx> wrote:
>
> Is there an easy was to know if a disk is mounted and act accordingly or
> prevent data from being written to a mountpoint ?

Here is how I prevent data accidentally being written to a unmounted
mountpoint. You must first ensure that "/example/mountpoint" is an
empty directory. Then

chattr -V +i /example/mountpoint

so for your example: chattr -V +i /home/me/myth

I started doing this for all my mountpoints after I read about the
immutable bit. See:

man chattr

Re detecting if a disk is mounted, in older versions of fedora, the
package sysvinit-tools provided the '\bin\mountpoint' command which
implements this. Try:

man mountpoint

to see if it is available on your system.
-- 
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