There are two purposes for a fork().

The basics is that when a process issues a fork command, it will clone itself in memory and two separate processes will run from there.  The forked process will be a child of the forking process.

This parent child relationship is important for one of the purposes of the fork.  In systems that use SysV startup processes (and this really needs to go away), a process will fork, then the parent will die.  This causes the child to attach to either the shell process that started the parent, or PID 1.  This is how processes become daemons in SysV based systems (SystemD does not require any of this nonsense).

The other more proper use of the fork, the parent does not die.  Now you have two processes executing the same code.  A program can now be multi-processing.  This is not be be confused with "Threads", which are one process but multiple threads of code running in parallel.  Forking produces multiple independent processes.

So, forking the mount -a command will cause all mont processes to happen in parallel instead of in serial.

Hope this explains.

Kevin F

On Dec 12, 2015 12:21 PM, "Michael Havens" <bmike1@gmail.com> wrote:
what is the purpose of forking a mount? Maybe I misunderstand what they mean by 'fork'.

On Sat, Dec 12, 2015 at 8:48 AM, Keith Smith <techlists@phpcoderusa.com> wrote:

Yeah, looks like it reads the fstab only.

mount -a [-t type] [-O optlist]

    (usually given in a bootscript) causes all filesystems mentioned in fstab (of the proper type and/or having or not having the proper options) to be mounted as indicated, except for those whose line contains the noauto keyword. Adding the -F option will make mount fork, so that the filesystems are mounted simultaneously.

   ...


http://linux.die.net/man/8/mount


On 2015-12-11 07:49, Michael Havens wrote:
I just tried 'mount -a' and that didn't do it.

On Fri, Dec 11, 2015 at 9:47 AM, Michael Havens <bmike1@gmail.com>
wrote:

well.... I want to remount the drive w/o opening a terminal. I plug
anexternal drive in and it appears in a filemanager. I then click
the eject button and it umounts. I then realize I forgot to do
something and I don't know what to do except to unplug and plug it
back in or open the terminal and type 'mount -a' (thanks for
teaching me that).

On Fri, Dec 11, 2015 at 8:34 AM, Keith Smith
<techlists@phpcoderusa.com> wrote:

Try this :

http://www.shellhacks.com/en/HowTo-Remount-etc-fstab-Without-Reboot-in-Linux
[1]

On 2015-12-10 19:32, Michael Havens wrote:

I've been wondering about this for awhile now; when you plug a
device
in a file manager opens and the device auto mounts (or it auto
mounts
and then the device manager opens). You do what you need to and
then
click the eject symbol next to said device and it unmounts. How do
you
mount it again without unplugging it again or opening a terminal?

--

:-)~MIKE~(-:

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss [2]

--
Keith Smith

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss [2]

--

:-)~MIKE~(-:

--

:-)~MIKE~(-:


Links:
------
[1] http://www.shellhacks.com/en/HowTo-Remount-etc-fstab-Without-Reboot-in-Linux
[2] http://lists.phxlinux.org/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

--
Keith Smith
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss



--
:-)~MIKE~(-:

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss