Re: where to put mount.sh file?

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

 



Gerhard Magnus wrote:
> I've been experimenting with setting up an ftp server on a home network.
> The instructions I've been looking at for getting vsftpd operational
> include using "mount --bind" commands for mounting other directories
> to /var/ftp (neat trick!) The how-to says:
> 
> Whenever you restart your computer, you have to bind the directories
> every time, so that they are shown on the ftp server. To skip binding
> every time, write everything (all commands for binding) in a mount.sh
> file and run it whenever you restart your computer.
> 
> Confession: This will be my first unix script. A whole new world awaits!
> Where do I put it?
> How do I guarantee it will be run at boot time?

I don't want to keep you from getting starting writing scripts, but I
don't see why you'd need to write one to setup a bind mount at boot.
Just add an entry to /etc/fstab for the mount point.  The syntax would
be something like this:

/real/path  /path/you/are/binding   none    rw,bind 0 0

See man fstab for more details (though the man page doesn't cover
anything specific for bind mounts).

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The cynics are right nine times out of ten.
    -- H. L. Menchen (1880-1956)

Attachment: pgpsGSCZ3QjLR.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux